OS X OpenGL
#1
Hi Team,

trying to port my RetroPlayer GL stuff to OSX.
I did following on linux which seems to be not available on OSX:
RetroPlayer.cpp:391:27: error: no member named 'GetDisplay' in 'CWinSystemOSXGL'
m_Display = g_Windowing.GetDisplay();
~~~~~~~~~~~ ^
RetroPlayer.cpp:392:27: error: no member named 'GetGlxContext' in 'CWinSystemOSXGL'
glContext = g_Windowing.GetGlxContext();
~~~~~~~~~~~ ^
RetroPlayer.cpp:393:26: error: no member named 'GetWindow' in 'CWinSystemOSXGL'
m_Window = g_Windowing.GetWindow();

Can anyone give me a pointer on how to retrieve an OpenGL context on OSX?
Thanks.
Reply
#2
Link the Full Source - i need to See the includes
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
https://github.com/a1rwulf/xbmc/commit/1...d0a4e1R391

I see that the WinSystemOSXGL.mm/h do not expose functions like GetGlxContext, GetWindow or GetDisplay.
Let me know if you need anything else - basically I just need an insight how OSX and GL is supposed to work in kodi.
Is osx also using LinuxRendererGL.cpp/h?
Reply
#4
it is not exposed for OSX because nobody shared any gl contexts on this platform so far.
while you are working on this feel free to drop crappy SDL Smile you see that SDL creates the original context and a work around right after SDL_SetVideoMode
Reply
#5
Thanks.
I'll post again if I don't come along on my own.
For now that's just what I needed to know.
Reply

Logout Mark Read Team Forum Stats Members Help
OpenGL0