VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
RenderTexture Class Reference

Public Member Functions

 RenderTexture (char *strMode, int iWidth, int iHeight, GLenum target)
 ~RenderTexture ()
void Activate ()
void Deactivate ()
void Bind (int iBuffer=WGL_FRONT_LEFT_ARB)
void Release (int iBuffer=WGL_FRONT_LEFT_ARB)
int GetWidth ()
int GetHeight ()

Private Member Functions

void CreateTexture (GLuint &tex)

Private Attributes

PBuffer * m_pbuffer
GLuint m_tex [max_buffers]
GLenum m_target

Static Private Attributes

static const int max_buffers = 14

Constructor & Destructor Documentation

RenderTexture::RenderTexture ( char *  strMode,
int  iWidth,
int  iHeight,
GLenum  target 
)
inline

References m_pbuffer, m_tex, and max_buffers.

RenderTexture::~RenderTexture ( )
inline

Member Function Documentation

void RenderTexture::Activate ( )
inline

References m_pbuffer.

void RenderTexture::Deactivate ( )
inline

References m_pbuffer.

void RenderTexture::Bind ( int  iBuffer = WGL_FRONT_LEFT_ARB)
inline
void RenderTexture::Release ( int  iBuffer = WGL_FRONT_LEFT_ARB)
inline
int RenderTexture::GetWidth ( )
inline

References m_pbuffer.

int RenderTexture::GetHeight ( )
inline

References m_pbuffer.

void RenderTexture::CreateTexture ( GLuint tex)
inlineprivate

Member Data Documentation

const int RenderTexture::max_buffers = 14
staticprivate

Referenced by RenderTexture(), and ~RenderTexture().

PBuffer* RenderTexture::m_pbuffer
private
GLuint RenderTexture::m_tex[max_buffers]
private
GLenum RenderTexture::m_target
private

Referenced by Bind(), CreateTexture(), and Release().


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


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)