Commit Graph

10192 Commits

Author SHA1 Message Date
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
Lasse Öörni
5b93abee14 Removed unused variables related to temporal antialiasing. 2011-06-15 23:16:48 +00:00
Lasse Öörni
3db2c154e5 Added forward rendering multisample support for OpenGL.
Added OpenGL context delete/recreate mechanism.
2011-06-15 22:45:10 +00:00
Lasse Öörni
464dbd47ab Fixed performance issues on ATI graphics cards by creating a packed depth stencil as a renderbuffer, not as a texture. 2011-06-15 17:58:32 +00:00
Lasse Öörni
3bb01cb0ed Added threshold value to the edge filter. 2011-06-15 16:24:50 +00:00
Lasse Öörni
83bf3d1464 Switched to NVIDIA FXAA II based edge filter. 2011-06-15 13:33:16 +00:00
Lasse Öörni
bea4f054c7 Tweaked the edge filter.
Fixed missing stencil buffer when using deferred antialiasing under OpenGL.
2011-06-15 06:56:19 +00:00
Lasse Öörni
87f9bbd846 Switched back to a edge filter for deferred antialiasing, as temporal antialiasing causes problems when both the camera and objects move.
Fixed infinite loop in HashMap copy.
2011-06-14 21:10:27 +00:00
Lasse Öörni
0ec486db9e Fixed crash in OpenGL shader program cleanup. 2011-06-14 09:00:27 +00:00
Lasse Öörni
1c26218eeb Fixed a logic error where a OpenGL ShaderVariation would hold a link to a single ShaderProgram, although it can be linked to many.
Fixed a possible bug in CollisionShape where the wrong amount of vertex data would be allocated for a triangle mesh.
ShaderVariations no longer hold a weak pointer to the parent shader.
Changed shader variation compile/creation to happen on demand.
Optimized drawing triangle mesh physics debug geometry.
Changed OpenGL ShaderProgram to remember last parameter sources (instead of Graphics remembering them globally) to eliminate redundant uniform assignment after changing shaders.
OpenGL VertexBuffer & IndexBuffer will create a new data store if locking the whole buffer in discard mode.
Removed most ClearParameterSources() calls from view rendering as unnecessary.
2011-06-13 21:54:57 +00:00
Lasse Öörni
ed3751e1f8 Fixed ambient quad shader. 2011-06-13 06:43:08 +00:00