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
rem..om
bc62609746
OGLESShaderRenderer now only force mediump precision for float in the fragment shader.
...
Default precision for the vertex shader for float is highp.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10422 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
55d3153721
- adapt AndroidAudioRenderer to new AudioSource
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10420 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
b7ae718b64
Correct default value for invert mouse events. By default, raw touch events have the same coordinate origin as Desktop mouse events (lower left corner). The default for mouseEventsInvertX and mouseEventsInvertY should be false to match Desktop mouse.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10390 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
30498824d0
- set back logging about jme version and graphics adapter to Level.INFO
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10312 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
ea973c14c3
- change logging from logger.info() logger.fine and logger.warning()
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10272 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
7ba657e430
- set logging from Level.INFO to Level.FINE for most logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10271 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
455a621384
* Fix android native crashes and other bizarre problems with 32-bit index buffers
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10145 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
289c25e7e8
* Possible fix for memory corruption issue on Android when compressed texture formats exceeds 16 entries.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10137 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
e21f22e6dc
Fixed issue with handling Multi-Touch not tracking MOVE for second finger when first finger is lifted. Thanks to kumasao.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
ab5282fb2d
Additional fix for http://code.google.com/p/jmonkeyengine/issues/detail?id=504 .
...
Fixes displaying leftover characters in BitmapText when setting the text to a smaller string and a weird situation where the scene would stop rendering do to improper buffer limit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10060 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
9a6fe1fdf5
Fix to previous commit to OGLESShaderRenderer. Accidently committed unrelated and non working changes to the renderer.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10057 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
68e0e835f5
Ogles renderer now correctly supports Verctor4 uniforms
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10055 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
044d81f7e8
Add calls to loseFocus and gainFocus when activity pauses and resumes
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
1df4fe8346
Attempt to clean up some references to help with out of memory issues on second start of app on Android
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..ic
dd46be3688
Add support for multiple folder storage types for getStorageFolder
...
See forum post http://jmonkeyengine.org/groups/android/forum/topic/jmesystem-getstoragefolder-updates/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10020 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
200df1c84b
androidInput.loadSettings was never called, so setting mouseEventsEnabled = false; in MainActivity had no effect.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10012 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
e9395812bc
* Partial fix for issue 504 (Android renderer only)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9990 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
9e03dba566
* Add checks for maximum texture resolution in all renderers
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9980 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
Sha..rd
4d01146519
* Add ImageRaster.getWidth() and getHeight()
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9874 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
sky..ok
28ce76245f
Change all source licenses to say 2009-2012
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9838 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
sky..ok
751cb9e20a
Javadoc cleanup
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9837 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
3afb803c68
Added check for sensor data accuracy to ignore data when sensor accuracy is unreliable.
...
Fixed error in log entry when sensor accuracy changes
Added log entry on calibration of axis
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9789 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
56bf97a7e2
Update Android Sensors to be compatible with the new Joystick interface. http://code.google.com/p/jmonkeyengine/source/detail?r=9763 http://code.google.com/p/jmonkeyengine/source/detail?r=9762
...
Only Orientation is supported currently
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
PSp..om
bd2695061d
Updates to build with latest joystick changes.
...
This breaks joysticks on android until they can be
ported to the "new way"... but at least it should build.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9763 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
47cb989c63
Added mapping of Android Scale Gesture (ie PinchZoom) to mouse wheel. If mouseEventsEnabled is set, mouse wheel reacts to the gesture.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9758 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
rem..om
5111fd8b66
Implemented fixedfunc binding for AlphaTestFallOff
...
- Made the relvent changes in lwjgl1Renderer
- Changed the check in the lwjglRenderer (note that it's deprecated in opengl 3)
- Removed the test in the OglESRenderer since GL_ALPHA_TEST/GL_ALPHA_FUNC no longer exists in OGLES 2, this must be handled in the fragment shader aka the alphaDiscardThreshold that is coming back in an upcoming commit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9747 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
5b326f4054
Minor reorganization of how appSettings are created and passed to the Context on Android.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9745 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
fa6716877e
Remove requirement for buffer type images to have width=height on Android devices that do not support NPOT. Now images allowed as long as both height and width are POT on devices that don't support NPOT.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9744 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
d2b97fb422
Fix issue with onPause trying to cancel vibration when user has not defined Vibration Service permission in manifest.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9716 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago
iwg..ic
5a71423624
Fix issue with BEST config not choosing a valid config on some devices when RGBA is not matched (ie no config exists with 0bit alpha). ConfigChooser now looks for an exact match of all attributes first, then a match of RGBA only, then uses the first available config.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9715 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
13 years ago