VR-Forces 4.10 Class Documentation
 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. More...

Public Member Functions

 DtGlTexture (const std::string &name, int width, int height, int numLayers)
 constructor More...
 
virtual ~DtGlTexture ()
 destructor More...
 
virtual bool init (unsigned int glColorTexId)
 initialize with an external texture id More...
 
virtual bool init (DtGlImageType colorFormat=RGB32F, GLenum minFilter=GL_LINEAR, GLenum wrapMode=GL_CLAMP_TO_EDGE)
 initialize with the color format, min filter and wrap mode More...
 
virtual bool initAsDepth (unsigned int glDepthTexId)
 initialize as a depth texture with an external depth texture id More...
 
virtual bool initAsDepth (DtGlImageType depthFormat)
 initialize as a depth texture with the given depth format More...
 
virtual GLenum openglTexutreFormat (void) const
 what's the format? More...
 
virtual unsigned int id (void) const
 what's the id? More...
 
virtual int width () const
 returns width of the texture More...
 
virtual int height () const
 returns height of the texture More...
 
virtual int layers (void) const
 If vr/multiview num of textures in the array, else 1. More...
 
virtual void bind (int unit)
 bind the texture to the given unit More...
 

Protected Attributes

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

Private Member Functions

 DtGlTexture ()
 private default constructor. not allowed. More...
 
 DtGlTexture (const DtGlTexture &)
 prevent copy-construction More...
 
DtGlTextureoperator= (const DtGlTexture &)
 prevent assignment More...
 

Detailed Description

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

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::openglTexutreFormat ( 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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)