Primitive can support sending points, lines and triangles to glpipeline, which is an abstraction of primitive data.
More...
Inherits 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.
|
|
Primitive can support sending points, lines and triangles to glpipeline, which is an abstraction of primitive data.
Create an instance of primitive.
- Parameters
-
verts | VertexData used in the primitive. |
indices | Optional index data. |
type | The type (Points, Lines, Triangles) used. |
var create |
( |
var |
verts, |
|
|
var |
indices, |
|
|
var |
type |
|
) |
| |
|
static |
Create an instance of primitive.
- Parameters
-
verts | VertexData used in the primitive. |
indices | Optional index data. |
type | The type (Points, Lines, Triangles) used. |
local create |
( |
local |
verts, |
|
|
local |
indices, |
|
|
local |
type |
|
) |
| |
|
static |
Create an instance of primitive.
- Parameters
-
verts | VertexData used in the primitive. |
indices | Optional index data. |
type | The type (Points, Lines, Triangles) used. |
Get the optional index data, will return null if index data is not used.
Get the optional index data, will return null if index data is not used.
Get the optional index data, will return null if index data is not used.
called by rendering framework, will send the data to GLPipeline.
called by rendering framework, will send the data to GLPipeline.
called by rendering framework, will send the data to GLPipeline.
Get the start index of primitive.
Get the start index of primitive.
Get the start index of primitive.
Get the number of vertices or indices used for drawing.
Get the number of vertices or indices used for drawing.
Get the number of vertices or indices used for drawing.
void setStart |
( |
int |
start | ) |
|
Setter for the start index.
var setStart |
( |
var |
start | ) |
|
Setter for the start index.
local setStart |
( |
local |
start | ) |
|
Setter for the start index.
void setCount |
( |
int |
count | ) |
|
var setCount |
( |
var |
count | ) |
|
local setCount |
( |
local |
count | ) |
|
The documentation for this class was generated from the following file: