Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
SetupParams wraps all the parameters needed to crate a Texture. More...
#include <Texture.hpp>
SetupParams wraps all the parameters needed to crate a Texture.
A SetupParams object is automatically setup and bound to a Texture after calling prepareTexture2D() 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 kept but eventual Image and BufferObjects will be released. If an Image was used it's filePath() is assigned to SetupParam::imagePath().
Definition at line 153 of file Texture.hpp.
vl::Texture::SetupParams::SetupParams | ( | ) | [inline] |
Definition at line 156 of file Texture.hpp.
References vl::TD_TEXTURE_2D, and vl::TF_RGBA.
void vl::Texture::SetupParams::setImagePath | ( | const String & | path ) | [inline] |
Definition at line 167 of file Texture.hpp.
const String& vl::Texture::SetupParams::imagePath | ( | ) | const [inline] |
Definition at line 168 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setImage | ( | const Image * | image ) | [inline] |
Definition at line 170 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), vl::Texture::prepareTexture1D(), vl::Texture::prepareTexture1DArray(), vl::Texture::prepareTexture2D(), vl::Texture::prepareTexture2DArray(), vl::Texture::prepareTexture3D(), vl::Texture::prepareTextureCubemap(), and vl::Texture::prepareTextureRectangle().
const Image* vl::Texture::SetupParams::image | ( | ) | const [inline] |
Definition at line 171 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
const BufferObject* vl::Texture::SetupParams::bufferObject | ( | ) | const [inline] |
Definition at line 173 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_Texture::exportTexture().
BufferObject* vl::Texture::SetupParams::bufferObject | ( | ) | [inline] |
Definition at line 174 of file Texture.hpp.
void vl::Texture::SetupParams::setBufferObject | ( | BufferObject * | bo ) | [inline] |
Definition at line 175 of file Texture.hpp.
void vl::Texture::SetupParams::setDimension | ( | ETextureDimension | dimension ) | [inline] |
Definition at line 177 of file Texture.hpp.
Referenced by vl::Texture::prepareTexture2DMultisample(), vl::Texture::prepareTexture2DMultisampleArray(), and vl::Texture::prepareTextureBuffer().
ETextureDimension vl::Texture::SetupParams::dimension | ( | ) | const [inline] |
Definition at line 178 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setFormat | ( | ETextureFormat | format ) | [inline] |
Definition at line 180 of file Texture.hpp.
ETextureFormat vl::Texture::SetupParams::format | ( | ) | const [inline] |
Definition at line 181 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setBorder | ( | bool | on ) | [inline] |
Definition at line 183 of file Texture.hpp.
bool vl::Texture::SetupParams::border | ( | ) | const [inline] |
Definition at line 184 of file Texture.hpp.
Referenced by vl::Texture::createTexture().
void vl::Texture::SetupParams::setGenMipmaps | ( | bool | on ) | [inline] |
Definition at line 186 of file Texture.hpp.
bool vl::Texture::SetupParams::genMipmaps | ( | ) | const [inline] |
Definition at line 187 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setWidth | ( | int | w ) | [inline] |
Definition at line 189 of file Texture.hpp.
int vl::Texture::SetupParams::width | ( | ) | const [inline] |
Definition at line 190 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setHeight | ( | int | h ) | [inline] |
Definition at line 192 of file Texture.hpp.
int vl::Texture::SetupParams::height | ( | ) | const [inline] |
Definition at line 193 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setDepth | ( | int | d ) | [inline] |
Definition at line 195 of file Texture.hpp.
int vl::Texture::SetupParams::depth | ( | ) | const [inline] |
Definition at line 196 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vl::VLXClassWrapper_Texture::exportTexture().
int vl::Texture::SetupParams::samples | ( | ) | const [inline] |
Definition at line 198 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setSamples | ( | int | samples ) | [inline] |
Definition at line 199 of file Texture.hpp.
bool vl::Texture::SetupParams::fixedSamplesLocations | ( | ) | const [inline] |
Definition at line 201 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_Texture::exportTexture().
void vl::Texture::SetupParams::setFixedSamplesLocations | ( | bool | fixed ) | [inline] |
Definition at line 202 of file Texture.hpp.
String vl::Texture::SetupParams::mImagePath [protected] |
Definition at line 205 of file Texture.hpp.
ref<BufferObject> vl::Texture::SetupParams::mBufferObject [protected] |
Definition at line 206 of file Texture.hpp.
ref<Image> vl::Texture::SetupParams::mImage [protected] |
Definition at line 207 of file Texture.hpp.
Definition at line 208 of file Texture.hpp.
ETextureFormat vl::Texture::SetupParams::mFormat [protected] |
Definition at line 209 of file Texture.hpp.
int vl::Texture::SetupParams::mWidth [protected] |
Definition at line 210 of file Texture.hpp.
int vl::Texture::SetupParams::mHeight [protected] |
Definition at line 210 of file Texture.hpp.
int vl::Texture::SetupParams::mDepth [protected] |
Definition at line 210 of file Texture.hpp.
int vl::Texture::SetupParams::mSamples [protected] |
Definition at line 211 of file Texture.hpp.
bool vl::Texture::SetupParams::mBorder [protected] |
Definition at line 212 of file Texture.hpp.
bool vl::Texture::SetupParams::mGenMipmaps [protected] |
Definition at line 213 of file Texture.hpp.
bool vl::Texture::SetupParams::mFixedSamplesLocation [protected] |
Definition at line 214 of file Texture.hpp.