137 Commits

Author SHA1 Message Date
shamanDevel
bb15931fa2 started with context creation 2016-04-18 18:30:32 +02:00
Teencrusher
d1aae8d479 Added support to glBlendEquation for renderes implementing GL2, and material loading support 2016-04-06 13:56:13 -04:00
Kirill Vainer
a8aabac1c9 fix issue #441 2016-04-03 16:25:26 -04:00
Kirill Vainer
2e4148f3c3 merge fixes 2016-04-02 15:54:45 -04:00
Kirill Vainer
0f1c35c5f0 minor formatting changes
Conflicts:
	jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java
2016-04-02 15:03:52 -04:00
Georgeto
b39c46a82a Let lwjgl respect the AlphaBits setting. 2016-04-01 09:19:50 +02:00
Jan Ivenz
c6143ae640 Rendering depth to texture arrays. 2016-03-30 21:58:26 +02:00
Kirill Vainer
7bf4949e83 Revert native loading changes 2015-12-29 00:11:31 -05:00
Kirill Vainer
2ca55c8b3a LWJGL3 improvements
* Added key remapping for GLFW key constants
 * Rename AppSettings.getGammaCorrection() to isGammaCorrection()
 * Use LWJGL3 artifacts from maven
 * Minor compatibility changes for LWJGL 3.0.0b
 * Fixed some minor bugs in LwjglWindow
2015-12-29 00:00:39 -05:00
Nehon
cbe87cf41f checkGLError in LwjglOffscreenBuffer is now called only if assertions are on, as it is done in LwjglAbstractDisplay 2015-11-11 19:02:23 +01:00
Kirill Vainer
ed2c998f39 Merge pull request #340 from Kendanware/issue314
Added LWJGL 3.x module and implementation in regards to issue #314
2015-09-23 10:07:34 -04:00
Kirill Vainer
62186362a8 GLDebugOutputHandler: dump stack on debug messages 2015-09-22 22:02:12 -04:00
Daniel Johansson
30cdca7ad7 Native library loading is back to the way it used to be with the addition of LWJGL 3.x libraries added with a different key.
Moved LWJGL 3.x repository definition to build.grade in that module.
Fixed an issue where frame rate limit would cause GLFW frequency window hint to be set rather than use a software limiter.
Removed LWJGLTimer for lwjgl3 module, no need for it any more, we'll just use the NanoTimer.
Removed LWJGLCanvas for lwjgl3 module, can't implement this so we'll leave it for now.
2015-09-17 11:59:44 +01:00
Daniel Johansson
9ba90251d6 Merge remote-tracking branch 'upstream/master'
Conflicts:
	jme3-bullet-native-android/build.gradle
2015-09-13 20:15:22 +01:00
Kirill Vainer
148c78a943 GL: make lwjgl implementation classes final 2015-09-05 14:03:32 -04:00
Daniel Johansson
8f77dca931 Added jme3-lwjgl3 module which ultimately adds support for LWJGL 3.x and GLFW. 2015-08-26 22:34:05 +01:00
Kirill Vainer
5c35b9bb22 Renderer: delete deprecated renderers 2015-05-11 19:31:10 -04:00
Kirill Vainer
5cf6b0c9a6 LwjglContext: add custom handler for GL debug messages 2015-04-25 23:09:58 -04:00
Kirill Vainer
ed4b70bcad GLTiming: new GL wrapper to profile GL calls 2015-04-25 17:41:50 -04:00
Kirill Vainer
5b95f8a4b0 GLRenderer: Improve compatibility with OpenGL 3.2 core profile
* Separate GLFbo and GLExt implementations. GLFbo can now be implemented either via vanilla OpenGL3 calls or GL_EXT_framebuffer_*** extensions (OpenGL2.1- only).
 * Use modern way of getting supported extensions in core profile.
 * Luminance and Alpha formats are not available when running in core profile.
 * Bind a dummy vertex array object (VAO) when running in core profile.
 * Point sprite mode is always enabled. Since both OpenGL ES 2.0 and OpenGL 3.2 core require it, jME3 is no longer capable of rendering regular points.
