Inherits RenderState.
Public Member Functions | |
void | addPass (Pass *pass) |
Adds a new pass to the Technique. More... | |
var | addPass ( var pass) |
Adds a new pass to the Technique. More... | |
local | addPass ( local pass) |
Adds a new pass to the Technique. More... | |
std::string | getName () const |
Returns the name of the Technique. | |
var | getName () |
Returns the name of the Technique. | |
local | getName () |
Returns the name of the Technique. | |
Pass * | getPassByIndex (ssize_t index) const |
Returns the Pass at given index. | |
var | getPassByIndex ( var index) |
Returns the Pass at given index. | |
local | getPassByIndex ( local index) |
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. | |
Technique * | clone () const |
Returns a new clone of the Technique. | |
var | clone () |
Returns a new clone of the Technique. | |
local | clone () |
Returns a new clone of the Technique. | |
Public Member Functions inherited from RenderState | |
void | setTexture (Texture2D *texture) |
Texture that will use in the CC_Texture0 uniform. More... | |
var | setTexture ( var texture) |
Texture that will use in the CC_Texture0 uniform. More... | |
local | setTexture ( local texture) |
Texture that will use in the CC_Texture0 uniform. More... | |
Texture2D * | getTexture () const |
Returns the texture that is going to be used for CC_Texture0. More... | |
void | bind (Pass *pass) |
Binds the render state for this RenderState and any of its parents, top-down, for the given pass. | |
RenderState * | getTopmost (RenderState *below) |
Returns the topmost RenderState in the hierarchy below the given RenderState. | |
var | getTopmost ( var below) |
Returns the topmost RenderState in the hierarchy below the given RenderState. | |
local | getTopmost ( local below) |
Returns the topmost RenderState in the hierarchy below the given RenderState. | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
local | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
local | getReferenceCount () |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Static Public Member Functions | |
static Technique * | createWithGLProgramState (Material *parent, GLProgramState *state) |
Creates a new Technique with a GLProgramState. More... | |
var | createWithGLProgramState ( var parent, var state) |
Creates a new Technique with a GLProgramState. More... | |
local | createWithGLProgramState ( local parent, local state) |
Creates a new Technique with a GLProgramState. More... | |
Static Public Member Functions inherited from RenderState | |
static void | initialize () |
Static initializer that is called during game startup. | |
var | initialize () |
Static initializer that is called during game startup. | |
local | initialize () |
Static initializer that is called during game startup. | |
static void | finalize () |
Static finalizer that is called during game shutdown. | |
local | finalize () |
Static finalizer that is called during game shutdown. | |
Additional Inherited Members | |
Public Types inherited from RenderState | |
enum | DepthFunction |
Defines the supported depth compare functions. More... | |
enum | CullFaceSide |
Defines culling criteria for front-facing, back-facing and both-side facets. | |
enum | FrontFace |
Defines the winding of vertices in faces that are considered front facing. More... | |
enum | StencilFunction |
Defines the supported stencil compare functions. More... | |
enum | StencilOperation |
Defines the supported stencil operations to perform. More... | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
local | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
local | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
local | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
local | _rooted |
When true, it means that the object was already rooted. | |
|
static |
Creates a new Technique with a GLProgramState.
Method added to support legacy code
|
static |
Creates a new Technique with a GLProgramState.
Method added to support legacy code
|
static |
Creates a new Technique with a GLProgramState.
Method added to support legacy code
void addPass | ( | Pass * | pass | ) |
Adds a new pass to the Technique.
Order matters. First added, first rendered
var addPass | ( | var | pass | ) |
Adds a new pass to the Technique.
Order matters. First added, first rendered
local addPass | ( | local | pass | ) |
Adds a new pass to the Technique.
Order matters. First added, first rendered