Otclient
14/8/2020
|
#include <animatedtexture.h>
Public Member Functions | |
AnimatedTexture (const Size &size, std::vector< ImagePtr > frames, std::vector< int > framesDelay, bool buildMipmaps=false, bool compress=false) | |
virtual | ~AnimatedTexture () |
virtual bool | buildHardwareMipmaps () |
virtual void | setSmooth (bool smooth) |
virtual void | setRepeat (bool repeat) |
void | updateAnimation () |
virtual bool | isAnimatedTexture () |
Public Member Functions inherited from Texture | |
Texture () | |
Texture (const Size &size) | |
Texture (const ImagePtr &image, bool buildMipmaps=false, bool compress=false) | |
virtual | ~Texture () |
void | uploadPixels (const ImagePtr &image, bool buildMipmaps=false, bool compress=false) |
void | bind () |
void | copyFromScreen (const Rect &screenRect) |
void | setUpsideDown (bool upsideDown) |
void | setTime (ticks_t time) |
uint | getId () |
ticks_t | getTime () |
int | getWidth () |
int | getHeight () |
const Size & | getSize () |
const Size & | getGlSize () |
const Matrix3 & | getTransformMatrix () |
bool | isEmpty () |
bool | hasRepeat () |
bool | hasMipmaps () |
Public Member Functions inherited from stdext::shared_object | |
shared_object () | |
virtual | ~shared_object () |
void | add_ref () |
void | dec_ref () |
refcount_t | ref_count () |
template<typename T > | |
stdext::shared_object_ptr< T > | static_self_cast () |
template<typename T > | |
stdext::shared_object_ptr< T > | dynamic_self_cast () |
template<typename T > | |
stdext::shared_object_ptr< T > | const_self_cast () |
Additional Inherited Members | |
Protected Member Functions inherited from Texture | |
void | createTexture () |
bool | setupSize (const Size &size, bool forcePowerOfTwo=false) |
void | setupWrap () |
void | setupFilters () |
void | setupTranformMatrix () |
void | setupPixels (int level, const Size &size, uchar *pixels, int channels=4, bool compress=false) |
Protected Attributes inherited from Texture | |
uint | m_id |
ticks_t | m_time |
Size | m_size |
Size | m_glSize |
Matrix3 | m_transformMatrix |
stdext::boolean< false > | m_hasMipmaps |
stdext::boolean< false > | m_smooth |
stdext::boolean< false > | m_upsideDown |
stdext::boolean< false > | m_repeat |
Definition at line 29 of file animatedtexture.h.
|
virtual |
Definition at line 44 of file animatedtexture.cpp.
|
virtual |
Reimplemented from Texture.
Definition at line 49 of file animatedtexture.cpp.
|
inlinevirtual |
Reimplemented from Texture.
Definition at line 42 of file animatedtexture.h.
|
virtual |
Reimplemented from Texture.
Definition at line 66 of file animatedtexture.cpp.
|
virtual |
Reimplemented from Texture.
Definition at line 59 of file animatedtexture.cpp.
void AnimatedTexture::updateAnimation | ( | ) |