rem..om
5d02fe1c20
Made trunk sync with commit r11019 and commit r11020
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@11021 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
911958cfbe
Android: set PreserveEGLContextOnPause when the os is rev 11 or higher. Dramatically reduces the resume time when the context can be preserved.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10919 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
743aa2144a
Android: Add scaling to input coordinates (onTouch Coordinates from Android) to compensate for manually set surface resolutions. Android always sends the touch coordinates relative to the view resolution, not the resolution of the surface. If users use view.getHolder().setFixedSize(width, height) in MainActivity.onCreate(), then the input coordinates are not correct which messes up ray casting and other things. This scales the input coordinates before sending them to jME.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10918 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
4f75cb688f
Android: Move application initialization to the first onDrawFrame. Resolves issues where simpleInitApp gets called without the correct appsettings width and height.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10917 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
cf92f30090
Android: Change Android Input to the new AndroidInputHandler.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10908 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
60c58fd081
Android: Add new extendable input system to organize various Android inputs so that they can be extended to support new Android input functionality when the OS running the app supports it. Not activated yet. Just adding the supporting classes for now.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10907 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
9e8abfb6ec
Android: Remove Escape key mapping from InputManager (defined in SimpleApplication) when using Android platforms.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10898 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
9ed99ce21f
Add placeholder for future showVirtualKeyboard method for platforms implementing TouchInput
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10897 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
11 years ago
iwg..ic
592303181e
Android: Rewrite of EGL config chooser. ConfigType is also now deprecated so that egl* protected parameters in AndroidHarness can be used. These new parameters are copied into AppSettings and then used in AndroidConfigChooser to define the minimum requirements for selecting an appropriate egl config. If a different config is choosen, the AppSettings are updated so users can detect the currently used values.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10810 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
2711e729d0
Android: Modify EGLConfigChooser to evaluate available configs when asked by the surface. More to come to clean up this area. Addresses issue: http://hub.jmonkeyengine.org/forum/topic/crash-nexus-10-android-4-3/
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10798 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
05603965fc
* Check that the EGLDisplay used to select config is the same as the rendering EGLDisplay
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10792 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
25814a8859
* Safety first: *ALL* EGL calls are now checked for errors prior to proceeding
...
* Safety first.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10791 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
1a94e65176
Android: Updated error checking for egl config logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10787 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
f8be6cf686
One can now change the depth test function throught the additional renderstate of a material.
...
You can also do this for the alpha test function, but alpha test is deprecated in gl 3.0 and opengl es 2.0 so it's there only for compatibility and consistency reason.
This setting can be directly set in the j3m file in the RenderState statement.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10779 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
123ccabaff
Android: Don't render mesh if vertex count == 0
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
a1316b4514
Android: Fix issue with AndroidHarness trying to pause audio after app.stop() closed down the audio renderer
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
b143904913
Android renderer : fixed issue where parsing opengl es version was failing on some device and causing a crash
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10711 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
ce3b8e843e
Removed logging of unset uniform for Android to match Desktop and avoid flooding the log
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10652 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
5622ce2483
Set log level to FINEST for unset uniform
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10651 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
eda3ed7160
Improve error message when shader uniform is not set
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10650 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
dec182b13f
* Fixed assertion error bug in NativeObjectManager.deleteAllObjects()
...
* Fixed ID collision bug in NativeObjectManager by introducing NativeObject.getUniqueId()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10637 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
1ac240e971
Android: fix missing period in javadoc
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10636 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
509cc7ba70
Android OpenAL Soft: Clean up some logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10620 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
d6fbd97482
* Add NativeObject.dispose() which deletes the object from GL driver, and if UNSAFE=true, also native buffers.
...
* Rename NativeObjectManager.registerForCleanup() -> registerObject() so that its not confused with enqueueUnusedObject()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10618 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
e727928731
Android: Refactor AndroidAudioRenderer into an interface with 2 implementations (current MediaPlayer/SoundPool and new OpenAL Soft). Added AppSetting that allows AndroidHarness to switch the audio renderer (default is still MediaPlayer/SoundPool).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10615 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
58684996f9
Android: Added methods for OpenAL Soft Audio Renderer to pause and resume audio when app is placed in the background
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10613 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
785d50f516
Android: Add support for effects, filters, reverb, and environment to Android implementation of OpenAL Soft
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10609 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
0ff86728d8
Android: Moved some code from onPause/onResume to loseFocus/gainFocus to address issues/patches 593, 566, 564. Users can now override loseFocus/gainFocus in MainActivity if they do not want to pause/resume the app based on Android's lifecycle methods onPause/onResume.
...
https://code.google.com/p/jmonkeyengine/issues/detail?id=593
https://code.google.com/p/jmonkeyengine/issues/detail?id=564
https://code.google.com/p/jmonkeyengine/issues/detail?id=566
(Yes, there were 3 patch requests for the same thing)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10607 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
b5f4541eec
Android: First commit of a new Audio system for Android that uses OpenAL Soft with the OpenSL backend. Requres Android 2.3 or higher. Source files for OpenAL Soft won't be included (similar to Native Bullet). The current Android audio renderer is still enabled.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10606 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
77a3cba69e
ShaderNodes : registered shader node definition locator to the android asset manager so that shader nodes work on android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10574 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
8c1e5c9cf9
* Set AndroidHarness contentView to a TextView (not GLSurfaceView) onDestroy(), perhaps it will help with OOM issues
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10551 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
a725516f00
* Fine, Eric.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10527 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
cb0a2ed1cd
* Throw UnsupportedOperationException if multiple FBO color attachments are used on Android (only a single attachment, GL_COLOR_ATTACHMENT0, is supported)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10526 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
27bf244729
* Added glGetError() checks after every GL call (its ugly, I know, but it helps with debugging). Added option to disable it with constant on RendererUtil.ENABLE_ERROR_CHECKING.
...
* Set lastFb in OGLESShaderRenderer when context is reset, this is needed otherwise the state tracker would not work correctly.
* Fix issue with Mesh.Mode.Hybrid that wasn't rendering triangle fans correctly (was rendering them as triangle strips instead).
* Remove call to glPointSize in OGLESShaderRenderer (it would most likely crash anyway, since GLES10 calls can't be used in a GLES20 context)
* TestCustomMesh now uses shorts instead of ints for the index buffer. 32-bit indices are not supported on Android and are slower on Desktop, don't use them if you can avoid it.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10525 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
9f4f321098
* Semi-colon.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
30c7347cdf
* If the render buffer storage format is 0 (not supported), throw exception instead of passing invalid enum to a GL call
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10523 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
bcf3b7e7b6
* Added proper checks for RGBA8 support. All formats now specify the renderBufferInternalFormat
...
* Added support for depth24 and depth24stencil8
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10522 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
ba8f8db23c
Android:
...
Add support for OGLES20 extension "GL_IMG_texture_npot" in addition to the currently used extension "GL_OES_texture_npot" to detect NPOT support.
Added additional Renderbufferstorage formats for RGB8 and RGBA8 image formats
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
e26c86c794
Android: Initial commit to support FrameBuffers. This is still a work in progress. FilterPostProcessors currently don't work on Android devices that do not support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10513 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
05e080100e
Added support for int arrays uniforms. thanks to abies.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
995763d114
Fixed an issue in android config chooser. Some device seems to not have a rgb8 opaque config (BEST). In this case the config chooser will attempt to find a rgba8 config (BEST_TRANSLUSCENT) before falling back to fastest.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10489 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
4d91089b3a
Android texture util now supports uploading a sub texture to the GPU, even as a bitmap.
...
This makes Nifty batch rendering work on android.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10488 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
a53c052f74
Fix issue with how Android logging is handled.
...
- Replaced standard Android logging Handler to avoid Android issue with only logging Level.INFO -> Level.SEVERE log records.
- Moved logging Handler initialization to AndroidHarness instead of in JmeSystem so logging in AndroidHarness and app startup could be logged.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10485 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
a5c19f54c3
Android : Added a FINE log of all the display configurations available on the device when the context starts.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10469 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
bfb1b21d6b
Android : FINE or lower log levels are now displayed in output when configured so
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
voi..om
23c1fddf8f
Added support to upload/modify sub texture to Renderer interface introducing a new method:
...
public void modifyTexture(Texture tex, Image pixels, int x, int y);
Implementations added for LWJGL and JOGL. LWJGL seems to work. JOGL is untestet. Android implementation needs to be done by someone else (but is already prepared for).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
1d7a631430
Android : MultiSampling is now supported on android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10460 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
9a28fed581
Android : changed the way the pixel config is passed to the OGLESContext. It's now passed in the appSettings.
...
This is a first step toward a generalization of the use of appSettings in the AndroidHarness.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10458 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
9e3a98931a
AndroidInput : Discarded new events when the eventQueue is full to avoid an overflow error. This should only append when more than 1024 events are generated before they've been transformd to JME input events.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10431 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
a5dbe2306c
Removed some code that was forcing nearest filtering for textures filtering on android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10430 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago