VTK
Public Member Functions | Public Attributes | List of all members
vtkOpenGLContextDevice2D::Private Class Reference

#include <vtkOpenGLContextDevice2DPrivate.h>

Collaboration diagram for vtkOpenGLContextDevice2D::Private:
Collaboration graph
[legend]

Public Member Functions

 Private ()
 ~Private ()
void SaveGLState (bool colorBuffer=false)
void RestoreGLState (bool colorBuffer=false)
void SetGLCapability (GLenum capability, GLboolean state)
float * TexCoords (float *f, int n)
vtkVector2i FindPowerOfTwo (const vtkVector2i &size)
GLuint TextureFromImage (vtkImageData *image, vtkVector2f &texCoords)
GLuint TextureFromImage (vtkImageData *image)

Public Attributes

vtkTexture * Texture
unsigned int TextureProperties
vtkTexture * SpriteTexture
GLboolean SavedLighting
GLboolean SavedDepthTest
GLboolean SavedAlphaTest
GLboolean SavedStencilTest
GLboolean SavedBlend
GLint SavedDrawBuffer
GLfloat SavedClearColor [4]
int TextCounter
vtkVector2i Dim
vtkVector2i Offset
bool GLExtensionsLoaded
bool OpenGL15
bool OpenGL20
bool GLSL
bool PowerOfTwoTextures
vtkTextureImageCache
< TextPropertyKey > 
TextTextureCache

Detailed Description

Definition at line 216 of file vtkOpenGLContextDevice2DPrivate.h.

Constructor & Destructor Documentation

vtkOpenGLContextDevice2D::Private::Private ( )
inline

Definition at line 219 of file vtkOpenGLContextDevice2DPrivate.h.

vtkOpenGLContextDevice2D::Private::~Private ( )
inline

Definition at line 242 of file vtkOpenGLContextDevice2DPrivate.h.

Member Function Documentation

void vtkOpenGLContextDevice2D::Private::SaveGLState ( bool  colorBuffer = false)
inline

Definition at line 256 of file vtkOpenGLContextDevice2DPrivate.h.

void vtkOpenGLContextDevice2D::Private::RestoreGLState ( bool  colorBuffer = false)
inline

Definition at line 271 of file vtkOpenGLContextDevice2DPrivate.h.

void vtkOpenGLContextDevice2D::Private::SetGLCapability ( GLenum  capability,
GLboolean  state 
)
inline

Definition at line 303 of file vtkOpenGLContextDevice2DPrivate.h.

float* vtkOpenGLContextDevice2D::Private::TexCoords ( float *  f,
int  n 
)
inline

Definition at line 315 of file vtkOpenGLContextDevice2DPrivate.h.

vtkVector2i vtkOpenGLContextDevice2D::Private::FindPowerOfTwo ( const vtkVector2i &  size)
inline

Definition at line 358 of file vtkOpenGLContextDevice2DPrivate.h.

GLuint vtkOpenGLContextDevice2D::Private::TextureFromImage ( vtkImageData *  image,
vtkVector2f &  texCoords 
)
inline

Definition at line 371 of file vtkOpenGLContextDevice2DPrivate.h.

GLuint vtkOpenGLContextDevice2D::Private::TextureFromImage ( vtkImageData *  image)
inline

Definition at line 443 of file vtkOpenGLContextDevice2DPrivate.h.

Member Data Documentation

vtkTexture* vtkOpenGLContextDevice2D::Private::Texture

Definition at line 485 of file vtkOpenGLContextDevice2DPrivate.h.

unsigned int vtkOpenGLContextDevice2D::Private::TextureProperties

Definition at line 486 of file vtkOpenGLContextDevice2DPrivate.h.

vtkTexture* vtkOpenGLContextDevice2D::Private::SpriteTexture

Definition at line 487 of file vtkOpenGLContextDevice2DPrivate.h.

GLboolean vtkOpenGLContextDevice2D::Private::SavedLighting

Definition at line 489 of file vtkOpenGLContextDevice2DPrivate.h.

GLboolean vtkOpenGLContextDevice2D::Private::SavedDepthTest

Definition at line 490 of file vtkOpenGLContextDevice2DPrivate.h.

GLboolean vtkOpenGLContextDevice2D::Private::SavedAlphaTest

Definition at line 491 of file vtkOpenGLContextDevice2DPrivate.h.

GLboolean vtkOpenGLContextDevice2D::Private::SavedStencilTest

Definition at line 492 of file vtkOpenGLContextDevice2DPrivate.h.

GLboolean vtkOpenGLContextDevice2D::Private::SavedBlend

Definition at line 493 of file vtkOpenGLContextDevice2DPrivate.h.

GLint vtkOpenGLContextDevice2D::Private::SavedDrawBuffer

Definition at line 494 of file vtkOpenGLContextDevice2DPrivate.h.

GLfloat vtkOpenGLContextDevice2D::Private::SavedClearColor[4]

Definition at line 495 of file vtkOpenGLContextDevice2DPrivate.h.

int vtkOpenGLContextDevice2D::Private::TextCounter

Definition at line 497 of file vtkOpenGLContextDevice2DPrivate.h.

vtkVector2i vtkOpenGLContextDevice2D::Private::Dim

Definition at line 498 of file vtkOpenGLContextDevice2DPrivate.h.

vtkVector2i vtkOpenGLContextDevice2D::Private::Offset

Definition at line 499 of file vtkOpenGLContextDevice2DPrivate.h.

bool vtkOpenGLContextDevice2D::Private::GLExtensionsLoaded

Definition at line 500 of file vtkOpenGLContextDevice2DPrivate.h.

bool vtkOpenGLContextDevice2D::Private::OpenGL15

Definition at line 501 of file vtkOpenGLContextDevice2DPrivate.h.

bool vtkOpenGLContextDevice2D::Private::OpenGL20

Definition at line 502 of file vtkOpenGLContextDevice2DPrivate.h.

bool vtkOpenGLContextDevice2D::Private::GLSL

Definition at line 503 of file vtkOpenGLContextDevice2DPrivate.h.

bool vtkOpenGLContextDevice2D::Private::PowerOfTwoTextures

Definition at line 504 of file vtkOpenGLContextDevice2DPrivate.h.

vtkTextureImageCache<TextPropertyKey> vtkOpenGLContextDevice2D::Private::TextTextureCache
mutable

Cache for text images. Generating texture for strings is expensive, we cache the textures here for a faster reuse.

Definition at line 509 of file vtkOpenGLContextDevice2DPrivate.h.


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