def rfm2.vp.geo.vertex_array.VertexArray.__init__ |
( |
|
self, |
|
|
|
jsondict |
|
) |
| |
def rfm2.vp.geo.vertex_array.VertexArray.get_input_params |
( |
|
self | ) |
|
Return a list of attribute names that will drive the shape.
def rfm2.vp.geo.vertex_array.VertexArray.has_uvs |
( |
|
self | ) |
|
Return True if we can emit a uv vertex buffer.
def rfm2.vp.geo.vertex_array.VertexArray.instance_draw_method |
( |
|
self, |
|
|
|
instance_idx |
|
) |
| |
Return the draw method VP2 should use for this shape.
Defaults to lines.
def rfm2.vp.geo.vertex_array.VertexArray.is_static |
( |
|
self | ) |
|
Tells the vp code if the geometry is static or deforming, like a
spot light frustum for example. Defaults to True.
def rfm2.vp.geo.vertex_array.VertexArray.uv_buffer |
( |
|
self | ) |
|
Return a list of array coordinates for the shape. They should be
ordered exactly like the vertex buffer points and have the same size
as the vxt buffer.
The default implementation returns a zero-filled list the same size
as the vtx buffer to keep the uv buffer aligned with the vtx buffer.
def rfm2.vp.geo.vertex_array.VertexArray.uvs |
( |
|
self | ) |
|
Return uv coordinates. Optional property.
def rfm2.vp.geo.vertex_array.VertexArray.vtx_buffer |
( |
|
self | ) |
|
Return a list of vertices (list) in local space.
def rfm2.vp.geo.vertex_array.VertexArray.vtx_buffer_count |
( |
|
self | ) |
|
Return the number of vertices in this buffer.
def rfm2.vp.geo.vertex_array.VertexArray.vtxs |
( |
|
self | ) |
|
Return positions. Mandatory property.
The documentation for this class was generated from the following file: