Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
a7a94a7af2 Unified the texture get/set data API between Direct3D9 & OpenGL.
Refactored OpenGL texture data restore on context recreation: now data is explicitly stored then restored, instead of relying on resource reload.
2011-07-04 18:55:46 +00:00
Lasse Öörni
ecec223f4d Whitespace edits. 2011-06-30 21:33:20 +00:00
Lasse Öörni
67832c0bd6 Fixed character encoding in source. 2011-06-30 21:28:05 +00:00
Lasse Öörni
69a78da8df Switched to GLFW 3.0. 2011-06-30 21:03:59 +00:00
Lasse Öörni
79d084f9cf Removed GLFW 2.7 in preparation of adding 3.0. 2011-06-30 20:56:53 +00:00
Lasse Öörni
bd3fff14b7 Added void pointer hash functions. 2011-06-29 21:58:04 +00:00
Lasse Öörni
fc7b593078 Fixed having to press Enter twice to retrigger the fullscreen toggle. 2011-06-26 22:15:59 +00:00
Lasse Öörni
0d06cafd51 Added fadein/fadeout on entering or leaving fullscreen mode on OSX. Removed deprecated Carbon code. 2011-06-26 21:59:48 +00:00
Lasse Öörni
0ea42a9762 Removed counterproductive frustum side masking from culling tests. 2011-06-26 19:45:44 +00:00
Lasse Öörni
a13c05068a Added necessary #ifdef. 2011-06-26 17:53:01 +00:00
Lasse Öörni
7addf89464 Moved definitions of the inbuild shader hashes to a separate file.
Removed debug print from Input.
2011-06-26 17:21:32 +00:00
Lasse Öörni
3baf62216e In Direct3D9 mode, differentiate between left Shift, Ctrl & Alt similarly as GLFW does. 2011-06-26 17:08:43 +00:00
Lasse Öörni
3a6163226b Changed OpenGL rendering to use non-hardcoded shader parameters. Fixed warnings. 2011-06-26 12:39:25 +00:00
Lasse Öörni
ced7b62889 Shader parameters are no longer hardcoded. 2011-06-26 07:28:52 +00:00
Lasse Öörni
30583dddc4 Fixed split point lights on Linux. Code cleanup. 2011-06-25 22:12:44 +00:00
Lasse Öörni
d9088dd4ca Fixed misplaced not operator in stencil test setup. 2011-06-25 21:01:52 +00:00
Lasse Öörni
027a0ad10c Fixed GLFW issues with OSX. Fixed missing key repeat in OpenGL mode. Added proper window close handling in OpenGL mode. 2011-06-25 18:01:04 +00:00
Lasse Öörni
05701aa204 Fixed window title not getting restored in OpenGL mode. 2011-06-25 13:25:03 +00:00
Lasse Öörni
a128c85c0f Implemented GLFW mouse wheel callback. Fixed OpenGL stencil value wrapping to match Direct3D. 2011-06-25 13:02:39 +00:00
Lasse Öörni
adcff7aaf6 Disabled timed waiting for PortAudio Unix threads, because it sometimes failed in fullscreen mode. 2011-06-25 11:40:48 +00:00
Lasse Öörni
16aeec5c32 Re-enabled sound latency adjustment.
Removed support for 8-bit sound output.
2011-06-25 10:50:58 +00:00
Lasse Öörni
e4153175b7 Refactored fullscreen toggle. 2011-06-25 00:31:54 +00:00
Lasse Öörni
f47dac9269 Fixed Linux build. Made pthreads mutexes recursive. 2011-06-25 00:22:18 +00:00
Lasse Öörni
0d29d818ad Moved from SDL to GLFW & PortAudio. 2011-06-24 23:20:09 +00:00
Lasse Öörni
9261573b57 Fixed non-optimal decrement operators. 2011-06-23 07:27:30 +00:00
Lasse Öörni
270ba840b3 Documentation update. 2011-06-21 21:37:46 +00:00
Lasse Öörni
b90c1386be Removed unnecessary parentheses. 2011-06-21 21:01:13 +00:00
Lasse Öörni
af01853960 Fixed erroneous char input suppression in the example scripts.
If only vsync changes on OpenGL, do not recreate the context.
Documentation update.
2011-06-20 22:17:29 +00:00
Lasse Öörni
b78205cfe1 Documentation updates.
Reformatted the DirectDraw surface structures in Image.cpp.
2011-06-20 19:58:03 +00:00
Lasse Öörni
882ccaaf6c Fixed GetProgramDir() to clear the whole buffer. Implemented SystemRun() on Unix. 2011-06-20 18:14:36 +00:00
Lasse Öörni
d55d29612c Documentation update. 2011-06-19 23:13:11 +00:00
Lasse Öörni
ab866d7f7e Fixed illegal vertex/index buffer access in Model::Load(). 2011-06-19 22:01:05 +00:00
Lasse Öörni
b2888b96ed Fixed non-clipped cursor mode on Windows. 2011-06-19 20:38:13 +00:00
Lasse Öörni
8b876b1d77 Further input fixes. Require a click inside the window before hiding the OS mouse cursor. 2011-06-19 20:10:04 +00:00
Lasse Öörni
95b8dfac47 Fixed ResourceRefList serialization to XML.
Added direct HashMap/HashSet compatibility to StringHash & ShortStringHash classes.
2011-06-19 16:48:51 +00:00
Lasse Öörni
39441f2c56 Removed unused linker option. 2011-06-19 15:45:32 +00:00
Lasse Öörni
9f3481bd9f Better fix for OS X mouse move issues. 2011-06-19 15:44:00 +00:00
Lasse Öörni
6cdddcb0f6 Documentation updates. 2011-06-19 11:45:11 +00:00
Lasse Öörni
07a3d31f86 Further OS X input fixes. 2011-06-19 11:27:45 +00:00
Lasse Öörni
9f6ca174f8 Fixed SDL build on Windows.
Improved mouse move logic.
2011-06-19 10:44:13 +00:00
Lasse Öörni
95c6640cba Fixed to compile and run on Mac OS X. 2011-06-19 10:20:48 +00:00
Lasse Öörni
e80deeab15 Use _WIN32 conditional for Win32 code.
Removed redundant IndexBuffer::SetSize() function.
2011-06-19 09:08:19 +00:00
Lasse Öörni
1840d21d6f Fixed MinGW build. 2011-06-19 00:16:47 +00:00
Lasse Öörni
fa80179bdf Fixed to compile and run on Ubuntu. 2011-06-18 23:30:18 +00:00
Lasse Öörni
9f712d922d Image.cpp no longer relies on ddraw.h. 2011-06-18 21:54:22 +00:00
Lasse Öörni
432f57b4b0 Use SDL 1.3 in OpenGL mode.
Removed system fonts directory feature because of being platform-specific.
Added the Anonymous Pro fixed width font.
2011-06-18 18:33:29 +00:00
Lasse Öörni
19a40e561b Removed unused pixel shader uniforms. 2011-06-17 07:46:32 +00:00
Lasse Öörni
f06fa1f2ac Added OpenGL version of GetMultiSampleLevels().
Fixed Direct3D9 version of GetMultiSampleLevels().
2011-06-16 20:40:02 +00:00
Lasse Öörni
b314fe37f4 Always recreate the OpenGL context when changing from fullscreen to windowed, as there may be bugs on some display adapters when not doing that. 2011-06-16 19:22:23 +00:00
Lasse Öörni
b021a80bba Save old window position when recreating the OpenGL context. 2011-06-16 07:20:01 +00:00