DGL https://delphigl.com/forum/ |
|
Jedi SDL + dglOpenGL.pas https://delphigl.com/forum/viewtopic.php?f=19&t=3765 |
Seite 1 von 1 |
Autor: | Gast [ Mo Feb 07, 2005 13:09 ] |
Betreff des Beitrags: | Jedi SDL + dglOpenGL.pas |
I tried using dglOpenGL.pas with the SDL demos. Replacing the unit OpenGL12.pas with dglOpenGL.pas and making the required changes so it compiles. When running the application, as soon as any OpenGL call is made I get a access violation. Anyone have a idea of what is the cause of this and how it can be fixed? |
Autor: | sniper [ Mo Feb 07, 2005 13:28 ] |
Betreff des Beitrags: | |
Code:
|
Autor: | Gast [ Mo Feb 07, 2005 13:40 ] |
Betreff des Beitrags: | |
Thank you, but I create the window using SDL calls. What I did notice is this call ActivateRenderingContext(mydc, myrc); I don't have this in my code. So does anyone know how I can extract the DC and HDC from SDL for use in this call? |
Autor: | sniper [ Mo Feb 07, 2005 15:32 ] |
Betreff des Beitrags: | |
Zitat: ActivateRenderingContext(mydc, myrc);
Without this line you can´t go on, because that is the place where all the functions pointer of OpenGL library are loaded. That is the reason why you get "Access violation" message, all pointers are = NIL. So any call to glXXX is a Access violation itself. And sorry i can´t help you, have no knowlege on SDL. |
Autor: | Lossy eX [ Mo Feb 07, 2005 15:38 ] |
Betreff des Beitrags: | |
Phobeus made this Tutorial about SDL and OpenGL. There are some sources. May it can helps. |
Autor: | Gast [ Mo Feb 07, 2005 15:52 ] |
Betreff des Beitrags: | |
Your answer is good enough, thanks a bundel. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |