summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
AgeCommit message (Collapse)Author
2010-06-03Make wxgl mandatory on OS X.nJoySoren Jorvang
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5576 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-01GL: Relax multisampling constraints on visualpierre
All visuals with parameter GLX_SAMPLE_BUFFERS_ARB = 0 have GLX_SAMPLES_ARB = 0, so the old code would only ever choose visuals with GLX_SAMPLE_BUFFERS_ARB>=1 and GLX_SAMPLES_ARB>=1. Some drivers do not export any multisampling capable visuals, so dolphin fails to find a matching visual and falls back to the single buffered visual(which does not work for some yet unknown reason). Fixes issue #2647. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5565 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-05-16Added a catch-all OpenGL visual. This allows the VideoSoftware plug-in to ↵skidau
run under VirtualBox. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5454 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-22Move fullscreen display resolution control to the GUI with the rest of the ↵Glenn Rice
fullscreen toggling code. This removes redundancy of code that was in several places through the various video plugins. Unfortunately it means the fullscreen resolution setting also had to be moved to the main configuration dialog. I am sure that will meet some resistance. Also added a window size setting for windowed mode. Also pulled some X11 specific code out into a separate file. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5395 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-17Logical reorderring of the GUI boot sequence. Also a little clean up in the ↵Glenn Rice
OpenGL plugin. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5379 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-12Fixes wxGL, so it draws correctly in OSX, so Draw to Main works if enabled ↵Sonicadvance1
in OSX. Disabled, it creates a window but with no titlebar git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5341 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-12Big restructuring of how the video plugin works. In linux and windows you ↵Glenn Rice
shouldn't see a change in the functionality; however, there are changes in how render to main or not, and fullscreen modes, and such are handled. Input is largely restructured for the video plugin. It is now handled by the host. Keys for pausing and changing fullscreen are configurable. More will probably be later. This is probably classified as highly experimental. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5336 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-02Build fix for windowsGlenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5266 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-04-01Fix state saving and loading in linux. Apparently that is why the ↵Glenn Rice
OpenGL_MakeCurent was in the video plugin DoState. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5265 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-28fixed fps limiting when using using virtual xfb, now fps = vps, in fact now ↵Rodolfo Osvaldo Bogado
real xfb is as fast as no using xfb, i'm thinking now that the correct thing is leave it enabled as default, and even remove the option. the problem is one strange behavior i found, in opengl when xfb is enable, frame limit causes the frame rate to be limited exact half the correct speed, so if you choose auto and the game uses 30 fps you get 15 fps so in opengl, you have to limit to the exact double of the game speed, 100 to pal games and 120 to ntsc. in d3d this not happened every time, it just happen when you change some time consuming setting like changing the ssaa or resizing the window, in that case you have to disable and re enable frame limit to get the correct fps to all the devs please if you can help me debug this, will give you a lot of thanks as i'm short in time to debug this error and is driving me crazy not to find the source of the problem. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5249 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-16Shutdown NoGUI build properly in linux.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5202 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-16No gui fix in linux.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5201 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-16nowx build fix, and fix a bug when render to main is changed from the gfx ↵Glenn Rice
config dialog while the emulator is running. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5200 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-15Rewrite of fullscreen toggling in linux. This goes back to using the EWMH ↵Glenn Rice
specifications. I wasn't using it right before, but now it should work on all EWMH compliant window managers (like KDE, Metacity, Compiz, etc). Since this doesn't need an override redirect Alt-Tab works even in fullscreen mode. This also allows for some other nice things to be done. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5199 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-13Still didn't have the render to main resize thing. Need to move the window ↵Glenn Rice
if the panel is to the left. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5194 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-13Fix an issue in linux where if both render to main and fullscreen are ↵Glenn Rice
checked the emulator started in fullscreen with the wrong window size. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5193 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-12In linux with render to main, make sure the emulator window is resized if ↵Glenn Rice
the log window is opened or resized. Also fix a memory leak, and a little code clean up. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5190 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-10Fixed an issue that caused the render to main window to lose focus if the ↵Glenn Rice
gfx config dialog is opened while the emulator is running. Only affects linux. Also fixed a few preprocessor conditionals. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5186 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-03-08Implement render to main in linux. In order to compile this in you will ↵Glenn Rice
have to have libgtk2.0-dev (or your distributions equivalent) installed. If not dolphin-emu will still build, but without render to main operational. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5176 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-28Enable the OSD hotkeys in linuxGlenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5147 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-20Some code clean up, and take care of some compiler warnings.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5090 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-18In linux when in fullscreen, make escape leave fullscreen then pause.Glenn Rice
More like on windows? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5079 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-17Make the Escape key pause the emulator in linux when not in fullscreen.Glenn Rice
I believe this is the same as in windows? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5078 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-17Minor tweaks to fullscreen in linux, and make FullScr button in GUI work.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5074 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-16Enable fullscreen switching with resolution mode changing using Xrandr in linux.Glenn Rice
This changes the dependency in linux from libxxf86vm-dev to libxrandr-dev. Use Alt-Return to toggle fullscreen mode (as in windows). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5065 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-15Fix mouse emulation in fullscreen mode in linux. The window doesn't have ↵Glenn Rice
focus then. Also minor tweak to mouse hiding. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5063 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-13In linux only read keyboard and mouse input when the emulator window has focus.Glenn Rice
Also other code clean up. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5053 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-13EXPERIMENTALGlenn Rice
Removed X event loops from GCPad and Wiimote plugins, and implemented an asynchronous check for keyboard and mouse buttons. Also added an X event loop in core that handles events while the emulator is paused. Prevents unexpected behavior from events that occur while the emulator is paused. Now there is only one event loop running at a time (besides those hidden in SDL). I will revert this commit if other devs are unhappy with it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5048 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-12Compiling with rev 63470 of wxWidgets now works with OSX x86_64. There are a ↵Sonicadvance1
BUNCH of errors while running, none fatal from what I've seen. This also fixes Dolphin creating multiple NSWindows when running multiple games. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5041 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-12Implement wiimote IR emulation with the mouse without using the pointer ↵Glenn Rice
motion events. Hopefully this removes some of the overhead from the X event loops. One downside is that the IR emulation will not work until another event on the window has occured. Although this is minor, usually an event happens before you need the IR pointer. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5040 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-08Enable dynamic fullscreen switching in linux. Toggle fullscreen mode with ↵Glenn Rice
the escape key. Unfortunately this fullscreen mode is separate from the fullscreen mode obtained from the OGL config dialog. To close that fullscreen mode you must use Alt-F4 for now (not escape). This is not how we want this to end up but there is a mode switching issue I can't figure out. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5029 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-07Fix segfault in linux if user clicks on the window manager close button of theGlenn Rice
emulator. Also added the ability to close the emulator with the escape key. Fixed an issue that caused a segmentation fault when trying to close the emulator when running in fullscreen mode, which can also be done using the escape key. This makes fullscreen mode useable in linux! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5023 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-06Completed TODO: Core::GetStartupParameter is deadGlenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5019 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-06In linux process events from the main frame regularly to update statusbar textGlenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5018 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-05Correct stopping of Core in OSX via Command+Q, and fix a thread from not ↵Sonicadvance1
dying when stopping with CoreAudio git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5013 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-02-04Implement hiding of mouse cursor on linux.Glenn Rice
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5007 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-26Added mouse support for linux. It is still rather crude, but it works.Glenn Rice
Unfortunately the mouse pointer doesn't match up very well with the IR pointer yet. Also, I had to add the PointerMotionMask to XSelectInput which adds overhead to the already stressed X event loops. Five event loops by my count, really? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4961 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-21thats more like it i guess...j4ck.fr0st
does the Software Plug in not check for RenderToMainframe on purpose? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4920 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-01-20Fixes Issue 2080 for DX9 & OGLayuanx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4910 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-15reapply the changes from rev 4532 (without the resizing issues) and the ↵luisr142004
changes from rev 4555 -- fixes issue 1660 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4578 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-14revert to r4531, but keep the changes from the following revisions: ↵Shawn Hoffman
4533,4550-4551,4556-4559 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4566 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-11-12Fix some plugin communication with the video plugins (fixes Esc button) and ↵luisr142004
apply an opengl equivalent of my first commit :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4532 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-10-12SW plugin: compile on linuxnakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4413 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-13Rename Config.cpp/h to VideoConfig.cpp/h.hrydgard
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4260 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-13Lots of code and warning cleanup. OGL/D3D: Moved to a shared config class in ↵hrydgard
VideoCommon. This lets VideoCommon code read the config without ugly hacks. Fixed various config race conditions by keeping a copy (g_ActiveConfig) of the g_Config struct which is updated once per frame. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4256 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-09OGL: nakeee
Kill not working sdl backend remove some wxgl code change defined a bit so resolution detection can be done right with wxgl and X11 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4239 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-09removed the failed gltest code nakeee
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4238 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-09-06GUI: Fixed a double keydown event in the main frame, the double click in the ↵John Peterson
video window (didn't know about CS_DBLCLKS) OpenGL: Fixed the live resolution setting git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4211 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-30plugins can now compile with unicodeLPFaint99
excluding DX9 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3905 8ced0084-cf51-0410-be5f-012b33b47a6e
2009-07-28Now ALL copyright dates are fixed to the legally correct year: The year in ↵XTra.KrazzY
which the project began. Now we don't have to change it every year :) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3898 8ced0084-cf51-0410-be5f-012b33b47a6e