Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
Technique Class Reference

Technique. More...

#include <Technique.h>

Inherits Object.

Public Member Functions

void addPass (Pass *pass)
 Adds a new pass to the Technique.
 
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 Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Static Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

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: