mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
OpenGl_Workspace_Raytrace.cxx - include OpenGl_Cl.hxx first
This commit is contained in:
parent
47afc36788
commit
618d8e6135
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
|
|
||||||
|
#include <OpenGl_Cl.hxx>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -617,29 +619,16 @@ Standard_Boolean OpenGl_Workspace::AddRaytraceVertexIndices (const CALL_DEF_PARR
|
|||||||
int theMatID)
|
int theMatID)
|
||||||
{
|
{
|
||||||
myRaytraceSceneData.Triangles.reserve (myRaytraceSceneData.Triangles.size() + theVertNum);
|
myRaytraceSceneData.Triangles.reserve (myRaytraceSceneData.Triangles.size() + theVertNum);
|
||||||
|
|
||||||
switch (theArray->type)
|
switch (theArray->type)
|
||||||
{
|
{
|
||||||
case TelTrianglesArrayType:
|
case TelTrianglesArrayType: return AddRaytraceTriangleArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
return AddRaytraceTriangleArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
case TelQuadranglesArrayType: return AddRaytraceQuadrangleArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
|
case TelTriangleFansArrayType: return AddRaytraceTriangleFanArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
case TelQuadranglesArrayType:
|
case TelTriangleStripsArrayType: return AddRaytraceTriangleStripArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
return AddRaytraceQuadrangleArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
case TelQuadrangleStripsArrayType: return AddRaytraceQuadrangleStripArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
|
case TelPolygonsArrayType: return AddRaytracePolygonArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
||||||
case TelTriangleFansArrayType:
|
default: return Standard_False;
|
||||||
return AddRaytraceTriangleFanArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
|
||||||
|
|
||||||
case TelTriangleStripsArrayType:
|
|
||||||
return AddRaytraceTriangleStripArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
|
||||||
|
|
||||||
case TelQuadrangleStripsArrayType:
|
|
||||||
return AddRaytraceQuadrangleStripArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
|
||||||
|
|
||||||
case TelPolygonsArrayType:
|
|
||||||
return AddRaytracePolygonArray (theArray, theFirstVert, theVertOffset, theVertNum, theMatID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Standard_False;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user