Skip to content
Vašek edited this page Feb 5, 2019 · 4 revisions

Simplex renders all shapes using so called vertices, which are in a form of an array sent to a gpu with additional information about how to process them. That means all shapes are 3D accelerated, resulting in a great performance when drawing them and an ability to zoom almost indefinitely without loosing quality of images - vertices are simply put vectors often equipped with more parameters, like color or texture. When a task is given to draw a shape, the first step engine does is triangulation - a process that populates a list of triangles (as gpu is able to draw only triangles) which together form desired shape. Lines are essentially made out of one triangle with two out of three points sharing positions. Rectangle / square is shaped from two triangles as shown in the image above. Once triangles are constructed, they are drawn using a process of rasterization. This allows us to draw either filled shapes or just wires. Below is a list of sgml functions one can use to render various shapes.

Shape Functions

Back to Drawing

Clone this wiki locally