modules.render.vao#

class modules.render.vao.VAO(vertex_bytes: int, index_bytes: int)#

Bases: object

__init__(vertex_bytes: int, index_bytes: int)#
append_mesh(cpu_mesh)#

Appends a CPUMeshData to the arena. Returns (baseVertex, firstIndex).

static bytes_in_indices(num_indices: int)#
static bytes_in_vertices(num_vertices: int)#
static indices_in_bytes(b: int)#
static vertex_stride()#

Use a 56 byte stride

Reference: combined = np.hstack((

v, # 3 : 12 bytes n, # 3 : 12 bytes t, # 2 : 8 bytes tangents, # 3 : 12 bytes bitangents # 3 : 12 bytes

)).astype(np.float32, copy=False)

static vertices_in_bytes(b: int)#