Fixed debug circle drawing; add collision detection
This commit is contained in:
@@ -62,6 +62,10 @@ struct sprite *tsprite = NULL;
|
||||
|
||||
static unsigned int projUBO;
|
||||
|
||||
void debug_draw_phys(int draw) {
|
||||
debugDrawPhysics = draw;
|
||||
}
|
||||
|
||||
void openglInit()
|
||||
{
|
||||
if (!mainwin) {
|
||||
@@ -129,6 +133,10 @@ void openglRender(struct window *window)
|
||||
//script_call_sym(window->gui_cb);
|
||||
call_gui();
|
||||
|
||||
//// DEBUG
|
||||
if (debugDrawPhysics)
|
||||
gameobject_draw_debugs();
|
||||
|
||||
///// Sprites
|
||||
glDepthFunc(GL_LESS);
|
||||
shader_use(spriteShader);
|
||||
|
||||
Reference in New Issue
Block a user