![]() |
VR-Forces Developer's Guide
|
Interface for a texture. Used to pass in a texture to vrvGraphics.

Public Member Functions | |
| DtTextureInterface () | |
| virtual | ~DtTextureInterface () |
| DtTextureInterface (const DtTextureInterface &)=delete | |
| DtTextureInterface & | operator= (const DtTextureInterface &)=delete |
| virtual bool | loadTextureFromFile (const std::string &fileName)=0 |
| virtual bool | loadTextureFromFile (const std::string &fileName, const DtFileCache::LoadFileOptions &loadFileOptions)=0 |
| virtual const std::string & | filename () const =0 |
| virtual float | textureWidth () const =0 |
| virtual void | scaleTexture (int w, int h)=0 |
| virtual bool | getStipplePattern (char **stipplePattern)=0 |
| virtual bool | valid () const =0 |
| virtual DtVector4< float > | color (unsigned int x, unsigned int y) const =0 |
| makVrv::DtTextureInterface::DtTextureInterface | ( | ) |
Constructor.
|
virtual |
Destructor.
|
delete |
not allowed - copy constructor
|
delete |
not allowed - equals operator
|
pure virtual |
Attempt to load a texture from file OSG overrides Returns true if loaded successfully // XXX TODO Add async loading.
Implemented in makVrv::DtOsgTextureWrapper.
|
pure virtual |
Implemented in makVrv::DtOsgTextureWrapper.
|
pure virtual |
Returns the name of the file that the texture was created from. Returns "" by default, for example if the texture was not initialized.
Implemented in makVrv::DtOsgTextureWrapper.
|
pure virtual |
Implemented in makVrv::DtOsgTextureWrapper.
Implemented in makVrv::DtOsgTextureWrapper.
Get the 32x32 stipple pattern representation of this texture.
Implemented in makVrv::DtOsgTextureWrapper.
|
pure virtual |
Returns whether or not this wrapper contains a valid texture.
Implemented in makVrv::DtOsgTextureWrapper.
|
pure virtual |
Returns color at a texel value.
Implemented in makVrv::DtOsgTextureWrapper.