]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid compilation errors
authorapo <apo@opencascade.com>
Fri, 16 Dec 2005 16:50:02 +0000 (16:50 +0000)
committerapo <apo@opencascade.com>
Fri, 16 Dec 2005 16:50:02 +0000 (16:50 +0000)
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx

index f52a7bc601bf5b25827b2992cd6fef2ca673d436..d8eb9e8ae9824755d88e8f2a0c8960d4be8a8b56 100755 (executable)
@@ -154,6 +154,8 @@ int InitializeARB()
   vglBindBufferARB = (PFNGLBINDBUFFERARBPROC)dlsym( OpenGLLibrary, "glBindBufferARB" );
   vglBufferDataARB = (PFNGLBUFFERDATAARBPROC)dlsym( OpenGLLibrary, "glBufferDataARB" );
   vglDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)dlsym( OpenGLLibrary, "glDeleteBuffersARB" );
+
+  return 1;
 };
 
 static int IsARBInitialized = InitializeARB();
@@ -753,11 +755,6 @@ void VISU_OpenGLPointSpriteMapper::DrawPoints(vtkPoints *thePoints,
 
   float* aPropertyColor = theActor->GetProperty()->GetColor();
   float aColor[3] = {aPropertyColor[0], aPropertyColor[1], aPropertyColor[2]};
-  int aRed = int(255*aColor[0]), aGreen = int(255*aColor[1]), aBlue = int(255*aColor[1]);
-  float aHue = ComputeHue( aRed, aGreen, aBlue );
-
-  float aViewToDisplay = ViewToDisplay( theRenderer );
-  float aSize = this->PointSpriteSize;
 
   unsigned long i = 0;
   vtkIdType *pts = 0;
@@ -832,7 +829,6 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act)
   vtkFloatArray        *alpha  = NULL;
   vtkPolyData          *input  = this->GetInput();
   vtkPoints            *points;
-  int tDim;
   int noAbort = 1;
   int cellScalars = 0;
   vtkIdType cellNum = 0;