-
Notifications
You must be signed in to change notification settings - Fork 4
Line 2D 3D
theproadam edited this page Apr 24, 2020
·
2 revisions
To render a line in screenspace or world space, renderXF provides Line3D()
and Line2D()
functions.
To draw in screenspace, use the Line2D()
function from the renderX instance.
GL.Line2D(fromX, fromY, toX, toY, R, G, B);
To draw in worldspace, use the Line3D()
function from the renderX instance. The Line3D()
function uses Vector3s. The rotation and position data is supplied from the internal vertex shader. The ForceCameraPosition()
and ForceCameraRotation()
functions can be used to position the line.
GL.Line3D(VectorFrom, VectorTo, R, G, B);
- Initializing the renderer
- Setting the transform data
- Blitting and clearing the viewport
- Initializing a vertex buffer
- Creating a shader
- Drawing an object
- Screen space shaders
- Blitting bitmaps
- Loading a texture
- Creating a framebuffer
- Displaying a texture