Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_OpenGLHelper Class Reference

#include <VTKViewer_OpenGLHelper.h>

Public Member Functions

 VTKViewer_OpenGLHelper ()
 
 ~VTKViewer_OpenGLHelper ()
 
void Init ()
 
bool IsInitialized () const
 
bool CreateShaderProgram (const std::string &theFilePath, GLhandleARB &theProgram, GLhandleARB &theVertexShader, GLhandleARB &theFragmentShader) const
 
void DestroyShaderProgram (GLhandleARB theProgram, GLhandleARB theVertexShader, GLhandleARB theFragmentShader) const
 

Public Attributes

PFNGLSHADERSOURCEARBPROC vglShaderSourceARB
 
PFNGLCREATESHADEROBJECTARBPROC vglCreateShaderObjectARB
 
PFNGLCOMPILESHADERARBPROC vglCompileShaderARB
 
PFNGLCREATEPROGRAMOBJECTARBPROC vglCreateProgramObjectARB
 
PFNGLATTACHOBJECTARBPROC vglAttachObjectARB
 
PFNGLLINKPROGRAMARBPROC vglLinkProgramARB
 
PFNGLUSEPROGRAMOBJECTARBPROC vglUseProgramObjectARB
 
PFNGLGENBUFFERSARBPROC vglGenBuffersARB
 
PFNGLBINDBUFFERARBPROC vglBindBufferARB
 
PFNGLBUFFERDATAARBPROC vglBufferDataARB
 
PFNGLDELETEBUFFERSARBPROC vglDeleteBuffersARB
 
PFNGLGETATTRIBLOCATIONARBPROC vglGetAttribLocationARB
 
PFNGLVERTEXATTRIBPOINTERARBPROC vglVertexAttribPointerARB
 
PFNGLENABLEVERTEXATTRIBARRAYARBPROC vglEnableVertexAttribArrayARB
 
PFNGLDISABLEVERTEXATTRIBARRAYARBPROC vglDisableVertexAttribArrayARB
 

Protected Types

typedef void(* PFNGLSHADERSOURCEARBPROC )(GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length)
 
typedef GLhandleARB(* PFNGLCREATESHADEROBJECTARBPROC )(GLenum shaderType)
 
typedef void(* PFNGLBINDBUFFERARBPROC )(GLenum target, GLuint buffer)
 
typedef void(* PFNGLDELETEBUFFERSARBPROC )(GLsizei n, const GLuint *buffers)
 
typedef void(* PFNGLGENBUFFERSARBPROC )(GLsizei n, GLuint *buffers)
 
typedef void(* PFNGLBUFFERDATAARBPROC )(GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage)
 
typedef void(* PFNGLCOMPILESHADERARBPROC )(GLhandleARB shaderObj)
 
typedef GLhandleARB(* PFNGLCREATEPROGRAMOBJECTARBPROC )(void)
 
typedef void(* PFNGLATTACHOBJECTARBPROC )(GLhandleARB containerObj, GLhandleARB obj)
 
typedef void(* PFNGLLINKPROGRAMARBPROC )(GLhandleARB programObj)
 
typedef void(* PFNGLUSEPROGRAMOBJECTARBPROC )(GLhandleARB programObj)
 
typedef GLint(* PFNGLGETATTRIBLOCATIONARBPROC )(GLhandleARB programObj, const GLcharARB *name)
 
