Commit Graph

9836 Commits

Author SHA1 Message Date
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
Lasse Öörni
a876436066 Compile also in armeabi-v7a mode for faster floating point operations. 2012-05-23 23:40:53 +00:00
Lasse Öörni
8a2ddf4971 Fixed D3D build. 2012-05-23 00:09:04 +00:00
Lasse Öörni
e298ecc5fe Cleaned up ARM function call code. Ensure all calling conventions align the stack. 2012-05-22 23:38:46 +00:00
Lasse Öörni
35416390b6 Reverted the AngelScript workarounds. Instead applied a fix to the Android function call asm code. 2012-05-22 21:43:22 +00:00
Lasse Öörni
cd0668e2d7 Enabled profiler on Android. 2012-05-21 22:56:05 +00:00
Lasse Öörni
19ed675c18 Work around asCALL_CDECL_OBJLAST bug with float as first parameter on Android. 2012-05-21 22:36:28 +00:00
Lasse Öörni
986b90883a Fixed setting Matrix4 uniforms. 2012-05-21 02:53:17 +00:00
Lasse Öörni
a8c622f330 Started work on GLES2 shadow mapping. 2012-05-21 01:29:25 +00:00
Lasse Öörni
da4ae91508 Fixed wrong uniform data size on OpenGL. 2012-05-20 21:38:01 +00:00
Lasse Öörni
dc6c91ed63 Fixed AngelScript pass-by-reference criteria on Android. 2012-05-20 21:23:02 +00:00
Lasse Öörni
0894ce6b65 Fixed endless loop when setting matrix constants on OpenGL ES. 2012-05-20 18:22:36 +00:00
Lasse Öörni
c1c7dcf0ec Code cleanup.
Do not create point light shadow indirection textures if no shadow mapping capability.
2012-05-20 16:44:51 +00:00
Lasse Öörni
55c1d677fb Fixed automatic onDestroy() on orientation change. 2012-05-20 15:31:43 +00:00
Lasse Öörni
9a4e69d5bc Removed fillmode, as it is deprecated on some APIs and not currently used in Urho3D.
Fixed missing depth buffer on Android.
Use texture units < 8 on OpenGL ES.
2012-05-20 13:48:38 +00:00
Lasse Öörni
5bb39d77c4 Added function to return a runtime platform identifier string. 2012-05-20 11:29:18 +00:00
Lasse Öörni
58feefc858 Transpose matrices manually for OpenGL ES.
Set landscape mode without titlebar & statusbar on Android.
2012-05-20 11:11:50 +00:00