VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtGlTexture Class Reference

A helper classes for creating a RTT target, optionally including depth buffer.

Public Member Functions

 DtGlTexture (const std::string &name, int width, int height, int numLayers)
 
virtual ~DtGlTexture ()
 
virtual bool init (unsigned int glColorTexId)
 
virtual bool init (DtGlImageType colorFormat=RGB32F, GLenum minFilter=GL_LINEAR, GLenum wrapMode=GL_CLAMP_TO_EDGE)
 
virtual bool initAsDepth (unsigned int glDepthTexId)
 
virtual bool initAsDepth (DtGlImageType depthFormat)
 
virtual GLenum glTextureFormat (void) const
 
virtual unsigned int id (void) const
 
virtual int width () const
 
virtual int height () const
 
virtual int layers (void) const
 
virtual void bind (int unit)
 

Protected Attributes

int myWidth
 
int myHeight
 
std::string myName
 
int myNumLayers
 
unsigned int myId
 
GLenum myFormat
 
bool myExternalTex
 

Private Member Functions

 DtGlTexture ()
 
 DtGlTexture (const DtGlTexture &)
 
DtGlTextureoperator= (const DtGlTexture &)
 

Constructor & Destructor Documentation

makVrv::DtGlTexture::DtGlTexture ( const std::string &  name,
int  width,
int  height,
int  numLayers 
)

constructor

virtual makVrv::DtGlTexture::~DtGlTexture ( )
virtual

destructor

makVrv::DtGlTexture::DtGlTexture ( )
private

private default constructor. not allowed.

makVrv::DtGlTexture::DtGlTexture ( const DtGlTexture )
private

prevent copy-construction

Member Function Documentation

DtGlTexture& makVrv::DtGlTexture::operator= ( const DtGlTexture )
private

prevent assignment

virtual bool makVrv::DtGlTexture::init ( unsigned int  glColorTexId)
virtual

initialize with an external texture id

virtual bool makVrv::DtGlTexture::init ( DtGlImageType  colorFormat = RGB32F,
GLenum  minFilter = GL_LINEAR,
GLenum  wrapMode = GL_CLAMP_TO_EDGE 
)
virtual

initialize with the color format, min filter and wrap mode

virtual bool makVrv::DtGlTexture::initAsDepth ( unsigned int  glDepthTexId)
virtual

initialize as a depth texture with an external depth texture id

virtual bool makVrv::DtGlTexture::initAsDepth ( DtGlImageType  depthFormat)
virtual

initialize as a depth texture with the given depth format

virtual GLenum makVrv::DtGlTexture::glTextureFormat ( void  ) const
virtual

what's the format?

virtual unsigned int makVrv::DtGlTexture::id ( void  ) const
virtual

what's the id?

virtual int makVrv::DtGlTexture::width ( ) const
virtual

returns width of the texture

virtual int makVrv::DtGlTexture::height ( ) const
virtual

returns height of the texture

virtual int makVrv::DtGlTexture::layers ( void  ) const
virtual

If vr/multiview num of textures in the array, else 1.

virtual void makVrv::DtGlTexture::bind ( int  unit)
virtual

bind the texture to the given unit

Member Data Documentation

int makVrv::DtGlTexture::myWidth
protected
int makVrv::DtGlTexture::myHeight
protected
std::string makVrv::DtGlTexture::myName
protected
int makVrv::DtGlTexture::myNumLayers
protected
unsigned int makVrv::DtGlTexture::myId
protected
GLenum makVrv::DtGlTexture::myFormat
protected
bool makVrv::DtGlTexture::myExternalTex
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)