Material.
More...
Inherits Ref.
Inherited by Sprite3DMaterial.
|
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.
|
|
◆ createWithFilename()
static Material* createWithFilename |
( |
const std::string & |
path | ) |
|
|
static |
Creates a Material using the data from the Properties object defined at the specified URL, where the URL is of the format "<file-path>.<extension>#<namespace-id>/<namespace-id>/.../<namespace-id>" (and "#<namespace-id>/<namespace-id>/.../<namespace-id>" is optional).
- Parameters
-
url | The URL pointing to the Properties object defining the material. |
- Returns
- A new Material or NULL if there was an error.
◆ createWithProgramState()
static Material* createWithProgramState |
( |
backend::ProgramState * |
programState | ) |
|
|
static |
Creates a Material with a GLProgramState.
It will only contain one Technique and one Pass. Added in order to support legacy code.
◆ createWithProperties()
Creates a material from the specified properties object.
- Parameters
-
materialProperties | The properties object defining the material (must have namespace equal to 'material'). |
- Returns
- A new Material.
◆ getTechniqueByName()
Technique* getTechniqueByName |
( |
const std::string & |
name | ) |
|
◆ getTechniqueByIndex()
Technique* getTechniqueByIndex |
( |
ssize_t |
index | ) |
|
Returns a Technique by index.
returns nullptr
if the index is invalid.
The documentation for this class was generated from the following file: