![]() |
VR-Forces 4.3.1 Class Documentation
|
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 |
An object which wraps a OpenGL texture object.
| makVrv::DtTextureObject::DtTextureObject | ( | ) |
| makVrv::DtTextureObject::~DtTextureObject | ( | ) |
| 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::bind | ( | ) |
| void makVrv::DtTextureObject::unbind | ( | ) |
| unsigned int makVrv::DtTextureObject::id | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |