|
| TextureLoadable (typename Format format=Format::RGB) |
| Empty constructor, create an image unallocated of size (0:0) More...
|
|
| TextureLoadable (const Math::Vec2< Size > &size, typename Format format=Format::RGB) |
| Constructor to create an not initialized image of specified size. More...
|
|
| TextureLoadable (const WString &filePath) |
| create a new image using a path to a file (only support official file format) More...
|
|
| TextureLoadable (const TextureLoadable< T > &image) |
| copy constructor More...
|
|
| TextureLoadable (TextureLoadable< T > &&image) |
| move constructor More...
|
|
| ~TextureLoadable () |
|
void | setDatas (const T *dataBuffer, const Math::Vec2< Size > &size, typename LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false) |
| load this image from a buffer and a specified size. More...
|
|
void | clear (const Math::Vec2< Size > &size) |
| clear this texture with a new size More...
|
|
void | clear (const Math::Vec2< Size > &size, typename Format format) |
| reset this image with a new size and a new format More...
|
|
void | generateMipmaps () |
| generate the mipmaps from the actual lod 0 More...
|
|
const T * | getDatas (typename Vector< _Image< T >>::Size i=0) const |
| get the data buffer of this image More...
|
|
T * | getDatas (typename Vector< _Image< T >>::Size i=0) |
| get the data buffer of this image More...
|
|
const T * | getPixel (typename Vector< _Image< T >>::Size i, unsigned int x, unsigned int y) const |
| get a pixel from this image More...
|
|
void | setPixel (typename Vector< _Image< T >>::Size i, unsigned int x, unsigned int y, const T *p) |
| set a pixel inside this image More...
|
|
Texture< T > & | operator= (const Texture< T > &image) |
| copy operator More...
|
|
Texture< T > & | operator= (Texture< T > &&image) |
| move operator More...
|
|
Format | getFormat () const |
| get the format of this image More...
|
|
| BasicLoadableIO () |
|
| ~BasicLoadableIO () |
|
bool | writeToFile (const WString &path) |
| write this object to a file. More...
|
|
bool | readFromFile (const WString &path) |
| load this object from a file. More...
|
|
| BasicSimpleLoadableIO () |
|
| ~BasicSimpleLoadableIO () |
|
bool | read (std::fstream *fileStream) |
| load this object from a file stream More...
|
|
bool | write (std::fstream *fileStream) |
| write this object as binary into a file stream More...
|
|
bool | read (std::fstream *fileStream) |
| read from a file stream More...
|
|
bool | write (std::fstream *fileStream) const |
| write this object as binary into a file stream More...
|
|
| BasicLoadable () |
| Empty constructor initialized at NOT loaded and NOT loading. More...
|
|
| BasicLoadable (const BasicLoadable &loadable) |
| copy constructor More...
|
|
| ~BasicLoadable () |
|
void | load () |
| load the object (this function may not be overloaded) More...
|
|
void | unload () |
| unload this object (this function may not be overloaded) More...
|
|
bool | isLoaded () const |
| get if the current object is loaded or not More...
|
|
void | reload () |
| if the current object is loaded, unload it and then call load again, if not, this do nothing. More...
|
|
bool | isLoading () const |
| get if the current object is currently loading More...
|
|
void | lock () |
| lock the current object to ensure no parallelization of the loading state. More...
|
|
void | unlock () |
| unlock the current object to permit parallelization of the loading state. More...
|
|
BasicLoadable & | operator= (const BasicLoadable &loadable) |
| copy operator More...
|
|
| Texture (typename Format format=Format::RGB) |
| Empty constructor, create an image unallocated of size (0:0) More...
|
|
| Texture (const Math::Vec2< Size > &size, typename Format format=Format::RGB) |
| Constructor to create an not initialized image of specified size. More...
|
|
| Texture (const WString &filePath) |
| create a new image using a path to a file (only support official file format) More...
|
|
| Texture (std::fstream *fileStream) |
| create a new Texture using a file stream to read. More...
|
|
| Texture (const Texture< T > &image) |
| copy constructor More...
|
|
| Texture (const T *dataBuffer, const Math::Vec2< Size > &size, typename LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false) |
| create a Texture from a image data More...
|
|
| Texture (Texture< T > &&image) |
| move constructor More...
|
|
| ~Texture () |
|
const Math::Vec2< Size > & | getSize (typename Vector< _Image< T >>::Size i=0) const |
| get the actual size (width:height) of the image More...
|
|
unsigned int | getWidth (typename Vector< _Image< T >>::Size i=0) const |
| get the actual width of the image More...
|
|
unsigned int | getHeight (typename Vector< _Image< T >>::Size i=0) const |
| get the actual height of the image More...
|
|
void | setDatas (const T *data, const Math::Vec2< Size > &size, typename LoadingFormat loadingFormat=LoadingFormat::RGB, bool invertY=false) |
| set the data from an another data buffer. More...
|
|
void | clear (const Math::Vec2< Size > &size) |
| reset this image with a new size. More...
|
|
void | clear (const Math::Vec2< Size > &size, typename Format format) |
| reset this image with a new size and a new format More...
|
|
_Image< T > * | getMipmap (typename Vector< _Image< T >>::Size i=0) |
| get a mipmap from this texture More...
|
|
_Image< T > * | operator[] (typename Vector< _Image< T >>::Size i) |
| get a mipmap from this texture More...
|
|
void | generateMipmaps () |
| generate the mipmap from the actual lod 0 More...
|
|
const T * | getDatas (typename Vector< _Image< T >>::Size i=0) const |
| get the data buffer of this image More...
|
|
T * | getDatas (typename Vector< _Image< T >>::Size i=0) |
| get the data buffer of this image More...
|
|
const T * | getPixel (typename Vector< _Image< T >>::Size i, unsigned int x, unsigned int y) const |
| get a pixel from this texture More...
|
|
void | setPixel (typename Vector< _Image< T >>::Size i, unsigned int x, unsigned int y, const T *p) |
| set a pixel inside this image More...
|
|
Texture< T > & | operator= (const Texture< T > &image) |
| copy operator More...
|
|
Texture< T > & | operator= (Texture< T > &&image) |
| move operator More...
|
|
bool | read (std::fstream *fileStream) |
| read from a file stream More...
|
|
bool | write (std::fstream *fileStream) const |
| write this object as binary into a file stream More...
|
|
Format | getFormat () const |
| get the format of this image More...
|
|
Vector< _Image< T > * >::Size | getNumMipmaps () const |
| get the number of mipmap of this texture More...
|
|