Ajout du GUI

This commit is contained in:
thatscringebro
2022-08-08 16:31:52 -04:00
parent db362ccdca
commit abd15f28b6
851 changed files with 99957 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
from kivy.logger import Logger
include "../include/config.pxi"
from kivy.graphics.cgl cimport cgl
import os
cdef int env_debug_gl = "DEBUG_GL" in os.environ
cdef inline void log_gl_error(str note):
if env_debug_gl:
ret = cgl.glGetError()
if ret:
Logger.error("OpenGL Error: {note} {ret1} / {ret2}".format(
note=note, ret1=ret, ret2=hex(ret)))