|
| OpenGl_Aspects () |
| Empty constructor.
|
|
| OpenGl_Aspects (const Handle< Graphic3d_Aspects > &theAspect) |
| Create and assign parameters.
|
|
const Handle< Graphic3d_Aspects > & | Aspect () const |
| Return aspect.
|
|
void | SetAspect (const Handle< Graphic3d_Aspects > &theAspect) |
| Assign parameters.
|
|
Graphic3d_TypeOfShadingModel | ShadingModel () const |
| Returns Shading Model.
|
|
void | SetNoLighting () |
| Set if lighting should be disabled or not.
|
|
const Handle< OpenGl_TextureSet > & | TextureSet (const Handle< OpenGl_Context > &theCtx, bool theToHighlight=false) const |
| Returns textures map.
|
|
const Handle< OpenGl_ShaderProgram > & | ShaderProgramRes (const Handle< OpenGl_Context > &theCtx) const |
| Init and return OpenGl shader program resource.
|
|
Standard_ShortReal | MarkerSize () const |
|
bool | HasPointSprite (const Handle< OpenGl_Context > &theCtx) const |
| Return TRUE if OpenGl point sprite resource defines texture.
|
|
bool | IsDisplayListSprite (const Handle< OpenGl_Context > &theCtx) const |
| Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap).
|
|
const Handle< OpenGl_PointSprite > & | SpriteRes (const Handle< OpenGl_Context > &theCtx, bool theIsAlphaSprite) const |
| Init and return OpenGl point sprite resource.
|
|
virtual void | Render (const Handle< OpenGl_Workspace > &theWorkspace) const override |
|
virtual void | Release (OpenGl_Context *theContext) override |
| Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.
|
|
virtual void | SynchronizeAspects () override |
| Update presentation aspects parameters after their modification.
|
|
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
| Dumps the content of me into the stream.
|
|
| OpenGl_Element () |
|
virtual Standard_Boolean | IsFillDrawMode () const |
| Return TRUE if primitive type generates shaded triangulation (to be used in filters).
|
|
virtual Standard_Size | EstimatedDataSize () const |
| Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
|
|
virtual void | UpdateMemStats (Graphic3d_FrameStatsDataTmp &theStats) const |
| Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom.
|
|
virtual void | UpdateDrawStats (Graphic3d_FrameStatsDataTmp &theStats, bool theIsDetailed) const |
| Increment draw calls statistics.
|
|