Commit graph

1115 commits

Author SHA1 Message Date
Eric Wasylishen
16b8e4f259 don't skip vbo check 2014-10-17 16:34:36 -06:00
Eric Wasylishen
9a0d529195 tear out glsl stuff 2014-10-17 16:29:19 -06:00
Eric Wasylishen
d1bd72037e get it working. 2014-10-17 15:42:08 -06:00
Eric Wasylishen
f87c677fd0 wip: backport vertex shader to arb assembly 2014-10-17 17:09:55 -04:00
Eric Wasylishen
f4cd8e8e5f Remove dead code 2014-10-15 21:46:30 -06:00
Eric Wasylishen
f293b1b7f2 don't mutate cached paliashdr_t, since we might have to reload it from disk 2014-10-14 18:52:21 -07:00
Eric Wasylishen
af6131d944 Whoops 2014-10-14 15:23:32 -07:00
Eric Wasylishen
77306075d1 add credits for borrowed code from RMQEngine 2014-10-14 14:45:29 -06:00
Eric Wasylishen
3483a74c91 Add some guards around new glsl aliasmodel code 2014-10-14 14:45:29 -06:00
Eric Wasylishen
c1923dc909 fix fog in alias vert shader 2014-10-14 14:45:29 -06:00
Eric Wasylishen
ee8b6c4997 cleaning 2014-10-14 14:45:29 -06:00
Eric Wasylishen
a19f0e8986 Tidying r_alias 2014-10-14 14:45:29 -06:00
Eric Wasylishen
ef6e449551 Work around SDL failure to probide PFNGL... typedefs 2014-10-14 14:45:29 -06:00
Eric Wasylishen
ceca8dd695 fix world rendering on windows 2014-10-14 14:45:28 -06:00
Eric Wasylishen
9cb668e087 Alias model drawing derived from RMQEngine 2014-10-14 14:45:28 -06:00
ewasylishen
985115faed in_sdl: change DBEUG_INPUT preprocessor check to an "in_debugkeys" cvar to make it easier to debug unusual keyboards
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1114 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-14 18:31:49 +00:00
svdijk
fffa72d681 input: Minor fix in Char_Event().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1113 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-14 17:13:03 +00:00
svdijk
fbc9dda4aa input: Remove some of stuff obsoleted by r1110.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1112 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-14 17:10:34 +00:00
ewasylishen
cce98d6b9b in_sdl.c: make key debug logging more verbose
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1111 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-14 04:03:16 +00:00
ewasylishen
6caa4dbf59 in_sdl.c, key.c: Fixes agreed on with Sander:
1. Remove Key_IgnoreTextInput(), and simple always send a Char_Event when
we receive TEXTINPUT (SDL2) or the unicode field of a KEYDOWN event is
filled (SDL1.).
2. Remove handling of K_KP_* in the menu/console, since they cannot be
relied on to not also send text (see issue described above). The handling
of K_KP_ENTER can stay, since we do know that it never sends text.
3. Remove the interpretation hack for the numpad, since it will no longer
be needed (and doesn't currently work for SDL2 anyway); if a numpad key
generates text we will handle it (because of "1"), if not then it will
simply be if ignored (because of "2”).

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1110 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-14 03:30:44 +00:00
ewasylishen
e404d2ba60 in_sdl: remove lastKeyDown hack
was no longer needed and was causing issues typing underscores (US keyboard layout) on Linux/SDL2 where SDL_TEXTINPUT is delivered before the SDL_KEYDOWN.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1109 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-13 03:21:47 +00:00
ewasylishen
da24855356 in_sdl: add some debug logging for key events (only if DEBUG_INPUT is defined)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1108 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-13 03:21:40 +00:00
sezero
c07fb885f9 Xcode: rename QuakeSpasmSDL2 target to QuakeSpasm-SDL2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1107 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 17:15:06 +00:00
svdijk
6f62e527d5 codeblocks: Remove unused files, minor tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1106 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 16:46:21 +00:00
sezero
419671e215 add sdl2 targets to codeblocks projects
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1105 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 14:00:07 +00:00
sezero
68ec5ac1a7 add an sdl2 target to msvc builds
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1104 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 12:38:07 +00:00
sezero
26aca14034 fix sdl2-msvc build
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1103 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 11:20:34 +00:00
sezero
3cedcda066 recompiled SDL1.2 for windows
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1102 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-12 09:27:44 +00:00
sezero
cd369d538f minor whitespace adjustments
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1101 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 19:11:40 +00:00
ewasylishen
66a114d9dd changelog: mention -notexturenpot and -novbo
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1100 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 18:11:16 +00:00
sezero
810f4bbe1e update documents
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1099 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 12:05:25 +00:00
svdijk
cde88734d4 keys: Simplify r1097.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1098 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 11:47:05 +00:00
svdijk
be4d49920f keys: Rework the specialkeys[]/consolekeys[] initialization a bit.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1097 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 11:22:53 +00:00
svdijk
f0d81cb742 input: Move fullscreen and console toggle from in_sdl.c to keys.c.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1096 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-11 08:49:45 +00:00
ewasylishen
0b6e3fa5ee Xcode project: adjust settings for debug variants of targets: use default SDK rather than 10.6, native architecture rather than x86_64 + i386, and the default compiler instead of llvm-gcc4.2
This should make the project build out of the box on a wider variety of systems (i.e. without needing the 10.6 sdk)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1095 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-10 06:01:29 +00:00
svdijk
9bb2c0d702 in_sdl.c: rewrite TEXTINPUT handling a bit again.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1094 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 20:03:05 +00:00
svdijk
ab973d9f14 in_sdl: Remove commented-out m_filter code and a misleading comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1093 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 18:57:55 +00:00
svdijk
7a3dfd61d7 Rename some (recently added) functions.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1092 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-08 18:30:17 +00:00
svdijk
a44f3785d8 in_sdl.c: Workaround for broken SDL2 numlock state.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1091 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-07 06:15:16 +00:00
svdijk
cc15bab45a in_sdl.c: Fix numpad translation with SDL 1.2.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1090 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-06 20:47:35 +00:00
svdijk
cec23e9fa5 input: Some more tuning.
* in_sdl.c: Remove the over-zealous "no events for unknown keys" checks introduced in r1085. Events for unknown keys can be useful for "press any key" situations.
* keys.c: In input grab mode, update the "lastkey" member only for key down events.
* keys.c/console.c: Adapt input grab mode to properly support catching "any key" presses.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1089 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-06 06:09:42 +00:00
svdijk
4eee84a9fc in_sdl.c: Inline IN_IsNumpadKey().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1088 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 21:02:25 +00:00
svdijk
2fcba99a63 keys.c: Allow SetBinding() to really clear a key, instead of binding it to the empty string.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1087 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 20:48:27 +00:00
svdijk
c164408ebf input: Minor tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1086 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 19:03:48 +00:00
svdijk
94733d49c6 input: Implement numpad translation in text input mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1085 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 18:21:58 +00:00
svdijk
56a675b2d9 Fix SDL2 fallback when no FSAA is available.
On my old laptop, when running "./quakespasm -fsaa 2", quakespasm would error out with a "Couldn't create window" message. Our "no FSAA available" fallback was applied at OpenGL context creation time, but according to the SDL2 wiki FSAA settings should be done before creation of the window (see https://wiki.libsdl.org/SDL_GLattr#multisample). Moved it there.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1084 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 17:06:35 +00:00
svdijk
b24e750ad9 input: Remove unneeded key_repeats array, some input grab tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1083 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 16:35:59 +00:00
svdijk
695eb2c60f menu: Add M_Quit_InputtingText() for consistency.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1082 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 15:32:45 +00:00
svdijk
c3063373bc input: Fix SDL2 mouse wheel up/down behaviour.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1081 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-05 15:25:31 +00:00
ewasylishen
b1fcc40cea gl_vidsdl.c: for OpenGL versions below 1.5, assume "-novbo" (attempting to avoid old, broken VBO implementations).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1080 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-10-03 18:31:58 +00:00