Commit Graph

9869 Commits

Author SHA1 Message Date
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
Lasse Öörni
22f1e3a1eb Enable OpenGL ES2 mode properly.
Fixed shaders.
2012-05-20 01:12:17 +00:00
Lasse Öörni
9408ec74bd Fixed AngelScript object method call crash on Android. 2012-05-20 00:06:26 +00:00
Lasse Öörni
0debc43fed Further Android fixes. 2012-05-19 22:39:30 +00:00
Lasse Öörni
65378ee15b Fixed Android linking & startup issues. 2012-05-19 22:06:58 +00:00
Lasse Öörni
8af8edd603 Android compile fixes. 2012-05-19 18:43:08 +00:00
Lasse Öörni
354f04e6f2 Added Texture::IsCompressed().
OpenGL ES fixes.
2012-05-19 12:17:58 +00:00
Lasse Öörni
040c724485 Fixed access to missing variables. 2012-05-19 10:33:42 +00:00
Lasse Öörni
e34b505ab1 Fixed missing ambient shader combinations. 2012-05-18 23:32:07 +00:00
Lasse Öörni
a47ee41e12 Fixed SM2 shader compile failure. 2012-05-18 23:05:34 +00:00
Lasse Öörni
f9be80a4eb Fixed D3D build. 2012-05-18 07:11:37 +00:00
Lasse Öörni
c3f75ee181 Removed alpha test, as it is deprecated in modern graphics API's. Instead implemented in the pixel shader. 2012-05-18 07:06:36 +00:00
Lasse Öörni
4a5ac216f2 Fixed OpenGL build. 2012-05-17 22:07:05 +00:00
Lasse Öörni
866cd89546 Started work for experimental Android support.
Renamed Signal to Condition.
Do not lock vertex/index buffers when loading a model, instead prepare the data on CPU side, then set it to GPU at once.
2012-05-17 22:03:08 +00:00
Lasse Öörni
6613481147 Slight code reordering. 2012-05-17 17:41:36 +00:00
Lasse Öörni
7331120bac Fixed ragdoll bounding box not updating. 2012-05-16 21:13:27 +00:00
Lasse Öörni
f3f724920c Removed unnecessary include from WorkQueue.
Documentation fixes.
2012-05-16 19:26:07 +00:00
Lasse Öörni
5a54a105fe Eliminated redundant rotation matrix calculations from updating shader parameters.
Prefer GetWorldTransform().RotationMatrix() instead of converting into an intermediate quaternion in Camera.
2012-05-16 18:10:37 +00:00