GAF Library
Generic Animation Format
 All Classes Functions Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
GAFSprite Class Reference

#include <GAFSprite.h>

Inheritance diagram for GAFSprite:
GAFSpriteWithAlpha GAFStencilMaskSprite

Public Member Functions

void setExternaTransform (const cocos2d::AffineTransform &transform)
void setChildTransform (const cocos2d::AffineTransform &transform)
virtual void draw (cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, bool transformUpdated) override
virtual void setUniformsForFragmentShader ()
const cocos2d::AffineTransform & childTransform () const
const cocos2d::AffineTransform & getExternalTransform () const
void setLocator (bool locator)
void setAtlasScale (float scale)
virtual const cocos2d::Mat4 & getNodeToParentTransform () const override
cocos2d::AffineTransform getNodeToParentAffineTransform () const
void setTexture (cocos2d::Texture2D *texture)
bool initWithTexture (cocos2d::Texture2D *pTexture, const cocos2d::Rect &rect, bool rotated)
virtual bool initWithSpriteFrame (cocos2d::SpriteFrame *spriteFrame)

Public Attributes

unsigned int objectIdRef

Protected Member Functions

void invalidateTransformCache ()

Protected Attributes

cocos2d::AffineTransform m_externalTransform
cocos2d::AffineTransform m_childTransform

Detailed Description

This is utility class used by GAF playback. It does not perform rendering or use OpenGL. Instead, it references backend object via GAFSprite::getExternalPointer.

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