Visualization Library 2.1.0
A 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>
Public Member Functions | |
SetupParams () | |
void | setImagePath (const String &path) |
const String & | imagePath () const |
void | setImage (const Image *image) |
const Image * | image () const |
const BufferObject * | bufferObject () const |
BufferObject * | bufferObject () |
void | setBufferObject (BufferObject *bo) |
void | setDimension (ETextureDimension dimension) |
ETextureDimension | dimension () const |
void | setFormat (ETextureFormat format) |
ETextureFormat | format () const |
void | setBorder (bool on) |
bool | border () const |
void | setGenMipmaps (bool on) |
bool | genMipmaps () const |
void | setWidth (int w) |
int | width () const |
void | setHeight (int h) |
int | height () const |
void | setDepth (int d) |
int | depth () const |
int | samples () const |
void | setSamples (int samples) |
bool | fixedSamplesLocations () const |
void | setFixedSamplesLocations (bool fixed) |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
String | mImagePath |
ref< BufferObject > | mBufferObject |
ref< Image > | mImage |
ETextureDimension | mDimension |
ETextureFormat | mFormat |
int | mWidth |
int | mHeight |
int | mDepth |
int | mSamples |
bool | mBorder |
bool | mGenMipmaps |
bool | mFixedSamplesLocation |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
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 189 of file Texture.hpp.
|
inline |
Definition at line 192 of file Texture.hpp.
References vl::TD_TEXTURE_2D, and vl::TF_RGBA.
|
inline |
Definition at line 220 of file Texture.hpp.
Referenced by vl::Texture::createTexture().
|
inline |
Definition at line 209 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 210 of file Texture.hpp.
|
inline |
Definition at line 232 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 214 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 237 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 217 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 223 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 229 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 207 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 204 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 234 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::exportTexture().
|
inline |
Definition at line 219 of file Texture.hpp.
|
inline |
Definition at line 211 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 231 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 213 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture(), vl::Texture::prepareTexture2DMultisample(), vl::Texture::prepareTexture2DMultisampleArray(), and vl::Texture::prepareTextureBuffer().
|
inline |
Definition at line 238 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 216 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 222 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 228 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 206 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().
|
inline |
Definition at line 203 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 235 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 225 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_Texture::importTexture().
|
inline |
Definition at line 226 of file Texture.hpp.
Referenced by vl::Texture::createTexture(), and vlX::VLXClassWrapper_Texture::exportTexture().
|
protected |
Definition at line 248 of file Texture.hpp.
|
protected |
Definition at line 242 of file Texture.hpp.
|
protected |
Definition at line 246 of file Texture.hpp.
|
protected |
Definition at line 244 of file Texture.hpp.
|
protected |
Definition at line 250 of file Texture.hpp.
|
protected |
Definition at line 245 of file Texture.hpp.
|
protected |
Definition at line 249 of file Texture.hpp.
|
protected |
Definition at line 246 of file Texture.hpp.
Definition at line 243 of file Texture.hpp.
|
protected |
Definition at line 241 of file Texture.hpp.
|
protected |
Definition at line 247 of file Texture.hpp.
|
protected |
Definition at line 246 of file Texture.hpp.
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:55.
© Copyright Michele Bosi. All rights reserved.