Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this.
-
MasterLee
- Party member
- Posts: 141
- Joined: Tue Mar 07, 2017 4:03 pm
-
Contact:
Post
by MasterLee »
Simply question what is the best way to access glEnable. On my System the following works:
Code: Select all
ffi.cdef([[
typedef void (* PFNGLENABLEPROC) (int cap);
void *SDL_GL_GetProcAddress(const char *proc);
]])
ffi.cast("PFNGLENABLEPROC",ffi.C.SDL_GL_GetProcAddress("glEnable"))(0x0B71)
But is there an more elegant solution?
-
raidho36
- Party member
- Posts: 2063
- Joined: Mon Jun 17, 2013 12:00 pm
Post
by raidho36 »
No.
You can make a custom LÖVE build with this function exposed. I can give you some pointers if you want it that way.
-
slime
- Solid Snayke
- Posts: 3135
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
-
Contact:
Post
by slime »
What do you need it for, specifically?
-
MasterLee
- Party member
- Posts: 141
- Joined: Tue Mar 07, 2017 4:03 pm
-
Contact:
Post
by MasterLee »
At the moment only to enable depth buffer
It seems i need glDisable also…
Users browsing this forum: No registered users and 10 guests