Access glEnable

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.
Post Reply
MasterLee
Party member
Posts: 141
Joined: Tue Mar 07, 2017 4:03 pm
Contact:

Access glEnable

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?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Access glEnable

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.
User avatar
slime
Solid Snayke
Posts: 3135
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Access glEnable

Post by slime »

What do you need it for, specifically?
MasterLee
Party member
Posts: 141
Joined: Tue Mar 07, 2017 4:03 pm
Contact:

Re: Access glEnable

Post by MasterLee »

At the moment only to enable depth buffer

It seems i need glDisable also…
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests