CustusX  2023.01.05-dev+develop.0da12
An IGT application
vtkfixture.h
Go to the documentation of this file.
1 #ifndef VTKFIXTURE_H
2 #define VTKFIXTURE_H
3 
4 //OpenGL
5 #include <GL/glew.h>
6 #include <glut.h> //Framework on Mac
7 
8 #include <vtkSmartPointer.h>
9 
11 {
12 public:
13  vtkfixture();
14 
16 
17 protected:
18  vtkSmartPointer<class vtkTextureObject> createTextureObject(unsigned int width, unsigned int height, unsigned int depth, int dataType, int numComps, void *data, vtkSmartPointer<class vtkOpenGLRenderWindow> opengl_renderwindow);
19  vtkSmartPointer<class vtkOpenGLBufferObject> allocateAndUploadArrayBuffer(int my_numberOfTextureCoordinates, int numberOfComponentsPerTexture, const GLfloat *texture_data);
20 
21 private:
22  //OpenGL
23  void printActiveVertexAndFragmentShader(vtkSmartPointer<class vtkOpenGLPolyDataMapper> mapper);
24  void printOpenGLVersion();
25  void printVtkOpenGLRenderWindowInfo(vtkSmartPointer<class vtkOpenGLRenderWindow> opengl_renderwindow);
26 };
27 
28 #endif // VTKFIXTURE_H
vtkSmartPointer< class vtkTextureObject > createTextureObject(unsigned int width, unsigned int height, unsigned int depth, int dataType, int numComps, void *data, vtkSmartPointer< class vtkOpenGLRenderWindow > opengl_renderwindow)
Definition: vtkfixture.cpp:59
void createVTKWindowWithCylinderSourceWith3DTexture()
Definition: vtkfixture.cpp:112
vtkSmartPointer< class vtkOpenGLBufferObject > allocateAndUploadArrayBuffer(int my_numberOfTextureCoordinates, int numberOfComponentsPerTexture, const GLfloat *texture_data)
Definition: vtkfixture.cpp:89