typedef void(* PFNGLVERTEXATTRIBPOINTERARBPROC )(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
 
typedef void(* PFNGLENABLEVERTEXATTRIBARRAYARBPROC )(GLuint index)
 
typedef void(* PFNGLDISABLEVERTEXATTRIBARRAYARBPROC )(GLuint index)
 

Protected Attributes

bool mIsInitialized
 

Member Typedef Documentation

typedef void( * VTKViewer_OpenGLHelper::PFNGLATTACHOBJECTARBPROC)(GLhandleARB containerObj, GLhandleARB obj)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLBINDBUFFERARBPROC)(GLenum target, GLuint buffer)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLBUFFERDATAARBPROC)(GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLCOMPILESHADERARBPROC)(GLhandleARB shaderObj)
protected
typedef GLhandleARB( * VTKViewer_OpenGLHelper::PFNGLCREATEPROGRAMOBJECTARBPROC)(void)
protected
typedef GLhandleARB( * VTKViewer_OpenGLHelper::PFNGLCREATESHADEROBJECTARBPROC)(GLenum shaderType)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLDELETEBUFFERSARBPROC)(GLsizei n, const GLuint *buffers)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)(GLuint index)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLENABLEVERTEXATTRIBARRAYARBPROC)(GLuint index)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLGENBUFFERSARBPROC)(GLsizei n, GLuint *buffers)
protected
typedef GLint( * VTKViewer_OpenGLHelper::PFNGLGETATTRIBLOCATIONARBPROC)(GLhandleARB programObj, const GLcharARB *name)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLLINKPROGRAMARBPROC)(GLhandleARB programObj)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLSHADERSOURCEARBPROC)(GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLUSEPROGRAMOBJECTARBPROC)(GLhandleARB programObj)
protected
typedef void( * VTKViewer_OpenGLHelper::PFNGLVERTEXATTRIBPOINTERARBPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
protected

Constructor & Destructor Documentation

VTKViewer_OpenGLHelper::VTKViewer_OpenGLHelper ( )

References Init().

VTKViewer_OpenGLHelper::~VTKViewer_OpenGLHelper ( )

Member Function Documentation

bool VTKViewer_OpenGLHelper::CreateShaderProgram ( const std::string &  theFilePath,
GLhandleARB theProgram,
GLhandleARB theVertexShader,
GLhandleARB theFragmentShader 
) const
void VTKViewer_OpenGLHelper::DestroyShaderProgram ( GLhandleARB  theProgram,
GLhandleARB  theVertexShader,
GLhandleARB  theFragmentShader 
) const
bool VTKViewer_OpenGLHelper::IsInitialized ( ) const
inline

Member Data Documentation

bool VTKViewer_OpenGLHelper::mIsInitialized
protected
PFNGLATTACHOBJECTARBPROC VTKViewer_OpenGLHelper::vglAttachObjectARB
PFNGLBINDBUFFERARBPROC VTKViewer_OpenGLHelper::vglBindBufferARB
PFNGLBUFFERDATAARBPROC VTKViewer_OpenGLHelper::vglBufferDataARB
PFNGLCOMPILESHADERARBPROC VTKViewer_OpenGLHelper::vglCompileShaderARB
PFNGLCREATEPROGRAMOBJECTARBPROC VTKViewer_OpenGLHelper::vglCreateProgramObjectARB
PFNGLCREATESHADEROBJECTARBPROC VTKViewer_OpenGLHelper::vglCreateShaderObjectARB
PFNGLDELETEBUFFERSARBPROC VTKViewer_OpenGLHelper::vglDeleteBuffersARB
PFNGLDISABLEVERTEXATTRIBARRAYARBPROC VTKViewer_OpenGLHelper::vglDisableVertexAttribArrayARB
PFNGLENABLEVERTEXATTRIBARRAYARBPROC VTKViewer_OpenGLHelper::vglEnableVertexAttribArrayARB
PFNGLGENBUFFERSARBPROC VTKViewer_OpenGLHelper::vglGenBuffersARB
PFNGLGETATTRIBLOCATIONARBPROC VTKViewer_OpenGLHelper::vglGetAttribLocationARB
PFNGLLINKPROGRAMARBPROC VTKViewer_OpenGLHelper::vglLinkProgramARB
PFNGLSHADERSOURCEARBPROC VTKViewer_OpenGLHelper::vglShaderSourceARB
PFNGLUSEPROGRAMOBJECTARBPROC VTKViewer_OpenGLHelper::vglUseProgramObjectARB
PFNGLVERTEXATTRIBPOINTERARBPROC VTKViewer_OpenGLHelper::vglVertexAttribPointerARB

The documentation for this class was generated from the following files: