Commit graph

688 commits

Author SHA1 Message Date
Robert Beckebans
e735dc70da Merge pull request #232 from PJayB/rbbase
WinRT: Get the default XAudio2 device and use that if available
2015-06-24 11:00:33 +02:00
Pete Lewis
87c08c30cb Use the default audio device in Win8/XAudio2 2015-06-23 11:56:27 -07:00
Pete Lewis
9fc94d5745 Merge with RB 2015-06-23 11:50:57 -07:00
Tobias Frost
92dab63c30 - Do use CMAKE_DL_LIBS to determine the linkerflags needed to link against libdl.
- For !WINDOWS, add sys_defines based on compiler instead based on system. (enabled compilation e.g on hurd and kfreebsd)
2015-06-21 16:52:56 +02:00
Tobias Frost
cf6bb39e11 Make use of precompiled header configureable 2015-06-19 22:15:44 +02:00
Tobias Frost
9212ed4263 Propagate USE_INTRINSICS through CMake 2015-06-19 16:11:16 +02:00
Tobias Frost
332fc8d0e7 Update description of CPU_TYPE -- it does not disable anything anymore 2015-06-19 15:56:24 +02:00
Tobias Frost
90d79158ee Make the CPUSTRING and additional from default optimizations configureable 2015-06-19 15:50:17 +02:00
Robert Beckebans
ee2934781f Merge remote-tracking branch 'RBDOOM/master' 2015-05-01 15:10:23 +02:00
Robert Beckebans
a7c6f4973b Fixed warnings with Clang 3.6 2015-05-01 14:57:31 +02:00
Robert Beckebans
80f0d06a75 Merge remote-tracking branch 'RBDOOM/master' 2015-05-01 14:18:53 +02:00
Robert Beckebans
e9c56ba2df Added polygon primitive support to collision framework 2015-04-12 12:05:38 +02:00
Robert Beckebans
0ac909fe0a Dmap build BSP out of triangles instead of brushes 2015-04-12 11:53:54 +02:00
Robert Beckebans
61f568550e New Blender style mesh .map primitive type 2015-04-12 11:53:05 +02:00
Robert Beckebans
05f06b7131 sRGB gamma correct rendering experiment 2015-04-12 11:11:03 +02:00
Robert Beckebans
a60f92b81b Merge pull request #221 from Tea23/patch-1
Linux users can get the game data with native Steam
2015-03-26 01:30:57 +01:00
Joe
43b2d36cbc Update README.txt 2015-03-26 00:19:26 +00:00
Joe
f1655be62a Linux users can get the game data with native Steam 2015-03-26 00:12:51 +00:00
Robert Beckebans
96aff1e923 r_useSRGB fixes 2015-03-24 01:11:30 +01:00
Robert Beckebans
395ef525b1 Tweaked shadowmap bias to fight shadow acne 2015-03-19 01:27:44 +01:00
Robert Beckebans
319b659302 Tweaked shadowmap bias to fight Peter Pan effect 2015-03-19 00:31:08 +01:00
Robert Beckebans
720f8e8cdf Merge remote-tracking branch 'RBDOOM-3-BFG/master' 2015-03-15 10:20:56 +01:00
Robert Beckebans
b7f67a1dd9 Updated release notes 2015-03-07 14:46:38 +01:00
Robert Beckebans
64a12c1204 Updated README 2015-02-25 15:54:54 +01:00
Robert Beckebans
06d0434f32 Improved modding support and loading of custom models/anims 2015-02-25 15:45:16 +01:00
Robert Beckebans
b59ed94c8d Added release notes to prepare new release 2015-02-25 11:30:03 +01:00
Robert Beckebans
5fb44de8a9 Merge remote-tracking branch 'RBDOOM-3-BFG/master' 2015-02-15 11:17:42 +01:00
Robert Beckebans
b9687575df Merge pull request #216 from DanielGibson/rb_astyle_2.05.1_upd
Update AStyle to 2.05.1, use it to format code
2015-02-09 17:09:03 +01:00
Robert Beckebans
b8c2fcde53 Merge pull request #215 from EricxDu/master
Update README.txt for SDL2 default
2015-02-09 17:07:18 +01:00
Daniel Gibson
90b1ff0b65 Format Code with AStyle 2.05.1 2015-02-09 00:29:57 +01:00
Daniel Gibson
5f5684386e Update astyle to 2.05.1, add astyle Linux binaries
Unfortunately, different versions of astyle produce slighty different
formatting, so it's important that everyone uses the same version.

Thus it makes sense to provide astyle binaries for Win32 and
Linux x86 and x86_64 (to prevent usage of outdated versions from package
managers etc)

