shadowislord
d3cbf7fbf2
GL implementations: Fix uploading of buffers with position != 0
...
* this is required for pregenerated mipmaps in e.g. DDS files
* others checks are added to make sure a zero-length buffer cannot be uploaded (that's an error for now)
2015-02-07 19:08:54 -05:00
shadowislord
4bfd992751
* Do not crash if running on x86 / MIPS android system when using JmeSystem.getPlatform()
2015-01-31 12:47:07 -05:00
shadowislord
3f63d43461
* Add license to android renderer files
2015-01-31 12:46:45 -05:00
shadowislord
af65215450
* Delete useless Android22Workaround
2015-01-31 12:46:09 -05:00
iwgeric
b71d94c37c
Fix NPE while destroying the Fragment when a splash screen is used.
2015-01-30 13:00:39 -05:00
iwgeric
6d8ef39976
Add support for setting a maximum resolution on the GLSurfaceView while maintaining the aspect ratio (AndroidHarnessFragment only).
2015-01-27 12:57:35 -05:00
iwgeric
6ec86fe919
Initial commit for support of launching a jME application as an Android Fragment
2015-01-26 21:28:11 -05:00
iwgeric
0777a18a84
Deprecate screenOrientation from AndroidHarness.
...
Users should set the AndroidManifest.xml property for screen orientation instead. Removes app start, end, restart if the MainActivity.screenOrientation doesn't match the current device orientation. Setting the value in AndroidManifest.xml sets the device orientation before the app starts.
2015-01-24 11:05:20 -05:00
shadowislord
aaac8cb613
URA is now used by default on Android
2015-01-19 18:18:45 -05:00
shadowislord
6ca111b13d
Refactor renderer system
...
* Support OpenGL ES 2 in GLRenderer (various error fixes)
* Get rid of OpenGL 1 remenants
* Other minor cleanups
2015-01-19 18:15:25 -05:00
iwgeric
31bc6bf526
Add a default app profiler for Android.
...
Users can add this app profiler in the MainActivity to show the application timings within the Android systrace utility.
2015-01-10 01:03:02 -05:00
iwgeric
3a82c9eca1
Add frame rate limitiing on Android.
...
If frameRate is set in MainActivity, the application will limit the frame rate to the value defined. This can be used to save battery life.
2015-01-06 08:46:19 -05:00
Nehon
b1739fd9d7
Also fixed Android's VideoRecorderAppState
2014-12-29 00:19:16 +01:00
Nehon
9f459af4e3
One can now call readFrameBuffer with a specific format, implementation has been done for the GLRenderer only.
...
For now only placeholders have been done for the renderers that are still not using URA (all except LWJGL).
2014-12-28 16:23:30 +01:00
iwgeric
a55aae21f9
Minor cleanup of mouse / keyboard methods for touch.
...
Depreciated InputManager.getSimluateMouse and replaced with InputManager.isSimulateMouse for consistancy.
Removed depreciated TouchInput.getSimulateMouse().
Added InputManager.isSimulateKeyboard() to keep consistancy with mouse methods.
2014-12-12 13:16:41 -05:00
iwgeric
a116389814
Forgot to add isSimulateKeyboard to TouchInput interface.
2014-12-12 13:00:05 -05:00
iwgeric
1ed1463476
Add support for enabling/disabling KeyEvent simulation for soft keyboards on Android similar to MouseEvents.
2014-12-12 12:48:25 -05:00
iwgeric
249f62fe95
remove showVirtualKeyboard from TouchInput
2014-12-12 12:16:45 -05:00
iwgeric
858fd433ca
Implement showSoftKeyboard for Android.
...
Also changed JmeAndroidSystem to store the view instead of the activity.
When users call JmeSystem.showSoftKeyboard(true), the default Android soft keyboard is displayed and any key presses are sent to jME as touch events. Key events are also generated so the user can use the same key listeners as Desktop to keep the user code common between Desktop and Android platforms.
2014-12-12 08:42:13 -05:00
iwgeric
d42a777909
Add showSoftKeyboard(boolean show) to JmeSystem.
...
Includes empty implementations for now. Android to be implemented in next commit.
2014-12-12 08:15:53 -05:00
iwgeric
8560b98aa0
Add android.jar to root project and use during jme-android project build.
...
Current version is rev19, KitKat.
2014-12-08 22:50:33 -05:00
iwgeric
6f4b90feed
Temporary fix for searching for version strings until URA is done.
2014-12-08 22:41:45 -05:00
shadowislord
8426bb7baf
Officially switch to the new Android audio system (PART 2..)
2014-11-20 20:36:36 -05:00
shadowislord
be1f219f29
The old Android MediaPlayer based audio renderer is now deprecated
2014-11-20 20:33:30 -05:00
shadowislord
6cad69e067
Officially switch to the new Android audio system
...
Now uses OpenAL Soft 1.16 by default with the Tremor-based OGG/Vorbis decoder.
All jME3 audio features now work on Android.
2014-11-20 20:27:43 -05:00
shadowislord
62a235fbf7
Add streaming + looping support for Android vorbis audio
2014-11-20 20:07:42 -05:00
shadowislord
4241ce9ead
Fix ESSL version parsing (incorrect prefix)
2014-11-20 20:00:28 -05:00
shadowislord
de0027eee3
Fix OGL version parsing
2014-11-20 19:40:31 -05:00
shadowislord
6bdebb937a
Assume OpenGL ES 2.0 is supported on ICS and higher devices
...
Fixes running jME3 in Android Emulator
2014-11-18 22:05:14 -05:00
shadowislord
91715c4a48
Add support for URA, or Unified Renderer Architecture for audio
...
* Unified all renderers into common class 'ALAudioRenderer'
* LWJGL and Android now implement the AL / ALC / EFX interfaces to provide a common OpenAL backend for jME
* Added support for OpenAL Soft "Pause Device" extension, which allows the engine to pause the context while running in the background (currently requires OpenAL soft 1.16 and thus is Android only feature)
2014-11-15 15:15:50 -05:00
shadowislord
ba91da8db4
Tremor decoder now working on Android
...
* fixed issue where FileDesc_read() would cause a stack overflow
* fixed incorrect NativeVorbisFile field values
* properly indicate that streaming is not supported yet
2014-11-12 21:47:36 -05:00
shadowislord
891ffa175d
More work on vorbis decoder
...
* added support for decoding from a section of a file descriptor (needed if decoding from an asset inside APK)
* implemented seek function
2014-11-11 19:11:52 -05:00
shadowislord
d8c5985a73
Disable SDK build by default (maybe Travis can handle it then)
...
Fix compile error in jme3-android project
2014-11-11 18:18:57 -05:00
shadowislord
89aac97a4a
Fix crash when using AndroidNativeImageLoader due to changed lib name
2014-11-10 23:27:56 -05:00
shadowislord
5f0c2035c1
android native improvements
...
* rename jme_stbi -> jme_decode, which is a new native library that will handle image and audio decoding in native code
* add a special version of tremor designed to run on android
* adjust the build process to handle these changes
2014-11-10 21:52:04 -05:00
shadowislord
14bfc7e166
Minor cleanups (no functionality change)
2014-11-09 17:34:36 -05:00
shadowislord
e6df8b1e49
Remove deprecated ConfigType
2014-11-09 17:33:06 -05:00
shadowislord
1a8e6f1644
Reuse bindProgram in OGLESShaderRenderer
2014-11-09 17:32:27 -05:00
shadowislord
62cfbc8a3e
Remove usage of all deprecated image formats
2014-11-09 11:50:57 -05:00
shadowislord
b7a4faebf0
Remove deprecated fields from AndroidHarness
2014-11-09 11:35:42 -05:00
shadowislord
7057e9cb18
Android native image loader rewritten from scratch
...
* Now supports reading directly from Java InputStream instead of having to read image file into memory first
* Optimized native code - reduced unneccessary memory copies
2014-11-08 17:18:37 -05:00
David Bernard
4fdde38bc2
Merge remote-tracking branch 'upstream/master' into fix_fb_depth24stencil8
2014-11-05 12:15:38 +01:00
David Bernard
37da17e3eb
add support of DepthStencil into *Renderer
...
+ a test app
- only tested on desktop with Lwjgl
2014-11-05 12:15:14 +01:00
shadowislord
18b9ef5540
Refactor Android system
...
* Minor clean in context creation
* Remove AndroidGLSurfaceView (it wasn't doing anything)
* Delete AndroidTimer. Now android will be using NanoTimer
2014-11-04 22:28:23 -05:00
shadowislord
3ef5505faa
Allow render buffers to use 'Depth' format even if depth textures are not supported.
...
Fixes post processing on GPUs without depth texture support (e.g. NVIDIA Tegra)
2014-11-02 19:14:08 -05:00
shadowislord
3fa56c9467
Fix texture alpha channel not working on Android due to it premultiplying it by default. Fixes terrain shader.
2014-11-01 20:38:24 -04:00
shadowislord
661053689d
Fix glClear not working properly if the last rendered model disabled depth or color writing (fix issue #639 on google code)
2014-09-21 18:19:54 -04:00
Nehon
a709ba9a77
Use of glBufferData instead of glBufferSubData in android renderer, because it seems to cause GL oom on some devices.
2014-09-11 21:23:04 +02:00
pspeed42
5a482e2b98
Added another Photoshop tyle blend mode: Exclusion
...
Performs a sort of color XOR with source and destination.
Very useful for UI highlighting but is a bizarre (and
potentially useful) effect in 3D.
2014-09-10 14:00:27 -04:00
shadowislord
dbd9ed9d78
Merge pull request #126 from kwando/screen_blendmode
...
Add Screen blend mode.
2014-09-07 16:54:23 -04:00