Skip to content

PenguinSubmesh

Michael edited this page Oct 7, 2022 · 1 revision

A class that will individual vertex buffers from Penguin.

Properties

name

Type: string

The name of the vertex buffer submesh (or material), as saved from the editor.

vbuff

Type: vertex buffer

The vertex buffer itself. Can be submitted manually, or using the `Render() method.

Methods

PenguinSubmesh::Render()

Submits the vertex buffer contained by the submesh. If a sprite of the same name as the assigned diffuse texture in the editor exists in the project, it will be used. The Separate Texture Page option should be used for all of these sprites.

Vertex buffers will be submitted using the currently active shader. The currently active shader should be able to accept the vertex format the buffer was loaded with.

Clone this wiki locally