Tool class for generating reusable data for gradient or texture background rendering.
More...
|
| | OpenGl_BackgroundArray (const Graphic3d_TypeOfBackground theType) |
| | Main constructor.
|
| |
| void | Render (const Handle< OpenGl_Workspace > &theWorkspace, Graphic3d_Camera::Projection theProjection) const |
| | Render primitives to the window.
|
| |
| bool | IsDefined () const |
| | Check if background parameters are set properly.
|
| |
| void | SetTextureParameters (const Aspect_FillMethod theFillMethod) |
| | Sets background texture parameters.
|
| |
| void | SetTextureFillMethod (const Aspect_FillMethod theFillMethod) |
| | Sets texture fill method.
|
| |
| Aspect_FillMethod | TextureFillMethod () const |
| | Gets background texture fill method.
|
| |
| Aspect_GradientFillMethod | GradientFillMethod () const |
| | Gets background gradient fill method.
|
| |
| const OpenGl_Vec4 & | GradientColor (const Standard_Integer theIndex) const |
| | Returns color of gradient background for the given index.
|
| |
| void | SetGradientFillMethod (const Aspect_GradientFillMethod theType) |
| | Sets type of gradient fill method.
|
| |
| void | SetGradientParameters (const Quantity_Color &theColor1, const Quantity_Color &theColor2, const Aspect_GradientFillMethod theType) |
| | Sets background gradient parameters.
|
| |
| | OpenGl_PrimitiveArray (const OpenGl_GraphicDriver *theDriver) |
| | Empty constructor.
|
| |
| | OpenGl_PrimitiveArray (const OpenGl_GraphicDriver *theDriver, const Graphic3d_TypeOfPrimitiveArray theType, const Handle< Graphic3d_IndexBuffer > &theIndices, const Handle< Graphic3d_Buffer > &theAttribs, const Handle< Graphic3d_BoundBuffer > &theBounds) |
| | Default constructor.
|
| |
| virtual | ~OpenGl_PrimitiveArray () |
| | Destructor.
|
| |
| virtual void | Release (OpenGl_Context *theContext) override |
| | Release OpenGL resources (VBOs)
|
| |
| virtual Standard_Size | EstimatedDataSize () const override |
| | Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
|
| |
| virtual void | UpdateDrawStats (Graphic3d_FrameStatsDataTmp &theStats, bool theIsDetailed) const override |
| | Increment draw calls statistics.
|
| |
| Standard_Boolean | IsInitialized () const |
| | Return true if VBOs initialization has been performed. VBO initialization is performed during first Render() call. Notice that this flag does not indicate VBOs validity.
|
| |
| void | Invalidate () const |
| | Invalidate VBO content without destruction.
|
| |
| Standard_Integer | DrawMode () const |
| |
| virtual Standard_Boolean | IsFillDrawMode () const override |
| | Return TRUE if primitive type generates shaded triangulation.
|
| |
| const Handle< Graphic3d_IndexBuffer > & | Indices () const |
| |
| const Handle< Graphic3d_Buffer > & | Attributes () const |
| |
| const Handle< Graphic3d_BoundBuffer > & | Bounds () const |
| |
| Standard_Size | GetUID () const |
| | Returns unique ID of primitive array.
|
| |
| void | InitBuffers (const Handle< OpenGl_Context > &theContext, const Graphic3d_TypeOfPrimitiveArray theType, const Handle< Graphic3d_IndexBuffer > &theIndices, const Handle< Graphic3d_Buffer > &theAttribs, const Handle< Graphic3d_BoundBuffer > &theBounds) |
| | Initialize indices, attributes and bounds with new data.
|
| |
| const Handle< OpenGl_IndexBuffer > & | IndexVbo () const |
| | Returns index VBO.
|
| |
| const Handle< OpenGl_VertexBuffer > & | AttributesVbo () const |
| | Returns attributes VBO.
|
| |
| virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
| | Dumps the content of me into the stream.
|
| |
| | OpenGl_Element () |
| |
| virtual void | UpdateMemStats (Graphic3d_FrameStatsDataTmp &theStats) const |
| | Increment memory usage statistics. Default implementation puts EstimatedDataSize() into Graphic3d_FrameStatsCounter_EstimatedBytesGeom.
|
| |
| virtual void | SynchronizeAspects () |
| | Update parameters of the drawable elements.
|
| |
Tool class for generating reusable data for gradient or texture background rendering.