Re: OpenGL and luajit

  • From: Elias Hogstvedt <eliashogstvedt@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 19 Jan 2018 11:39:49 +0100

You should avoid using ffi.load("opengl") as it's not portable. You should
find a window manager such as GLFW or SDL2 to use instead to get the
function pointers for the OpenGL functions you need.

SDL2 For example: https://wiki.libsdl.org/SDL_GL_GetProcAddress

Google for some hello world opengl example with SDL2 or GLFW and try to
load functions as described in the link above.






On Fri, Jan 19, 2018 at 11:14 AM, <dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hi
Please explain in detail how to adapt OpenGL for luajit. I want to do it
myself.
Thank you.

Other related posts: