r

rlgl_ex

v5411923library

rlgl extension for Odin

0 stars0 forksZlibupdated 4 months ago
Open repo

moved to codeberg

rlgl_ex

rlgl extension for Odin

This library leverages rlgl and raylib to make advanced graphics rendering simpler.

It also contains various functions deemed too excessive to be included with base rlgl, and an enum to make interfacing with Begin() read better, that was rejected from the base vendor library.

It is intended to be used alongside vendor:raylib/rlgl.

Docs

Define one vertex (color)

VertexColor :: proc(color: rl.Color)

Define one vertex (color) - 3 byte

VertexColor3ub :: proc(r, g, b: u8)

Define one vertex (position) - 2 f32

VertexPosition2 :: proc(vector: rl.Vector2)

Define one vertex (texture coordinate) - 2 f32

VertexTexCoord2 :: proc(vector: rl.Vector2)

Define one vertex (position) - 3 f32

Vertex3fVector3 :: proc(vector: rl.Vector3)

Multiply the current matrix by a translation matrix

MatrixTranslate3 :: proc(vector: rl.Vector3)

Multiply the current matrix by a rotation matrix

MatrixRotate3 :: proc(angleDeg: f32, vector: rl.Vector3)

Multiply the current matrix by a scaling matrix

MatrixScale3 :: proc(vector: rl.Vector3)

Define one vertex (normal) - 3 f32

MatrixNormal3 :: proc(vector: rl.Vector3)

Clear color buffer with color

ClearColor :: proc(color: rl.Color)

DrawTriangleColor :: proc(points: [3]rl.Vector2, colors: [3]rl.Color)

DrawRectangleColor :: proc(points: [4]rl.Vector2, colors: [4]rl.Color)

DrawRectangleColorEx :: proc(rectangle: rl.Rectangle, colors: [4]rl.Color)

DrawLineColor :: proc(points: [2]rl.Vector2, colors: [2]rl.Color)

Package Info
Version
v5411923
License
Zlib
Author
@RobinsAviary
Type
library
Forks
0
Created
8 months ago
Updated
4 months ago
Health
maintained
has releases
has readme
has license
Activity
last 56 weeks