Browse Source

Include gl46.h just by importing OpenGL.cake

windows-imgui
Macoy Madson 6 months ago
parent
commit
a36d04bd63
  1. 4
      src/OpenGL.cake

4
src/OpenGL.cake

@ -5,7 +5,7 @@
"SDL.h"
"SDL_syswm.h"
;; Use galogen-generated header. See (generate-gl-header)
"gl46.h") ;; "GL/gl.h"
&with-decls "gl46.h") ;; "GL/gl.h"
(def-type-alias-global gl-id (unsigned int))
@ -88,7 +88,7 @@ void main()\n
(var mesh-array-object gl-id)
(glGenVertexArrays 1 (addr mesh-array-object))
(var start-indices int 0)
(var num-indices int 3)
(var num-indices int 0)
(scope
(var-static vertices ([] float)
(array

Loading…
Cancel
Save