Renderer
Last updated
Last updated
A window with an attached graphics library is required for this to function.
primitive_topology
(integer) – Specifies the type of primitive to be rendered. It determines how the vertices will be connected (e.g., triangles, lines, etc.).
vertices
(table) – A table containing objects, each defining a point in 2D or 3D space with position, color, and other attributes.
indices
(table) – A table of integers representing the order in which vertices should be connected to form the desired shape.
Returns a , which can be used to change the primitive_topology
, vertices
, and indices
later on.