Re: RGFW Wrapper and Partial OpenGL Wrapper
- Posted by petelomax 1 week ago
- 196 views
Icy_Viking said...
I finished the OpenGL wrapper. Well its really just a wrapper for the OpenGL32 DLL.
[https://github.com/gAndy50/Misc/tree/master/GL]
public constant xglEndList = define_c_proc(gl,"+glEndList",{}) public procedure glEndList() c_proc(xglEndList,{}) end procedure
I can't think of any good reason why xglEndList (et al) should be public.
You could also write it like this, technically a wee bit faster startup for small programs, albeit probably not enough to measure:
atom xglEndList = NULL public procedure glEndList() if xglEndList = NULL then xglEndList = define_c_proc(gl,"+glEndList",{}) end if c_proc(xglEndList,{}) end procedure