Cocos2d-x  v4
Technique Class Reference

Technique. More...

Inherits Ref.

Public Member Functions

void addPass (Pass *pass)
 Adds a new pass to the Technique. More...
 
std::string getName () const
 Returns the name of the Technique.
 
Pass * getPassByIndex (ssize_t index) const
 Returns the Pass at given index.
 
ssize_t getPassCount () const
 Returns the number of Passes in the Technique.
 
const Vector< Pass * > & getPasses () const
 Returns the list of passes.
 
Techniqueclone () const
 Returns a new clone of the Technique.
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static TechniquecreateWithProgramState (Material *parent, backend::ProgramState *state)
 Creates a new Technique with a GLProgramState. More...
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 

Detailed Description

Member Function Documentation

◆ createWithProgramState()

static Technique* createWithProgramState ( Material parent,
backend::ProgramState *  state 
)
static

Creates a new Technique with a GLProgramState.

Method added to support legacy code

◆ addPass()

void addPass ( Pass *  pass)

Adds a new pass to the Technique.

Order matters. First added, first rendered


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