Commit Graph
100 Commits
Author SHA1 Message Date
Deve ad062d3b81 Fixed indentations 2017-08-17 00:11:25 +02:00
Deve 3cf8649a6e More work with generate_assets script.
Now uncompressed tux with .spm takes just 350 kb.
2017-08-17 00:11:25 +02:00
Deve 196fe378b4 Fix for png->jpg converter.
It's possible that there are multiple file names in single parameter, for example:
<sky-box texture="0006.png 0001.png 0004.png 0002.png 0003.png 0005.png" ... />
now it should work.

Also use is_opaque rather than has_alpha that gives better results.
2017-08-15 23:03:22 +02:00
Deve 8fa0e4e7b3 Make it less verbose 2017-08-15 10:12:56 +02:00
Deve 4da945f710 Move duplicated code to separate function 2017-08-15 10:12:56 +02:00
Deve 0a2d05a998 Add a possibility to convert png->jpg for spm format for smaller apk 2017-08-15 10:12:56 +02:00
Deve 71bbafadbd Fixed memory leaks in gles 2017-08-13 22:02:55 +02:00
Deve 0bf0ca0a35 Fixed memory leak 2017-08-13 01:38:21 +02:00
Deve 1f4a9135b6 Remove useless elif 2017-08-13 01:38:21 +02:00
Deve ee5bdad926 Move output/seat listener to better place 2017-08-13 01:38:21 +02:00
Deve fd4ab9d88f Fixed possible uninitialized variable in gles renderer 2017-08-13 01:38:21 +02:00
Deve cf868df93f Fixed memory leaks in wayland device 2017-08-13 01:38:21 +02:00
Deve 0a715ac31a Fixed 32-bit mingw compilation 2017-08-07 22:33:57 +02:00
Deve b6df36fc39 Don't hardcode build-tools version 2017-08-06 23:15:08 +02:00
Deve bc6ff38b22 Simplify light factor when advanced lighting is disabled.
In this case only diffuseMatColor really matters, other values are constant.

It improves performance on GLES renderer and it's also noticeably faster for GL on desktop.
For example:
- fps increased for me from 60 to 69 on Hacienda with intel HD 4000
- from 43 to 49 on lighthouse

There is much less difference on nvidia graphics card, but still it gives small performance improvement.
2017-08-06 22:18:18 +02:00
Deve 1d2ff0bc47 Remove more unused files 2017-08-02 22:03:01 +02:00
Deve e9496caa71 Merge pull request #2892 from qwertychouskie/cleanup2
Cleanup V2
2017-08-02 21:49:58 +02:00
Deve a89b2f5df2 Minor tweak for linux icon.
On freedesktop specs they suggest to use 48x48 icon.
2017-07-30 12:56:25 +02:00
Deve 7d4fbb8d0c Minor modification in play tutorial text. Fixes #2535 2017-07-29 00:43:17 +02:00
Deve 09a735c25e Use key names in android device too 2017-07-20 22:58:12 +02:00
Deve 7a92708fd3 Use key names in wayland device 2017-07-20 22:58:12 +02:00
Deve 0dba3c8f67 Add a prefix to irrlicht key codes 2017-07-20 22:58:11 +02:00
Deve 11b2409fab Activate accelerometer only if needed 2017-07-18 21:43:45 +02:00
Deve 20850c9811 Remove unused cmake option 2017-07-18 00:11:09 +02:00
Deve bbee93dfe8 Update readme and generate_assets script.
The issues on android 4.4 + qualcomm should be already fixed in 8653d410f8 and d44802a482

