75 Commits

Author SHA1 Message Date
Lou H
930090dfa0 #1097-Fixed inconsistent OpenGL version constants (#1099) 2019-06-03 09:35:12 +02:00
lifeinwild
7e11a6c0fe Use UTF-8 in gradle builds 2019-05-26 22:09:54 +02:00
Ali-RS
cd90be13ec
Revert "Modified JmeDesktopSystem.writeImageFile() to export transparency for…" 2019-04-06 09:17:03 +04:30
Ali-RS
c43eafc319
Modified JmeDesktopSystem.writeImageFile() to export transparency for PNG format. 2019-03-22 10:21:43 +04:30
Stephen Gold
2356320d30 more comment-only correction 2019-03-09 11:57:23 -08:00
Stephen Gold
f33252f4d0 spelling corrections in diagnostic messages 2019-03-02 17:41:21 -08:00
Stephen Gold
7ad91651f1 jme3-desktop/jme3-effects JavaDoc corrections (comments only) 2019-02-25 23:43:05 -08:00
Julien Seinturier
835fbd7957 Jme3 vr (#828)
* Updated OpenVR implementation to 1.0.9

User can specify external OpenVR library to load with
openvr.library.path system property.
Usage: java -Dopenvr.library.name=my_path_to_library MyApp

Removed reference to OCCULUS VR and OpenVR from VRAppstate as this class
is generic and does not have to be linked to specific implementation.

VRMouseManager can be buggous using OSVR or Occulus VR. 

Refactored VR implementation packages in order to separate all available
implementation. Modifying or adding implementation should no more impact
other ones. 

Renamed some classes in order to be uniform

* Sample and VR mouse manager update

Adding sample for VR AppState

Added OSVRMouseManager in order to handle VRMouseManager for OSVR
environment

Added OcculusMouseManager in order to handle VRMouseManager for Oculus
environment

Changed OpenVRMouseManager reference within VRAppState and VREnvironment
into VRMouseManager

* Revert previous commit as jme3-examples does not handle java8 and lwjgl3

* Adding AWT component rendering within app state

Adding AWT component rendering capabilities for any JMonkeyEngine
renderer (works with LWJGL 3.1.x and compatible with other
implementations)

This implementation differs from the previous one as it's relies on
AppState (compatible with all JME application) and as it use only
produces framebuffer.

With this implementation, it is possible to use AWT component ad
rendering target and so to integrate JMonkey rendering within AWT /
Swing application. This capability was not available with LWJGL3 as the
version 3.1.x does not provide anymore AWT link.

* AWTComponentAppState update

Added Update within AWTComponentAppState and added getter and setter for
transfer mode within AWTFramePRocessor

* Removing Java 8 related stuff
2019-02-08 15:44:33 +01:00
Ali-RS
a47b4a46ba Added a (hacky) fix for a Java Swing/AWT + GLFW interaction issue… (#968)
* Added a (hacky) fix for a Java Swing/AWT + GLFW interaction issue… 

… on Linux.

* Added a proper comment

* Added an extra call to System.gc() as recommendation from lwjgl’s @Spasi

"Run System.gc(), at least two times. Not sure how AWT handles native
resources, maybe there’s a finalizable/PhantomRef-ed resource that is not
released immediately, but a subsequent GC triggers a (too late) free. "
2018-12-14 09:19:25 +01:00
Nebloksiam
e8cb3124f2 Load animated cursor NPE
Potential NPE when loading animated cursors (.ani)
2018-10-02 22:15:19 -07:00
Stephen Gold
826908b042 correct more grammar/spelling errors in comments 2018-02-18 20:49:43 -08:00
Domenic Cassisi
f61267e803 Adds missing key code for Print Screen (#682) (#806)
* Adds missing key code for Print Screen and update javadoc (#682)
2018-01-16 08:17:57 +01:00
Yan
6479a7cdf8 Add locale translation for zh_CN
Add locale translation for zh_CN
2017-05-18 13:55:03 +08:00
Nehon
6b33ae470a Added a new step in AppProfiler for viewport processors and added method to pass the profiler to all processors. 2017-02-05 17:57:28 +01:00
Markus Uhlig
eaa9858b18 - Replaced console outputs by the standard java logging concept and removed obsolete Sysout-Calls.
- No functional changes.
- added missing override tags.
2016-08-04 11:11:30 +02:00
shamanDevel
bb15931fa2 started with context creation 2016-04-18 18:30:32 +02:00
Kirill Vainer
a563c6cc7b remove deprecated classes 2016-04-10 11:46:18 -04:00
Kirill Vainer
a8aabac1c9 fix issue #441 2016-04-03 16:25:26 -04:00
Kirill Vainer
13755fb75b unit test: delete library loader test 2016-04-02 16:27:14 -04:00
Kirill Vainer
239524c85b desktop: don't show dialogs when headless 2016-04-02 15:04:27 -04:00
Kirill Vainer
9d035f747a Add the new material system
Also includes some unrelated tests

Conflicts:
	jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
	jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
2016-04-02 14:57:10 -04:00
Paul Speed
3c56afeae6 Converted Application to an interface and renamed the old Application to
LegacyApplication.  This is a breaking change for any class extending Application
directly.
And regardless, if you refer to Application then you will need to clean build
your app... and any of your dependencies that also refer to Application.  Basically,
anything using an AppState will need to be clean built against the next alpha.
2016-03-28 01:47:33 -04: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
Daniel Johansson
00e2717c7c Fixed an issue where on linux using jme-lwjgl3 module would cause the windows dll to be loaded instead of the linux so native library. 2015-11-10 17:03:30 +00:00
Kirill Vainer
810c7b6fa6 native loader: set lwjgl library path for lwjgl3 2015-10-21 16:43:13 -04:00
Daniel Johansson
5e8f5e6a1f Updated lwjgl3 module to use LWJGL 3.0.0b #35 which is the current stable build. 2015-10-21 17:05:16 +01:00
Kirill Vainer
2a1addd2da Merge pull request #350 from alexVengrovsk/master
Delete close() of ByteArrayOutputStream type objecs
2015-10-19 14:24:22 -04:00
Daniel Johansson
d48a1bb998 Removed native library jemalloc.dll for LWJGL3 as this will not be needed until 3.0.0b and after. 2015-10-15 09:46:35 +01:00
alexVengrovsk
2eb2cdac60 Delete close() of ByteArrayOutputStream type objecs
According to the Oracle's docummentation: "Closing a ByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException." (http://docs.oracle.com/javase/7/docs/api/java/io/ByteArrayOutputStream.html#close())
2015-09-23 12:22:11 +03: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
8f77dca931 Added jme3-lwjgl3 module which ultimately adds support for LWJGL 3.x and GLFW. 2015-08-26 22:34:05 +01:00
shadowislord
068047200e Threads: standardize names. Make sure they all start with "jME3". 2015-03-27 21:43:32 -04:00
shadowislord
40926dc32d AssetConfig: Platform asset config now returned as URL
- Return back DesktopAssetManager constructor with boolean argument - this time it shall use platform config instead of always using Desktop.cfg
2015-03-01 15:11:57 -05:00
shadowislord
25b1780e09 AssetManager: remove useless subclasses
* All platforms now use asset configuration files. Subclasses of DesktopAssetManager no longer required.
 * Added general asset config file which is included by all
 * JmeSystemDelegate now always returns DesktopAssetManager
 * JmeSystem is now responsible for providing the platform-specific asset config path
 * Deprecate JmeSystem.createImageRaster(), it is simpler to create a DefaultImageRaster
2015-02-28 18:32:38 -05:00
Nehon
dd66d21147 Changed jME's default splash screen 2015-02-19 23:03:41 +01:00
Nehon
2aa50694b8 Awt Panel now supports gamma correct pipeline. Default stays non srgb for backward compatibility. But IMO it should be set to srgb by default to promote the srgb pipeline. 2015-02-16 14:48:57 +01:00
shadowislord
b300915092 NativeLibraryLoader: use the OS's cache folder instead of home folder for storing natives 2015-02-15 16:18:04 -05:00
shadowislord
51c8894e03 NativeLibraryLoader: Fix crash when working directory not writable
Loder -> Loader
2015-02-15 14:05:33 -05:00
shadowislord
253c3ac80d JmeSystem: print build info on initialization 2015-02-09 21:07:59 -05:00
shadowislord
66d4763a04 Fix issue #204 2015-01-31 16:35:46 -05:00
shadowislord
30efc7ce86 ScreenshotAppState to use old FB read-back
Also, set compression quality for JPG to 95% (same as on Android)
2015-01-31 15:01:23 -05:00
shadowislord
2fb87f9682 SettingsDialog to choose closest refresh rate to 60 for fullscreen modes 2015-01-31 14:25:05 -05:00
shadowislord
3f4ce758e7 * Use INT_BGR format in AwtPanel - allows using old compatible readFrameBuffer 2015-01-31 12:50:56 -05:00
shadowislord
8f9dfcc7c1 NativeLibraryLoader: Allow specifying the filename that the extracted library should have (needed for certain workarounds..) 2015-01-27 21:11:13 -05:00
shadowislord
3991123073 NativeLibraryLoader: Don't load LWJGL / JInput when they are not found in classpath
* LWJGL / JInput have their own loading mechanism which works fine when they are in java.library.path (e.g. when bundling)
2015-01-27 20:07:34 -05:00
shadowislord
2cc601edc3 NativeLibraryLoader: Don't gobble the exception message when loading via System.loadLibrary() 2015-01-27 18:00:29 -05:00
Normen Hansen
a6d67ed92b - add executable class for extracting binaries and getting a list of jar file excludes to be used in build systems 2015-01-27 17:20:51 +01:00
Normen Hansen
50134899f8 - remove adding for 64 ending for natives 2015-01-27 11:49:06 +01:00
shadowislord
32cfca495d * NativeLibraryLoader: Add method to get a list of jars that contain known natives 2015-01-25 19:32:33 -05:00
shadowislord
56a187f77a * NativeLibraryLoader: Add method to extract a platform's natives 2015-01-25 19:10:32 -05:00