I cannot get past firing up the teapot demo found here: http://www.newlisp.org/syntax.cgi?downloads/OpenGL/opengl-demo-ffi-lsp.txt.
- Code: Select all
(println (get-string (glGetString (| GL_VENDOR GL_RENDERER))))
gives me output similar to 'Windows Mesa DRI rendering' on windows 7 while on slack 14 i get desired 'R300 ......' string. I assume this means i cannot have hardware rendering in win7. I think i must have it to develop a real 3D game, not just a proof of concept.
I tried to import glGetString from opengl32.dll shared library inside c:\windows\system32 dir but it returns 'problem loading library in function import...'
Why opengl32.dll from http://www.turtle.dds.nl/gl4newlisp/ works, but dll provided by windows doesn't?
I also tried importing glfw3.dll function glfwInit but also ended receiving 'problem loading...' provided this dll file was copied into same dir.
I don't have a knowledge about ffi to even figure out how properly use glfw. I just thought i write an import in newlisp and it would work.
Please help, how to get opengl hardware rendering on windows 7 in newlisp?