VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Attributes
makVrv::DtTextureObject Class Reference

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

List of all members.

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


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 
)
unsigned int makVrv::DtTextureObject::id ( ) const

Member Data Documentation

unsigned int makVrv::DtTextureObject::myId [protected]
unsigned int makVrv::DtTextureObject::myPixelFormat [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)