Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
#include <Texture.hpp>

Public Member Functions | |
| SetupParams () | |
| const String & | imagePath () const |
| Image * | image () const |
| ETextureDimension | dimension () const |
| ETextureFormat | format () const |
| bool | border () const |
| bool | hasMipmaps () const |
| void | setImagePath (const String &path) |
| void | setImage (Image *image) |
| void | setDimension (ETextureDimension dimension) |
| void | setFormat (ETextureFormat format) |
| void | setBorder (bool on) |
| void | setHasMipmaps (bool on) |
Protected Attributes | |
| String | mImagePath |
| ref< Image > | mImage |
| ETextureDimension | mDimension |
| ETextureFormat | mFormat |
| bool | mBorder |
| bool | mHasMipmaps |
A SetupParams object is automatically bound to a Texture after calling setupTexture2D() and similar functions. Once the SetupParams are bound to a Texture calling Texture::createTexture() will create a new Texture according to what specified in the SetupParams objects. After Texture::createTexture() the SetupParams object is removed.
| vl::Texture::SetupParams::SetupParams | ( | ) | [inline] |
| const String& vl::Texture::SetupParams::imagePath | ( | ) | const [inline] |
| Image* vl::Texture::SetupParams::image | ( | ) | const [inline] |
| ETextureDimension vl::Texture::SetupParams::dimension | ( | ) | const [inline] |
| ETextureFormat vl::Texture::SetupParams::format | ( | ) | const [inline] |
| bool vl::Texture::SetupParams::border | ( | ) | const [inline] |
| bool vl::Texture::SetupParams::hasMipmaps | ( | ) | const [inline] |
| void vl::Texture::SetupParams::setImagePath | ( | const String & | path | ) | [inline] |
| void vl::Texture::SetupParams::setImage | ( | Image * | image | ) | [inline] |
| void vl::Texture::SetupParams::setDimension | ( | ETextureDimension | dimension | ) | [inline] |
| void vl::Texture::SetupParams::setFormat | ( | ETextureFormat | format | ) | [inline] |
| void vl::Texture::SetupParams::setBorder | ( | bool | on | ) | [inline] |
| void vl::Texture::SetupParams::setHasMipmaps | ( | bool | on | ) | [inline] |
String vl::Texture::SetupParams::mImagePath [protected] |
ref<Image> vl::Texture::SetupParams::mImage [protected] |
ETextureFormat vl::Texture::SetupParams::mFormat [protected] |
bool vl::Texture::SetupParams::mBorder [protected] |
bool vl::Texture::SetupParams::mHasMipmaps [protected] |