VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrv::DtTextureObject Class Reference

An object which wraps a OpenGL texture object. More...

Public Types

enum  ComponentTypes {
  ComponentType_int8, ComponentType_int16, ComponentType_int32, ComponentType_float16,
  ComponentType_float32, ComponentTypes_End
}

Public Member Functions

 DtTextureObject ()
 ~DtTextureObject ()
void setType (unsigned int count, ComponentTypes type)
 Set type of texture, number of components, 1 = R, 2 = RG, 3 = RGB, 4 = RGBA And the type of component.
void resize (int w, int h)
void bind ()
void unbind ()
unsigned int id () const

Protected Attributes

unsigned int myId
bool myBoundFlag
unsigned int myInternalFormat
unsigned int myPixelFormat

Detailed Description

An object which wraps a OpenGL texture object.

Member Enumeration Documentation

Enumerator:
ComponentType_int8 
ComponentType_int16 
ComponentType_int32 
ComponentType_float16 
ComponentType_float32 
ComponentTypes_End 

Constructor & Destructor Documentation

makVrv::DtTextureObject::DtTextureObject ( )
makVrv::DtTextureObject::~DtTextureObject ( )

Member Function Documentation

void makVrv::DtTextureObject::setType ( unsigned int  count,
ComponentTypes  type 
)

Set type of texture, number of components, 1 = R, 2 = RG, 3 = RGB, 4 = RGBA And the type of component.

void makVrv::DtTextureObject::resize ( int  w,
int  h 
)
void makVrv::DtTextureObject::bind ( )
void makVrv::DtTextureObject::unbind ( )
unsigned int makVrv::DtTextureObject::id ( ) const

Member Data Documentation

unsigned int makVrv::DtTextureObject::myId
protected
bool makVrv::DtTextureObject::myBoundFlag
protected
unsigned int makVrv::DtTextureObject::myInternalFormat
protected
unsigned int makVrv::DtTextureObject::myPixelFormat
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)