I also added few lightweight tracks and karts to the apk
2017-07-14 22:04:52 +02:00
Deve cbba2b6b7d Merge pull request #2880 from scootergrisen/patch-2
Add danish translation
2017-07-14 06:21:38 +02:00
Deve d44802a482 Add a workaround for some qualcomm devices on android 4.4 2017-07-11 00:37:31 +02:00
Deve 70c481cb26 Add a possibility to set android version in graphics restrictions. 2017-07-10 22:54:38 +02:00
Deve 1fd6a8aa86 Make sure that we are not using files from our zlib/libpng when STK is compiled with shared libraries.
It's possible that STK was using these files for compilation when cmake was run from main directory. In this case compiled files are stored in stk-code/lib, so that CMAKE_CURRENT_BINARY_DIR is stk-code/lib/irrlicht rather than stk-code/build/lib/irrlicht and we include whole lib/libpng rather than non-existing directory.
2017-07-10 21:14:28 +02:00
Deve 6fc285b794 Show only native resolution in settings on android.
Changing resolution is atm. not available, so adding 1024x768 doesn't have a sense.
2017-07-06 23:18:43 +02:00
Deve 9b7f3d70dd One more place where we were linking with glu.
It doesn't really matter, but it's better that our linux package doesn't depend on it.
2017-07-05 21:49:31 +02:00
Deve 9fc1acc4c0 Allow to draw steering wheel on the right side 2017-07-05 21:21:33 +02:00
Deve 2cda14686d Simplify touch device settings 2017-07-05 20:43:57 +02:00
Deve 2bf99aef1d Remove useless gles defines from irrlicht cmake file 2017-07-04 23:32:57 +02:00
Deve c6ea07eacc Remove unused gles 1.0 code 2017-07-04 23:30:09 +02:00
Deve 2bdce1994c Minor fix in android build script 2017-07-04 22:57:59 +02:00
Deve 09262a606b Add missing copyright.
The EGL context manager has been written from scratch, so our copyright should be fine.
2017-07-04 22:55:08 +02:00
Deve f672088a04 Tweak closing android device 2017-07-04 22:43:11 +02:00
Deve f13f69851f Fixed black screen on some GLES 2.0 devices.
It affects only GLES 2.0. The GLES >= 3.0 and OpenGL allow sized internal formats.
2017-06-29 23:00:08 +02:00
Deve 8462c552d1 Add a warning for very low screen resolutions.
There are some android devices that are 320x240, 400x240 etc... Bare minimum to run STK is 640x480. Otherwise some important gui elements are not displayed and it may crash in guiengine.
2017-06-28 21:32:12 +02:00
Deve 076d1f2b62 Save few more mbytes in the apk 2017-06-27 21:20:38 +02:00
Deve 68cfdfbf17 Minor fix for android progress bar that probably doesn't make any difference anyway 2017-06-24 21:41:36 +02:00
Deve 23277066a4 Some fixes for egl config.
Added a fallback with basic configuration if requested config failed.
Also better check if choose config is success (num_configs can be >0 even if egl config is null)
2017-06-24 21:39:58 +02:00
Deve 8f70b74db9 Some tweaks in generate assets script 2017-06-24 01:11:58 +02:00
Deve 78b9b92efa Fixed gles compilation.
We include CIrrDeviceLinux in our edit box widget and it doesn't respect irrlicht cmake flags, so that it tries to include opengl headers even if we selected gles renderer. Just move it to the cpp file to avoid redeclaration errors.
2017-06-23 23:51:33 +02:00
Deve 72358371f7 Some fixes for video mode list on android.
Should be a bit safer when user wants to close the game very early (i.e. when assets are extracting) and we get destroy event before irr_driver is actually initialized.
2017-06-19 22:59:27 +02:00
Deve cfc506d0cf Merge pull request #2862 from MTres19/unlock_all_cmdline
Add option to unlock everything with a command line flag
2017-06-17 18:04:36 +02:00
Deve ae19ade5e5 Add gradle support to android build script 2017-06-13 22:06:53 +02:00
Deve e11641cd43 Minor correction in generate_assets script 2017-06-08 21:44:17 +02:00
Deve 15ce5b4ebf Fixed windows compilation 2017-06-05 21:54:44 +02:00
Deve ccf3893abb Apply our modifications to libpng cmake script 2017-06-05 21:16:22 +02:00
Deve 9ebdb5fd00 Update libpng to newer version in order to fix some vulnerabilities.
I decided to just make a bug-fix update and keep the 1.5.x series because newer versions may also need the zlib update.
2017-06-05 21:10:38 +02:00
Deve 37a2752162 Use newer seat version if possible 2017-05-31 23:47:19 +02:00
Deve 212411fb49 Allow to repeat keys 2017-05-31 22:31:46 +02:00
Deve d6e5e04666 One more tweak 2017-05-31 22:29:28 +02:00
Deve c13f812290 Simplify previous commit and also fix the double egl context deletion 2017-05-30 21:39:30 +02:00
Deve 26a6c49fc1 Add missing break 2017-05-30 00:34:39 +02:00
Deve e00995d099 Allow to use GLES renderer with Wayland device.
It would be nice to simplify it a bit, i.e. decide if OpenGL context should be created on device side or driver side, use single constructor in GLES driver etc... But I'm not really sure how it will look like after Benau's space partitioning work, so some refactoring postponed till later.
2017-05-30 00:30:00 +02:00
Deve c8137fc0fa Add a possibility to set a window class in irr device.
This makes one ugly #ifdef less in the irr_driver.cpp.
2017-05-25 21:26:31 +02:00
Deve b5f2e4d163 Allow to set window caption 2017-05-25 20:49:10 +02:00
Deve 0c18090669 Minor simplifications for keyboard on wayland 2017-05-25 17:27:08 +02:00
Deve ce0a7bde84 Correct the rule for Polish plural forms.
It's already fixed in transifex.
2017-05-25 16:17:38 +02:00
Deve 8989cc97b5 Some fixes for keyboard on wayland 2017-05-24 01:17:25 +02:00
Deve 2102b059de Update sources.cmake 2017-05-18 21:26:38 +02:00
Deve 8968706c09 Merge branch 'wayland' 2017-05-18 21:25:53 +02:00
Deve bc25bc4435 Keep consistency with other irrlicht defines 2017-05-18 20:48:42 +02:00
Deve abde57cd4a Add mouse wheel event 2017-05-17 22:44:22 +02:00
Deve 36368041ee Mostly cleanup and style modifications 2017-05-17 22:43:56 +02:00
Deve f99bc25845 Avoid semi-transparent window 2017-05-15 21:17:03 +02:00
Deve 961ac4d79e Better fix for glew 2017-05-14 00:06:54 +02:00
Deve 1966d3f072 Use x11 functions in irr_driver only if x11 device was created 2017-05-14 00:05:36 +02:00
Deve da802d836d Some fixes for mouse cursor. 2017-05-12 22:58:33 +02:00
Deve ba39e88680 Update cursor when visibility is changed 2017-05-12 21:47:51 +02:00
Deve 23c428160f Some fixes 2017-05-12 00:57:01 +02:00
Deve 70dc99ca6c Fixed some non-working keys.
We can't include linux/input.h because it breaks irrlicht keys.
2017-05-06 23:25:00 +02:00
Deve 632a759ee6 Allow to choose device type using environmental variable 2017-05-06 22:38:05 +02:00
Deve e02a8f4448 Allow to make single build with both x11 and wayland device 2017-05-06 21:53:32 +02:00
Deve 2f1b61b798 Remember mouse button states 2017-05-05 23:04:18 +02:00
Deve a9c2a1922a Some work on support clipboard 2017-05-04 22:36:12 +02:00
Deve e27df23415 Draw mouse cursor 2017-05-04 21:06:40 +02:00
Deve da65650b75 Allow to write unicode characters.
Needs some cleanup.
2017-05-03 20:45:42 +02:00
Deve fc79ee50d0 Add the ping/pong events to avoid non-responding window and few other minor fixes 2017-04-28 23:04:34 +02:00
Deve 01ffc129fb Make it working for current wayland/weston 2017-04-24 22:26:47 +02:00
Deve f31e4f8ea4 Add missing files 2017-04-23 21:22:15 +02:00
Deve 5d9b1e103d Rename file 2017-04-22 21:55:24 +02:00
Deve 63517dd4be Better EGL context creation 2017-04-22 21:51:49 +02:00
Deve 035c33f960 Merge branch 'master' into wayland 2017-04-22 21:11:10 +02:00
Deve 72012120d9 Merge branch 'egl2' 2017-04-21 21:09:21 +02:00
Deve d0a909361b Revert "Avoid reading/writing out of array"
This reverts commit 7f53faed4a.
2017-04-21 21:06:53 +02:00
deve f4e803220b Some minor fixes 2017-04-21 08:51:54 +02:00
Deve 9fc3578b51 Rewrite whole EGL manager.
Now it allows to create OpenGL context, so we can use it for Wayland.
2017-04-20 23:20:21 +02:00
deve 6599ceddec Fixed server only build 2017-04-10 06:15:01 +02:00
Deve f2e2ebb259 Update readme 2017-04-09 21:48:15 +02:00
Deve c06ea3447d Revert "Move loadSfx to the SFXManager thread"
This reverts commit ce426d82cc.
2017-04-09 09:29:25 +02:00
Deve 91e7c51ae7 Make sure we don't link with GLU 2017-04-08 12:31:09 +02:00
Deve 9efe8ae4fa One more fix for mingw 2017-04-07 21:34:28 +02:00
Deve 724cb100e0 Make grass material more bright in legacy pipeline 2017-04-07 00:02:31 +02:00
Deve 7f53faed4a Avoid reading/writing out of array 2017-04-06 23:48:49 +02:00
deve 70d7fdd197 Fixed mingw compilation.
It should be possible to simplify it with something like
find_library(CURL_LIBRARIES NAMES libcurl libcurldll PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
so you can look if it works on Visual Studio.

And as far as I see pkgconfig is used only on unix. Btw. I'm also not sure if it should be if(UNIX AND NOT APPLE) ?
2017-04-06 11:39:53 +02:00
Deve 240041f520 Fixed android compilation 2017-04-05 21:49:52 +02:00