Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

open window from opengl app

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 FGFS   Members   

345
Like
0Likes
Like

Posted 27 September 2013 - 05:33 AM

HI

how to open a sdl2 window from a opengl app (x-plane plugin)? With the code below I get a crash after the delay.

Many thanks

 

http://wiki.libsdl.org/SDL_CreateWindow

 

 



#2 szymczyk   Members   

182
Like
0Likes
Like

Posted 30 September 2013 - 11:35 AM

I don't know why the code sample from the SDL wiki crashes, but the following article may help you:

 

Creating an OpenGL Context in SDL 2

 


Mark Szymczyk
Author of Mac Game Programming and Xcode Tools Sensei
http://www.meandmark.com

#3 FGFS   Members   

345
Like
0Likes
Like

Posted 01 October 2013 - 01:59 AM

Went back to 1.2...

Now I don't need a window, well maybe a child window or something alike anttweakbar but using the already existing opengl window.


Edited by FGFS, 01 October 2013 - 08:22 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.