constructor
new BBMOD_VertexFormat([_vertices[, _normals[, _uvs[, _colors[, _tangentw[, _bones[, _ids]]]]]]])
A wrapper of a raw GameMaker vertex format.
Name | Type | Description |
---|---|---|
_vertices | Bool |
If true then the vertex format must have vertices. This should always be true ! Defaults to true . |
_normals | Bool |
If true then the vertex format must have normal vectors. Defaults to false . |
_uvs | Bool |
If true then the vertex format must have texture coordinates. Defaults to false . |
_colors | Bool |
If true then the vertex format must have vertex colors. Defaults to false . |
_tangentw | Bool |
If true then the vertex format must have tangent vectors and bitangent signs. Defaults to false . |
_bones | Bool |
If true then the vertex format must have vertex weights and bone indices. Defaults to false . |
_ids | Bool |
If true then the vertex format must have ids for dynamic batching. Defaults to false . |
Name | Description |
---|---|
Bones | If true then the vertex format has vertex weights and bone indices. |
Colors | If true then the vertex format has vertex colors. |
Ids | If true then the vertex format has ids for dynamic batching. |
Normals | If true then the vertex format has normal vectors. |
Raw | The raw vertex format. |
TangentW | If true then the vertex format has tangent vectors and bitangent sign. |
TextureCoords | If true then the vertex format has texture coordinates. |
Vertices | If true then the vertex format has vertices. |
Name | Description |
---|---|
get_byte_size | Retrieves the size of a single vertex using the vertex format in bytes. |
get_hash | Makes a hash based on the vertex format properties. Vertex buffers with same propereties will have the same hash. |
Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.