Otclient 1.0  14/8/2020
AnimatedTexture Class Reference

#include <animatedtexture.h>

Inheritance diagram for AnimatedTexture:
Collaboration diagram for AnimatedTexture:

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 SizegetSize ()
 
const SizegetGlSize ()
 
const Matrix3getTransformMatrix ()
 
bool isEmpty ()
 
bool hasRepeat ()
 
bool hasMipmaps ()
 
bool isOpaque () const
 
- 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
 
stdext::boolean< false > m_opaque
 

Detailed Description

Definition at line 29 of file animatedtexture.h.

Constructor & Destructor Documentation

◆ AnimatedTexture()

AnimatedTexture::AnimatedTexture ( const Size size,
std::vector< ImagePtr frames,
std::vector< int >  framesDelay,
bool  buildMipmaps = false,
bool  compress = false 
)

Definition at line 28 of file animatedtexture.cpp.

Here is the call graph for this function:

◆ ~AnimatedTexture()

AnimatedTexture::~AnimatedTexture ( )
virtual

Definition at line 44 of file animatedtexture.cpp.

Member Function Documentation

◆ buildHardwareMipmaps()

bool AnimatedTexture::buildHardwareMipmaps ( )
virtual

Reimplemented from Texture.

Definition at line 49 of file animatedtexture.cpp.

Here is the call graph for this function:

◆ isAnimatedTexture()

virtual bool AnimatedTexture::isAnimatedTexture ( )
inlinevirtual

Reimplemented from Texture.

Definition at line 42 of file animatedtexture.h.

◆ setRepeat()

void AnimatedTexture::setRepeat ( bool  repeat)
virtual

Reimplemented from Texture.

Definition at line 66 of file animatedtexture.cpp.

◆ setSmooth()

void AnimatedTexture::setSmooth ( bool  smooth)
virtual

Reimplemented from Texture.

Definition at line 59 of file animatedtexture.cpp.

◆ updateAnimation()

void AnimatedTexture::updateAnimation ( )

Definition at line 73 of file animatedtexture.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: