Re: RGFW Wrapper and Partial OpenGL Wrapper

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu