efficient opengl rendering

This commit is contained in:
2023-05-16 06:31:13 +00:00
parent 0b6566ff8b
commit d662d9e2fa
20 changed files with 459 additions and 422 deletions

View File

@@ -321,7 +321,12 @@ void gameobject_draw_debug(int go) {
if (!g || !g->body) return;
cpVect pos = cpBodyGetPosition(g->body);
float color[3] = {0.76f, 0.38f, 1.f};
struct rgba color = {
.r = 0.76*255,
.b = 0.38*255,
.g = 255,
.a = 255
};
draw_point(pos.x, pos.y, 3.f, color);
cpBodyEachShape(g->body, body_draw_shapes_dbg, NULL);
}