Commit Graph

207 Commits (e4b56f29769993b37fd468582ace0bf60218e82e)

Author SHA1 Message Date
rem..om 5d02fe1c20 Made trunk sync with commit r11019 and commit r11020 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. 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. 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. 11 years ago
iwg..ic cf92f30090 Android: Change Android Input to the new AndroidInputHandler. 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. 11 years ago
iwg..ic 9e8abfb6ec Android: Remove Escape key mapping from InputManager (defined in SimpleApplication) when using Android platforms. 11 years ago
iwg..ic 9ed99ce21f Add placeholder for future showVirtualKeyboard method for platforms implementing TouchInput 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. 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/ 12 years ago
sha..RD 05603965fc * Check that the EGLDisplay used to select config is the same as the rendering EGLDisplay 12 years ago
sha..RD 25814a8859 * Safety first: *ALL* EGL calls are now checked for errors prior to proceeding 12 years ago
iwg..ic 1a94e65176 Android: Updated error checking for egl config logging 12 years ago
rem..om f8be6cf686 One can now change the depth test function throught the additional renderstate of a material. 12 years ago
iwg..ic 123ccabaff Android: Don't render mesh if vertex count == 0 12 years ago
iwg..ic a1316b4514 Android: Fix issue with AndroidHarness trying to pause audio after app.stop() closed down the audio renderer 12 years ago
rem..om b143904913 Android renderer : fixed issue where parsing opengl es version was failing on some device and causing a crash 12 years ago
iwg..ic ce3b8e843e Removed logging of unset uniform for Android to match Desktop and avoid flooding the log 12 years ago
iwg..ic 5622ce2483 Set log level to FINEST for unset uniform 12 years ago
iwg..ic eda3ed7160 Improve error message when shader uniform is not set 12 years ago
sha..RD dec182b13f * Fixed assertion error bug in NativeObjectManager.deleteAllObjects() 12 years ago
iwg..om 1ac240e971 Android: fix missing period in javadoc 12 years ago
iwg..om 509cc7ba70 Android OpenAL Soft: Clean up some logging 12 years ago
sha..RD d6fbd97482 * Add NativeObject.dispose() which deletes the object from GL driver, and if UNSAFE=true, also native buffers. 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). 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 12 years ago
iwg..om 785d50f516 Android: Add support for effects, filters, reverb, and environment to Android implementation of OpenAL Soft 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. 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. 12 years ago
rem..om 77a3cba69e ShaderNodes : registered shader node definition locator to the android asset manager so that shader nodes work on android 12 years ago
sha..RD 8c1e5c9cf9 * Set AndroidHarness contentView to a TextView (not GLSurfaceView) onDestroy(), perhaps it will help with OOM issues 12 years ago
sha..RD a725516f00 * Fine, Eric. 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) 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. 12 years ago
sha..RD 9f4f321098 * Semi-colon. 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 12 years ago
sha..RD bcf3b7e7b6 * Added proper checks for RGBA8 support. All formats now specify the renderBufferInternalFormat 12 years ago
iwg..om ba8f8db23c Android: 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. 12 years ago
rem..om 05e080100e Added support for int arrays uniforms. thanks to abies. 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. 12 years ago
rem..om 4d91089b3a Android texture util now supports uploading a sub texture to the GPU, even as a bitmap. 12 years ago
iwg..om a53c052f74 Fix issue with how Android logging is handled. 12 years ago
rem..om a5c19f54c3 Android : Added a FINE log of all the display configurations available on the device when the context starts. 12 years ago
rem..om bfb1b21d6b Android : FINE or lower log levels are now displayed in output when configured so 12 years ago
voi..om 23c1fddf8f Added support to upload/modify sub texture to Renderer interface introducing a new method: 12 years ago
rem..om 1d7a631430 Android : MultiSampling is now supported on android 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. 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. 12 years ago
rem..om a5dbe2306c Removed some code that was forcing nearest filtering for textures filtering on android 12 years ago