mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025611: Displaying 'zbufftrihedron' interferes with 'graduatedtrihedron':
- Graphic3d_CGraduatedTrihedron: moved to Graphic3d_GraduatedTrihedron, added Graphic3d_AxisAspect for axes parameters - OpenGl_GraduatedTrihedron: moved to primitive arrays, used Graphic3d_GraduatedTrihedron to store parameters - ViewerTest: corrected vgraduatedtrihedron, added new parameters - Graphic3d_ArrayOfPrimitives: added AddVertex (Graphic3d_Vec3) - Graphic3d_GraphicDriver::GraduatedTrihedronMinMaxValues corrected interface
This commit is contained in:
@@ -69,6 +69,13 @@ public:
|
||||
//! Returns unique ID of primitive array.
|
||||
const Standard_Size GetUID() const { return myUID; }
|
||||
|
||||
//! Initialize indices, attributes and bounds with new data.
|
||||
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);
|
||||
|
||||
protected:
|
||||
|
||||
//! VBO initialization procedures
|
||||
@@ -95,6 +102,11 @@ private:
|
||||
|
||||
void drawMarkers (const Handle(OpenGl_Workspace)& theWorkspace) const;
|
||||
|
||||
//! Sets OpenGL draw mode according to the input type of primitive array.
|
||||
//! If buffer of attributes is empty, draw mode is set to NONE to avoid invalid array rendering.
|
||||
//! @param theType type of primitive array.
|
||||
void setDrawMode (const Graphic3d_TypeOfPrimitiveArray theType);
|
||||
|
||||
protected:
|
||||
|
||||
//! Destructor
|
||||
|
Reference in New Issue
Block a user