Most probably it would be easy to add an OSX astyle binary as well and
call that from astyle-code.sh if applicable.
I don't have a Mac, though, so someone else will have to do it ;-)
2015-02-09 00:24:37 +01:00
EricxDu
e2a51cc4fc Update README.txt 2015-02-06 00:51:25 -08:00
Robert Beckebans
4c596dcf0d Fixed Gamepad LS and RS in PDA screen. refs #214 2015-02-05 20:11:09 +01:00
Robert Beckebans
7bc5c56314 Merge pull request #213 from DanielGibson/rb-sdl-improvements
SDL: Unicode input and more then 3 mouse buttons, fixes issue #89
2015-01-29 14:45:24 +01:00
Daniel Gibson
015748f823 SDL backend: generate SE_MOUSE_LEAVE events
The SDL backend now creates SE_MOUSE_LEAVE events when the mouse leaves
the window (both SDL1.2 and SDL2). For some reason, both the SWF GUI
backend and CEGUI are interested in this.
2015-01-28 17:32:35 +01:00
Daniel Gibson
aa51d38b3c Support up to 16 mouse buttons (SDL-only)
Mostly necessary because SDL doesn't properly return mouse buttons X1/X2
on Linux/X11, see https://bugzilla.libsdl.org/show_bug.cgi?id=2310

Not sure if this is possible with Windows, DIMOFS_BUTTON7 seems to be
the highest constant there.

Also passing sdlevent.wheel.y directly as scroll delta
2015-01-28 17:32:35 +01:00
Daniel Gibson
65d1428dd1 Make Unicode input work for SDL
The d3bfg internal SE_CHAR events were documented as "evValue is an
ascii char", but are actually at least UTF-16, as returned by
Windows WM_CHAR events.
We now assume it's UTF-32 (UTF-16 has the same values mostly)
and the SDL backend now puts UTF-32 chars into SE_CHAR events.

In the Windows backend I make sure that no surrogate UTF-16 chars are
emitted + I added support for WM_UNICODE messages.

Now I can input Ümläuts intö the conßole window \o/
2015-01-28 17:32:35 +01:00
Robert Beckebans
d691002296 Bumped engine version to 1.0.3 to prepare for new release 2015-01-18 12:13:24 +01:00
Robert Beckebans
c0f537ae7e Made SDL 2 the default 2015-01-18 12:02:48 +01:00
Robert Beckebans
e7817d770f Merge pull request #212 from DanielGibson/sdl-input-overhaul
SDL input overhaul
2015-01-07 11:50:58 +01:00
Daniel Gibson
e37671d6ac Change SDL event-handling, mostly for keyboard input
Sys_GetEvent()
* renamed res_none to no_more_events, because that's what the
  caller assumes when getting that event
* don't return res_none on unhandled events, instead get the next event
  until there is a handled event or no more events
  (=> if -> while, return res_none -> continue)
* Mapping to Doom3 keynum handled differently for SDL1 vs SDL2, see below

For SDL2 we don't use SDL_KeyToDoom3Key on the keysym anymore, but map
the SDL2 scancode to Doom3/Direct-Input scancodes instead (the keynum_t
K_* constants are really used as scancodes!).

This mapping is done in sdl2_scancode_mappings.h scancodeToKeyNum[].
In sdl_events.cpp there are static SDLScanCodeToKeyNum() and
KeyNumToSDLScanCode() functions that use this scancodeToKeyNum[] array.

Sys_GetKeyName() now does something sensible for SDL2 by using
KeyNumToSDLScanCode()

This is also used to implement idKeyInput::LocalizedKeyName() for SDL-targets
(for SDL1.2 the behavior doesn't change much, though, as it doesn't have
consistent scancodes - Sys_GetKeyName() will just return NULL and
idKeyInput::LocalizedKeyName() will fall back to the old default)
2015-01-06 21:22:12 +01:00
Daniel Gibson
0e1de30fe9 enhance neo/sys/sys_public.h enum keyNum_t with some missing keys
turns out that both d3bfg and cegui use direct input scancode numbers
to represent keys internally.. now isn't that fucking convenient!

d3bfg was missing some, though, so I added them
2015-01-06 21:22:05 +01:00
Daniel Gibson
b9f5d20e93 improved SDL2 textinput handling
strdup() and free() aren't really the right tool if the size of the
buffer is known anyway (and quite small, currently 32 chars)
while at it, I renamed s and s_pos to str and str_pos for better
readability
2015-01-06 21:21:58 +01:00
Robert Beckebans
940d9f8a06 Formatted Code with AStyle 2014-11-25 11:42:08 +01:00
Robert Beckebans
34f5e2eef3 Renamed SDL Joystick README 2014-11-25 11:41:14 +01:00
Robert Beckebans
c6f4ffc7e6 Merge pull request #209 from Wintermute0110/master
SDL joystick input handling implementation
2014-11-25 11:37:29 +01:00
Wintermute0110
854146bdcf * Typos 2014-11-22 01:29:58 +09:00
Wintermute0110
57b67ffc86 * Documentation for the joystick support in Linux with SDL. 2014-11-21 02:49:25 +09:00
Wintermute0110
bc6cab3ab0 * SDL joystick/gamepad support implemented and working.
* Tested in Linux with both XBox360 wireless and Logitech F710 gamepads.
Should work with any XBox gamepad clone wired/wireless.
* Works well using SDL 1.2 or SDL 2.0
* SDL scan values are currently hard-coded. Note sure how to implement
remapping at the moment (config file, GUI, ...).
2014-11-21 02:47:21 +09:00
Wintermute0110
46180de310 * Some debug stuff (now commented in) used to debug joystick/gamepad events. 2014-11-20 06:13:07 +09:00