Class AS::GeometryBuffer
In: lib/as_geometrybuffer.rb
Parent: Object

Utility class to assist in populating VertexBuffers.

Methods

Classes and Modules

Class AS::GeometryBuffer::Geom

Attributes

vbuffer  [R]  The AS::VertexBuffer that the GeometryBuffer is bound to.

Public Class methods

n_vert is the number of vertex coordinates. n_tex is the number of texture coordinates, c_color is the number of color coordinates.

Public Instance methods

Add a new Geom for the given vertex information.

Create a Geom for a texture.

Repack and upload the buffer.

Remove a geom from the buffer.

[Validate]