Robert Beckebans
485417ab41
Removed obsolete sdl_qgl.cpp and fixed some compile errors
2014-05-10 15:29:59 +02:00
Robert Beckebans
3b19aa7991
Added glConfig.vendorType settings for Linux and disabled unused shaders. #90
2014-04-20 17:20:50 +02:00
Robert Beckebans
a315630d7d
Changed astyle-code.sh script to use the system astyle which is 2.03 on Kubuntu 13.10
2014-02-23 15:19:11 +01:00
Christoph Korn
264ffcb6f7
Fix typos
...
Just fix some typos.
2013-12-31 02:23:16 +01:00
Jonathan Young
b3983e582a
astyle
2013-09-21 19:37:12 +10:00
Daniel Gibson
1f5579a697
Fix compilation with SDL2 Release
...
.. they removed ev.key.keysym.unicode - but checking for
SDL_SCANCODE_GRAVE is better anyway to handle console key
2013-08-13 23:08:48 +02:00
Robert Beckebans
cbd696cc67
Merge remote-tracking branch 'DanielGibson/improve-threading'
2013-03-26 09:58:14 +01:00
Robert Beckebans
dcae311b7f
Renamed in_kbd to in_keyboard
2013-03-26 09:56:48 +01:00
Daniel Gibson
ae02bb54a1
Make it compile with SDL2 again
...
For some reason SDL.h (or headers included by it) need some
string functions (like strncmp) in inline-functions (that we
don't even use).
Str.h has #defines preventing their usage.. so #undef those in
the (few) sourcefiles that need SDL headers
2013-03-24 23:44:13 +01:00
Daniel Gibson
5001b49841
try to fix console deadkey problem
2013-03-16 14:32:47 +01:00
Reto Schneider
f7b532df63
SDL_GetWindowDisplay got renamed to SDL_GetWindowDisplayIndex
...
SDL2 commit: http://hg.libsdl.org/SDL/rev/7174fb08017a
2013-02-05 07:07:49 +01:00
Daniel Gibson
1d56411f56
Fix console-input in SDL1.2 for lots of unmapped keys
...
A lot of keys (especially keys not available on US keyboards) just weren't
supported for console input with SDL1.2 (SDL2 uses a different mechanism for
that).
This is fixed now by reordering a few lines in sdl_events.cpp
Please note that still only ASCII characters are supported and those keys
still can not be used in bindings - only for text input!
2013-01-20 04:16:19 +01:00
Daniel Gibson
a405b37f13
Pause when window loses focus, introduce com_pause
...
If the window loses focus com_pause is set to 1, when it regains focus
it's set to 0.
The behaviour on Win32 stayed the same (the implementation is less
hacky though) and Linux now matchces that.
2013-01-04 14:40:35 +01:00
Daniel Gibson
732d8987d3
support ctrl-g for (un)grabbing mouse
...
Many Linux Games support that
2013-01-04 14:40:35 +01:00
Daniel Gibson
a1c1f1b6b2
Support resizing windows for SDL1.2
...
By implementing GLimp_SetScreenParms() for SDL1.2
and enhancing the event handling
2013-01-04 14:40:35 +01:00
Daniel Gibson
d6c32cd49b
Support resizing windows + improve fullscreen for SDL2
...
By implementing GLimp_SetScreenParms() and enhancing the
event handling
2013-01-04 14:40:35 +01:00
Daniel Gibson
ba126dde3a
Fixed various warnings from clang
2012-12-23 06:40:47 +01:00
Daniel Gibson
742ef7da83
Fix scrolling in Menus for SDL2
...
scrolling didn't stop, e.g. in the resolution selection menu
2012-12-22 03:26:01 +01:00
Daniel Gibson
f0dfe7e499
restore SDL1-support in sdl_events.cpp
...
* add define for SDL_SCANCODE_GRAVE - seems like only SDL2
has names for the values
* add some missing keys to SDL_KeyToDoom3Key
* add scancode to unmapped-key warning
* backspace needs to be handled the same for SDL1 as in SDL2
(i.e. a new event must be created for it) to work in console
2012-12-22 03:25:33 +01:00
Daniel Gibson
0be69a3162
Fix console on Linux
...
* Add support for Console-Key independently of KB Layout (with scancode)
* add support for TAB key
* Add hack so console is empty after opening it (SDL-only)
2012-12-21 04:58:50 +01:00
Robert Beckebans
f57d92a1ab
Renamed RBDoom3 to RBDoom3BFG
2012-12-19 15:23:57 +01:00
Daniel Gibson
b1dabf3efd
Improve R_GetModeListForDisplay()
...
* Fixed small bug when only one display mode was found by SDL2
* removed some redundant and dead code
* improved warnings
2012-12-18 22:50:59 +01:00
Daniel Gibson
f3c4948b2f
R_GetModeListForDisplay() for SDL2
2012-12-18 01:11:21 +01:00
Daniel Gibson
dd987814f7
Fix cursor in menus
...
it didn't work correctly because the mouse isn't grabbed
(in contrast to dhewm3).
It's fixed now by returning absolute coordinates when a menu
is open, furthermore the cursor is now always hidden.
2012-12-18 01:10:38 +01:00
Daniel Gibson
e42a886b29
remove deprecated glShadeModel stuff
...
it's only for fixed function opengl, thus it's not needed and deprecated in OpenGL 3.2
AMD's driver complains about this.
2012-12-17 01:02:53 +01:00
Robert Beckebans
63f9d4000f
First playable version on Linux.
2012-12-16 17:31:21 +01:00
Robert Beckebans
823ea36ffe
Added support for OpenGL 3.2 context debugging using SDL 2.0
2012-12-16 12:22:07 +01:00
Robert Beckebans
d7888cf99d
Added support for SDL 2.0
2012-12-14 19:03:30 +01:00
Robert Beckebans
8b8cfe7d25
Small changes to pthreads.
2012-12-14 13:10:52 +01:00
Daniel Gibson
67d6a5a1fa
Make sure SDL_Init() was called before SDL_VideoInfo()
...
by adding GLimp_PreInit()
2012-12-14 00:51:22 +01:00
Daniel Gibson
9eeea7adf3
Fix tons of compiler warnings
...
mostly -Wreorder, use const char* instead of char* for "static strings",
fix inappropriate usage of NULL (e.g. instead of '\0' or (int)0)
2012-12-11 23:57:05 +01:00
Robert Beckebans
b848312904
Fixed missing SDL video initialization.
2012-12-11 23:49:41 +01:00
Robert Beckebans
99f144c32f
Added missing neo/sys/sdl/sdl_local.h
2012-12-11 23:23:17 +01:00
Robert Beckebans
a1730fa430
Supplemented Linux backend with missing functions. -> [100%] Built target RBDoom3 on Kubuntu 12.10
2012-12-11 23:17:23 +01:00
Robert Beckebans
6d70f04cc9
Ported the Win32 threads to POSIX pthreads.
2012-12-09 01:55:59 +01:00
Robert Beckebans
5e582222cf
Removed unused callstack traces API. All C++ files compile with MinGW.
2012-12-04 02:30:46 +01:00
Robert Beckebans
e0c79bd2d2
More work on MinGW support.
2012-12-03 23:55:27 +01:00