Commit Graph

10202 Commits

Author SHA1 Message Date
Lasse Öörni
f0263df91d Use a traditional color clear on OpenGL ES for better performance. 2012-06-10 22:50:03 +00:00
Lasse Öörni
2c0899b994 Fixed variable initialization order. 2012-06-10 20:43:15 +00:00
Lasse Öörni
ddc93f6fd2 Use orientation hint only on iOS.
Do not reserve a stencil buffer on OpenGL ES.
2012-06-10 20:11:04 +00:00
Lasse Öörni
75294ee802 Fixed reference to temporary object in Material.
Cleaned up AssetImporter command handling.
2012-06-10 15:13:29 +00:00
Lasse Öörni
c2c313313b Delete old CMakeCache.txt when generating for Unix or OS X. 2012-06-10 10:53:12 +00:00
Lasse Öörni
e1a1c974e5 Initial iOS support.
Do not use glPolygonOffset() constant bias due to its inconsistency. Instead offset the projection matrix as necessary.
Do not use multiple glUniform calls to set an array of transposed matrices, as it is not guaranteed to work. Instead transpose all matrices first, then set them in one call.
2012-06-09 22:05:14 +00:00
Lasse Öörni
89fe02c9cd Fixed missing OpenGL screen output due to uninitialized memory. 2012-06-08 09:09:38 +00:00
Lasse Öörni
de8c5f14cd For now, only handle first texture in Tundra import. 2012-06-08 08:44:09 +00:00
Lasse Öörni
7593ab4da0 Removed unnecessary MSVC setting. 2012-06-06 19:55:34 +00:00
Lasse Öörni
bce68908d4 Fixed kNet's CMakeLists.txt for Xcode. 2012-06-06 19:48:30 +00:00
Lasse Öörni
3411c5046c Require a click inside the window (again) to reacquire mouse. Otherwise there may be erratic movement on window title bar drag on OS X. 2012-06-06 17:59:54 +00:00
Lasse Öörni
b506bd9f3b Start centering mouse cursor only after first mouse move after input activation received. 2012-06-06 08:34:44 +00:00
Lasse Öörni
c1ef7e84d8 Improved SDL input focus check. 2012-06-06 07:23:26 +00:00
Lasse Öörni
2c54f016c8 Applied SDL Android RWops patch. 2012-06-05 07:14:08 +00:00
Lasse Öörni
b163f276af Always center mouse cursor to prevent it escaping the window. This is preferable to SDL input grab due to it disabling Alt-Tab on Linux. 2012-06-04 19:38:40 +00:00
Lasse Öörni
0b69846402 Fixed access to OpenGL commands before the context was initialized. 2012-06-04 18:41:22 +00:00
Lasse Öörni
83fd09002e Fixed used vertex range check. 2012-06-04 17:11:29 +00:00
Lasse Öörni
5d55c0959d Re-added the alpha masking hint to give priority to fully opaque materials. 2012-06-03 23:30:58 +00:00
Lasse Öörni
6e86187926 Documentation update. 2012-06-03 19:14:18 +00:00
Lasse Öörni
cf6d216384 Removed unused function. 2012-06-03 18:07:08 +00:00
Lasse Öörni
53e2198aa7 Use SDL also in Direct3D9 mode for consistent input handling.
Fixed infinite loop in Graphics::GetResolutions().
2012-06-03 17:59:54 +00:00
Lasse Öörni
5ed1f86b27 Added note about the stencil buffer on OpenGL ES 2. 2012-06-03 11:38:34 +00:00
Lasse Öörni
02738d055e Renamed Android package and added instructions on how to replace it with application-specific package name.
Updated documentation.
2012-06-03 11:35:26 +00:00
Lasse Öörni
0aac9b5857 Report also fullscreen inactive mode (alt-tabbed away) as minimized for purposes of the "pause when minimized" feature. 2012-06-01 23:10:17 +00:00
Lasse Öörni
dfbadcc82b Fixed memory leak from SDL display modes. 2012-06-01 22:58:25 +00:00
Lasse Öörni
a4a31dd3eb Fixed lost vertex/index buffer data not being correctly reported.
Update vertex/index buffer shadow data first, but return failure if updating the actual GPU buffer fails.
2012-06-01 21:49:55 +00:00
Lasse Öörni
7618da35b5 Fixed BillboardSet not restoring its index buffer on OpenGL. 2012-06-01 07:00:01 +00:00
Lasse Öörni
3560591f7e Report device (context) loss condition properly on OpenGL. 2012-06-01 00:09:47 +00:00
Lasse Öörni
e272896dc1 SDL Java code cleanup.
Fixed point light shadow indirection cubemaps recreated on every frame after first OpenGL context release.
Fixed possible missing depth test after OpenGL context release.
2012-05-31 23:15:32 +00:00
Lasse Öörni
4b12319ee0 Fixed SDL minimizing. Do not pause SDL audio as it may be bugged, instead mix silence into the audio stream. 2012-05-30 23:36:59 +00:00
Lasse Öörni
4070e61e78 Added option to automatically pause updates & audio when minimized. 2012-05-30 23:17:16 +00:00
Lasse Öörni
8cc2a83e48 Android OpenGL context loss handling. 2012-05-30 22:17:58 +00:00
Lasse Öörni
35bec043ad Signal GPU object data loss only when recovery is possible. 2012-05-30 20:42:09 +00:00
Lasse Öörni
b885dcdc9a Added error message. 2012-05-29 22:44:25 +00:00
Lasse Öörni
dfdaed7ec4 Fixed missing variable initialization. 2012-05-29 22:33:27 +00:00
Lasse Öörni
153106519e Restored public locking API for vertex & index buffers. On OpenGL locking is always emulated using either shadow or scratch data. 2012-05-29 22:27:07 +00:00
Lasse Öörni
9654d7e5b0 Restore whole morph vertex buffer if data lost.
Unified OpenGL vertex buffer / index buffer UpdateToGPU() with Direct3D implementation.
2012-05-29 06:56:18 +00:00
Lasse Öörni
2976340a79 Fixed relative billboard position on Direct3D.
Billboard node movement no longer needs to dirty the vertex buffer.
2012-05-28 23:10:07 +00:00
Lasse Öörni
c009816bab Fixed comment. 2012-05-28 22:57:52 +00:00
Lasse Öörni
ec2812d829 Fixed AssetImporter. 2012-05-28 22:50:37 +00:00
Lasse Öörni
a4c1924e04 Vertex & index buffer refactoring to unify feature set between graphics APIs, cleanup code, and prepare for Android OpenGL context loss handling. 2012-05-28 22:48:18 +00:00
Lasse Öörni
1d28db07a6 Fixed comment. 2012-05-27 20:18:00 +00:00
Lasse Öörni
8fb76dde01 Reverted the matrix uniform transpose on desktop GL due to problems on OS X.
Fixed assert due to improper threaded weak pointer assignment (FindZone.)
2012-05-27 20:17:25 +00:00
Lasse Öörni
3e7882093a Disabled all stencil operations on OpenGL ES for now, as the OES packed depth stencil isn't tested for or used yet.
Use fixed vertex attribute locations on OpenGL.
Always transpose OpenGL matrix uniforms manually.
Workaround failed draw call after drawing billboards on OpenGL ES by transforming billboards with an identity model matrix.
Ensure finger touch ID's are positive.
Improved touch controls in NinjaSnowWar.
2012-05-27 16:39:21 +00:00
Lasse Öörni
d8a975811f Slightly improved NinjaSnowWar touch controls.
Fixed low quality OpenGL ES shadow mapping shader.
2012-05-27 11:18:25 +00:00
Lasse Öörni
0706ae397f Touch input on Android.
Run NinjaSnowWar by default on Android.
Rudimentary touch controls (virtual on-screen joystick) in NinjaSnowWar.
Improved OpenGL ES depth bias.
Support GetUserDocumentsDir() on Android (return the getFilesDir() path.)
Fixed OpenGL ES mode erroneously attempting to use shadowed point lights.
Added .bat file to copy Data & CoreData directories as Android assets.
2012-05-27 00:27:23 +00:00
Lasse Öörni
4d317ebdef Fixed missing input events on Android.
Map Android's Back key to KEY_ESC.
Reset random seed in Context constructor on Android.
2012-05-25 23:04:58 +00:00
Lasse Öörni
101b2ee338 Fixed crash if model had zero submeshes.
Fixed root CMakeLists.
2012-05-25 15:59:41 +00:00
Lasse Öörni
3bf10d2670 Clarified Android build instructions. 2012-05-25 06:48:35 +00:00
Lasse Öörni
92facb3c3b Added Android asset support and basic build instructions. 2012-05-24 22:16:21 +00:00