Package lol.trq.helios.mesh
package lol.trq.helios.mesh
-
ClassDescriptionTakes line segments.The vertex layouts behind the sinks, one per sink type, each with its own shader.Records vertices of one format through the matching sink, to upload once as a
StaticMesh.Draws 3D meshes written through the sinks:MeshRenderer.quads(),MeshRenderer.lines()andMeshRenderer.textured().What every vertex sink shares: a transform applied on the CPU to everything written after it.Takes flat-coloured quads: four vertices per quad, in order around it.A mesh uploaded once into its ownGL_STATIC_DRAWbuffers and vertex array.Takes textured quads: four vertices per quad, in order around it.