Pandora Does GLFW work on openpandora?


jontheramer

Still Fresh
Joined
Jul 3, 2012
Messages
39
If not, what would be needed to make it work? My games depend on it and I don't see much reasons why it wouldn't work?


(Disclaimer: I didn't try yet as I don't have my Pandora yet, but I want to prepare some stuff for when it arrives)
 
Why is that the case? I don't know much about the internals of GLFW, I just use it for games.
 
I've ported GLFW to EGL. The pull request to upstream is still pending.


Pull request here


That should work on pandora as well, since it was where I tested it when I had the donated pandora.
 
Last edited by a moderator:
The port compiles fine but I cannot get it to work ; I use it with GLESv2 and the init goes fine, however when trying to create a window, it complains that it Failed to find a suitable EGLConfig. I added some 'low level' config selection code and that works fine, no errors. However GLFW 3 always fails... Any ideas? 
 
With the following hints I am one step further: 

        glfwWindowHint( GLFW_RESIZABLE,CFG_GLFW_WINDOW_RESIZABLE ? GL_FALSE : GL_TRUE );

        glfwWindowHint( GLFW_VISIBLE, GL_TRUE );

        glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);

 

        glfwWindowHint(GLFW_RED_BITS, 5);

        glfwWindowHint(GLFW_GREEN_BITS, 6);

        glfwWindowHint(GLFW_BLUE_BITS, 5);

        glfwWindowHint(GLFW_SAMPLES, 4);

 

I see the screen flicker; after that 

 

Error: Failed to retrieve context version string

 

Edit: Managed to get it working, but don't like the solution. 

 

- I switched to GLES_CM (GLES 1) 

- I hardcode the version in context.c 

 

Now it all works. What's up with that version string though? 
 
Last edited by a moderator:
Back
Top