-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OOGL doesn't play well with SDL2... #21
Comments
segfaults are often caused by uninitialized variables; you should look at you code and make sure you initialized all your vars, including globals (with functions like |
You are correct. I needed a call to a library which sets up the OpenGL function pointers. However when I use GL::LoadExtensions() I get 74 warnings:
Using GLEW gives me conflicting definition errors for the function pointers. Is there a better way? I really like OOGL from what I've seen of it, and I would like to use it without heavily modifying it. Finally, can I add a function to create a window object from a preexisting window? Then I can use the gl object proper. Thanks! |
That error sounds like you need to recompile the object, but I can't help you with the rest: I'm a complete noob with OpenGL, and I haven't used OOGL yet. |
|
I could not get SDL2 to play nicely with OOGL's window class. I've hacked out the windowing and platform specific code as well as the extensions code in favor of glew. I'm not sure if anyone wants this, but I'm willing to share. |
I'm trying to use SDL2 with OOGL and I've copied the relevant parts of the triangle sample. It gives a segmentation fault at the first call to create the vertex shader. This must have something to do with using SDL2 and not creating a window. Is there an example for using OOGL with other windowing libraries?
Thank you.
The text was updated successfully, but these errors were encountered: