Commit | Line | Data |
---|---|---|
2166f0fa SK |
1 | // File: OpenGl_GraphicDriver_2.cxx |
2 | // Created: 20 October 2011 | |
3 | // Author: Sergey ZERCHANINOV | |
4 | // Copyright: OPEN CASCADE 2011 | |
7fd59977 | 5 | |
2166f0fa | 6 | #include <OpenGl_GraphicDriver.hxx> |
7fd59977 | 7 | |
2166f0fa SK |
8 | #include <OpenGl_Display.hxx> |
9 | #include <OpenGl_CView.hxx> | |
7fd59977 | 10 | |
2166f0fa | 11 | #include <OpenGl_tgl_all.hxx> |
7fd59977 | 12 | #include <OpenGl_tgl_funcs.hxx> |
13 | ||
2166f0fa SK |
14 | Standard_Integer OpenGl_GraphicDriver::InquireLightLimit () |
15 | { | |
16 | return (openglDisplay.IsNull()? 0 : openglDisplay->Facilities().MaxLights); | |
7fd59977 | 17 | } |
18 | ||
2166f0fa SK |
19 | void OpenGl_GraphicDriver::InquireMat (const Graphic3d_CView& ACView, TColStd_Array2OfReal& AMatO, TColStd_Array2OfReal& AMatM) |
20 | { | |
21 | const OpenGl_CView *aCView = (const OpenGl_CView *)ACView.ptrView; | |
22 | if (aCView) | |
23 | aCView->View->GetMatrices(AMatO,AMatM,ACView.Orientation.IsCustomMatrix); | |
7fd59977 | 24 | } |
25 | ||
2166f0fa SK |
26 | Standard_Integer OpenGl_GraphicDriver::InquireViewLimit () |
27 | { | |
28 | return (openglDisplay.IsNull()? 0 : openglDisplay->Facilities().MaxViews); | |
7fd59977 | 29 | } |
30 | ||
2166f0fa SK |
31 | Standard_Boolean OpenGl_GraphicDriver::InquireTextureAvailable () |
32 | { | |
33 | return Standard_True; | |
7fd59977 | 34 | } |
35 | ||
2166f0fa SK |
36 | Standard_Integer OpenGl_GraphicDriver::InquirePlaneLimit () |
37 | { | |
38 | return call_togl_inquireplane(); | |
7fd59977 | 39 | } |
2166f0fa | 40 |