2015-04-25 16:57:24 -04:00
shadowislord
19338deaf8 LWJGL Backend: fix issue #232 2015-03-27 22:42:34 -04:00
shadowislord
068047200e Threads: standardize names. Make sure they all start with "jME3". 2015-03-27 21:43:32 -04:00
michael
5c70938ccf Added GL_PATCHES as new constant 2015-02-28 13:32:16 +01:00
michael
1949a7d831 Added GL4 Interface,
Added GL_*_SHADER constants
Added Caps to the Renderer
Added required converters
2015-02-23 20:23:18 +01:00
shadowislord
9651d6d822 GL interface: add support for PBO, FB readback, and fences (ARB sync) 2015-02-15 16:42:42 -05:00
Nehon
5e3e8fbd6e fixed compilation issue in deprecated LWJGLRenderer 2015-02-13 09:25:59 +01:00
shadowislord
809092c236 Allow application to be a resizable window.
Also allow buffer swapping to be disabled, e.g. for Oculus Rift.
2015-02-10 20:14:36 -05:00
shadowislord
eda5e983da context/renderer: let renderer print out graphics hardware info 2015-02-09 21:06:50 -05:00
shadowislord
7f50f906aa Upgrade to LWJGL 2.9.3 2015-02-08 19:44:21 -05:00
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
3a61032575 Make LwjglGL implement the GL3 interface (for OpenGL3+ function names) 2015-02-01 20:08:34 -05:00
shadowislord
9f3a145dd7 Renderer Changes
* Add new "Limits" enum to hold maximums of various renderer capabilities such as texture size
 * Add support for seamless cubemap (enabled by default for mipmapped cubemaps)
 * Fix conflict when using GL tracing with GL debugging
2015-02-01 20:03:42 -05:00
shadowislord
74dc3392c6 Allow display modes with 59 Hz refresh rate to be acceptable as 60 Hz 2015-02-01 17:16:11 -05:00
shadowislord
307a0e7aed Better GraphicsDebug / GraphicsTrace implementation
- When GraphicsDebug is enabled, check for GL errors and display  hints from the driver
 - When GraphicsTrace is enabled, dump OpenGL calls on the console
2015-01-31 15:49:10 -05:00
shadowislord
b04c4ad042 Flush GL pipeline for pbuffer after frame (required because there's no backbuffer) 2015-01-31 15:48:22 -05:00
shadowislord
8e7eae01a7 * Upgrade LWJGL version to 2.9.2 2015-01-23 22:30:04 -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
Nehon
995ab83a9e Deprecated LwjglRenderer and Lwjgl's TextureUtils. URA is used when choosing LWJGL as renderer. 2014-12-28 16:23:27 +01:00
shadowislord
ac2f765d5b Cleanup GL interface from unused calls
Also modify glGet***InfoLog a bit to be more compatible with Android
2014-12-09 18:22:14 -05:00
shadowislord
d3258429ec Use unified renderer architecture for LWJGL by default (other backends pending) 2014-12-05 22:36:55 -05:00
shadowislord
f189b94a4d Implement the new GL interface for the LWJGL backend 2014-12-05 22:34:54 -05:00
shadowislord
af58aeb779 Fix Renderer.copyFrameBuffer() exception 2014-11-28 11:43:52 -05:00
shadowislord
de0027eee3 Fix OGL version parsing 2014-11-20 19:40:31 -05:00
shadowislord
18807cf175 Fix issue #138
Texture arrays not supporting compressed formats
Also fixed loading texture arrays with mipmaps
2014-11-18 21:13:50 -05:00
shadowislord
a177ffa208 Fix syntax error when compiling jme3-lwjgl 2014-11-15 16:31:40 -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
4717e7006f Goodbye, OpenGL1 2014-11-09 12:29:28 -05:00
shadowislord
62cfbc8a3e Remove usage of all deprecated image formats 2014-11-09 11:50:57 -05:00
shadowislord
b83603cd8f Added support for ETC1 compression (regular OGL only for now) 2014-11-07 21:04:55 -05:00
shadowislord
15f35fc5c6 Fix "DXT1 not supported by hardware" error that started appearing since the renderer refactor. 2014-11-05 23:13:15 -05:00