summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/GLInterface
AgeCommit message (Collapse)Author
2014-11-02Move GLInterface to the OGL VideoBackend's directory.Augustin Cavalier
2014-10-26Merge pull request #1374 from lioncash/clearctxskidau
AGL: Use NSOpenGLContext's clearCurrentContext in ClearCurrent
2014-10-23AGL: Use NSOpenGLContext's clearCurrentContext in ClearCurrentLioncash
2014-10-23Fixes black screen issue on EGL+X11 systems.Ryan Houdek
We weren't setting the backbuffer dimensions on this platform when the window is created. This required a resize event to first be fired in order to see anything. So instead do like GLX + X11 platforms do and query the dimensions and set the backbuffer to them. Should fix issue 7666.
2014-09-14Kill off the wx casts within InputCommon and GLInterface.Lioncash
All because someone didn't actually return the wxWindow handle for the edge case.
2014-09-05Revert "Don't sleep in the event thread"Ryan Houdek
2014-09-04Don't sleep in the event threadJasper St. Pierre
The person who wrote this seemed to misunderstand how XPending and XNextEvent actually work. XNextEvent will wait in poll if there's no event yet, meaning that we don't need to sleep after we process all the events; the kernel will sleep for us. This changes indentation, so view with -w or a similar feature to understand what's actually changed here.
2014-08-30DolphinWX: Clean up brace placementsLioncash
2014-08-30Get rid of C-style empty function parameter indicatorsLioncash
2014-08-27glx: fix shutdown hangdegasus
2014-08-21Fixed black screen on game start for X11 contexts.archshift
2014-08-19Add back X11 support to EGLJasper St. Pierre
Refactor the EGL backend to provide a platform separation here, which is better abstracted away than the old EGL/X11 implementation.
2014-08-19X11_Util: Don't specify a background pixelJasper St. Pierre
This causes flickering when resizing the window, which looks horrid and we shouldn't do it.
2014-08-19GLInterface: Destroy GLWinJasper St. Pierre
Everything is now safely tucked inside each individual GLInterface.
2014-08-19Core: Remove UpdateFPSDisplayJasper St. Pierre
This is effectively unused, as the window handles that we pass to the GLInterface are window handles for the frame which isn't ever a real toplevel window. Host_UpdateTitle is what actually sets the proper title on the render window.
2014-08-19Core: Don't pass through a reference to the window handleJasper St. Pierre
Now that MainNoGUI is properly architected and GLX doesn't need to sometimes craft its own windows sometimes which we have to thread back into MainNoGUI, we don't need to thread the window handle that GLX creates at all. This removes the reference to pass back here, and the g_pWindowHandle always be the same as the window returned by Host_GetRenderHandle(). A future cleanup could remove g_pWindowHandle entirely.
2014-08-19EGL: Stop the window_handle shuffling as wellJasper St. Pierre
2014-08-19X11_Util: Resize the GLX window by listening to events on the parentJasper St. Pierre
We now have two cases: the GLX window is parented into a frame, or it's parented into the MainNoGUI host. In both cases, the GLX window should be locked to the size of the parent, so just sync it up based on that.
2014-08-19MainNoGUI: Move a majority of the event handling from the GLX backendJasper St. Pierre
The only reason the GLX backend handled this at all was because MainNoGUI didn't make its own window before. This is unused in DolphinWX builds.
2014-08-19MainNoGUI: Supply a window in Host_GetRenderHandleJasper St. Pierre
Our existing code was relying on the GLX backend to create the GLX window properly, and for the rest of the code to patch that up, sort of. If we rely on Host_GetRenderHandle() returning a valid window, we can do a lot better about this. Create a simple window inside MainNoGUI to make this happen.
2014-08-19GLX: Remove evdpy / dpy splitJasper St. Pierre
Move to one display. There's no reason to have two displays here -- the comment stated that one should touch GLX and one should touch window events, and that they should be touched from different threads, but the current code wasn't this careful. Just use one Display connection.
2014-08-19Remove support for EGL under X11Jasper St. Pierre
Now, the only supported EGL platform is Android. We might eventually add back support for EGL/X11 or EGL/Wayland, but it will have to be architected differently.
2014-08-19Remove support for WaylandJasper St. Pierre
Yes, this is a fancy new feature, but our Wayland support was particularly bitrotten, and ideally this would be handled by a platform layer like SDL. If not, we can always add this back in when GLInterface has caught up. We might be able to even support wxWidgets and GL together with subsurfaces!
2014-08-10X11_Util: Fix build when using EGLJasper St. Pierre
We forgot to remove the reference to GLWin.width / GLWin.height here.
2014-08-08GLX: Remove all Host_GetRenderWindowSize calls.Lioncash
Also remove x, y, width and height from the GLInterface, since it's only used in GLX, which no longer uses them
2014-08-08AGL: Remove the call to Host_GetRenderWindowSize().Lioncash
Just uses platform-specific ways to do the same thing.
2014-08-08WGL: Get rid of the use of the Host_GetRenderWindowSize() call.Lioncash
Just use the Windows API to accomplish the same thing (this is what is done in Update()). This makes the backing window handle the correct data-type for Windows for easier use in function calls.
2014-08-02Move GLInterface around to remove VideoBackends dependency on DolphinWXPierre Bourdon
2014-07-11mark all local variables as staticdegasus
2014-06-28Fix OpenGL VSyncAnti-Ultimate
2014-06-15Fix OpenGL video backend when using "render to main" on Windows.Jules Blok
2014-06-15Remove EmuWindow.Armada
All it did was raise complexity.
2014-04-02Fix compilation error of Wayland_Util.hpf packet
This commit fixes the following error: error: #endif without #if
2014-03-27Fix include order in EGL.h.Lioncash
2014-03-17Clang 3.4 exposes some warnings on Android.Ryan Houdek
Fixes all warnings on Android build except for what is in externals. Removes a function from TextureDecoder_Generic since it is unused and generates a warning.
2014-03-14Kill off some usages of c_str.Lioncash
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-03-09clang-modernize -add-overrideTillmann Karras
2014-02-24Fetch swapInterval function pointer after binding a contextdegasus
This fixes vsync on windows
2014-02-20Fix the Android build.Lioncash
Required the removal of EGL.h from EGL.cpp. Removed the similar includes from AGL.cpp, GLX.cpp, and WGL.cpp to retain consistency. All GL interfaces are now centralized on GLInterface.h
2014-02-20Fix more header sorting issues in DolphinWX/ (now check-includes clean).Pierre Bourdon
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-17Second and final pass of clearing out tabs.Lioncash
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2014-02-06Fix a typo in EGL.h for setting mode.Ryan Houdek
Seems to have been a copy and paste issue where SetMode would always set to DETECT This isn't right since mode should be set correctly by SetMode
2014-01-29[Android] Fix Android not calling eglSwapBuffersRyan Houdek
This isn't the cleanup that GLInterface needs, but for now it makes it so it'll swap and not just black screen A cleanup to GLInterface will be coming in a couple weeks.
2014-01-27Fix compilationJules Blok
2014-01-27Fix coding styleJules Blok
2014-01-27Implement SwapInterval for AGL interfaceZakk