1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0025017: Visualization - materials in Raytracing are messed up

This commit is contained in:
duv
2014-07-11 16:39:29 +04:00
committed by bugmaster
parent 3c64852756
commit 8d3f219f5d
7 changed files with 38 additions and 19 deletions

View File

@@ -27,6 +27,8 @@
#include <OpenGl_Element.hxx>
class OpenGl_GraphicDriver;
class OpenGl_PrimitiveArray : public OpenGl_Element
{
public:
@@ -39,7 +41,8 @@ public:
};
//! Default constructor
OpenGl_PrimitiveArray (const Graphic3d_TypeOfPrimitiveArray theType,
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);
@@ -61,6 +64,9 @@ public:
//! @return bounds array
const Handle(Graphic3d_BoundBuffer)& Bounds() const { return myBounds; }
//! Returns unique ID of primitive array.
const Standard_Size GetUID() const { return myUID; }
private:
//! VBO initialization procedures
@@ -98,6 +104,8 @@ protected:
GLint myDrawMode;
mutable Standard_Boolean myIsVboInit;
Standard_Size myUID; //!< Unique ID of primitive array.
public:
DEFINE_STANDARD_ALLOC