Commit Graph
100 Commits
Author SHA1 Message Date
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
DeveandGitHub 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
Deve 1d39030f51 Assume that EGL version is always greater than 1.3 because otherwise we won't be able to create GLES 2.0/3.0 context. 2017-04-05 21:49:42 +02:00
Deve 635ea89cd0 Some corrections with egl attribs 2017-04-05 21:49:33 +02:00
Deve 3961a9a3b7 Move EGL context to separate class.
It will allow to use it for OpenGL + Wayland.
2017-04-05 21:49:24 +02:00
Deve 9bde708155 Tweak generate assets script to save few Mbytes in the apk.
Musics are still not-that-bad while they take less space.
2017-04-02 00:19:13 +02:00
Deve af98b526d6 Give few more fps in GLES renderer by pre-computing diffuse/specular color 2017-03-28 22:15:33 +02:00
Deve 0f9151e5d2 Move recording settings to separate group 2017-03-27 00:31:55 +02:00
Deve 075afde636 Fixed kart particles for GLES with disabled advanced lighting 2017-03-27 00:25:39 +02:00
Deve a7f0d3762c Some fixes for GLES renderer.
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.

Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Deve 5931e20f8b Use highp precision qualifier.
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.

In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.

This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
deve a3a8289836 Fixed a hang on startup under cygwin 2017-03-22 13:17:04 +01:00
deve 4df773d283 Some fixes in cmake.
Note that you need updated dependencies on windows.
2017-03-22 10:24:33 +01:00
Deve 4ef8ec3af2 Fixed a warning in shaders compilation 2017-03-21 19:42:53 +01:00
Deve 583b858860 Handle #stk_include in better way.
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Deve 2a64ce94c8 Some fixes for scale rtts.
- Don't force using rtts when advanced lighting is disabled because it actually makes the game slower
- Keep the minimap and kart selection screen in high quality
2017-03-18 22:26:35 +01:00
Deve 6ea06e05de Use kart lights only in shader-based pipeline.
It causes a huge slowdown in legacy pipeline, even if the radius is set to 0.
2017-03-13 01:26:48 +01:00
Deve b8e3de0161 Allow to use debug menu on android 2017-03-12 11:42:21 +01:00
Deve adfa8f30f9 Better fix for missing transparency in GLES legacy pipeline 2017-03-08 23:17:03 +01:00
Deve 21cb853079 One more tweak for hiding story mode icon if it's not available.
Now it should work properly, sorry for the mess.
2017-03-08 22:09:47 +01:00
Deve d339d9acef Fixed ambient light for legacy pipeline.
TODO: It should be possible to convert it once together with spherical harmonics computations.
2017-03-08 21:41:53 +01:00
Deve 11255cb2b8 Fixed wrong lights color for legacy pipeline.
SColor is ARGB, but SColorf is RGBA... WTF?
2017-03-08 21:12:24 +01:00
Deve 35139877f6 Fixed a crash on changing resolution 2017-03-06 23:10:29 +01:00
Deve fcae7dfc33 Fixed compiler warnings 2017-03-06 17:22:44 +01:00
Deve d4cecd5a8b Show story mode icon only if overworld track exists.
It allows to decrease apk size a bit.
2017-03-05 23:31:53 +01:00
Deve eeb7c8f5de Added a support for release builds 2017-03-05 22:02:50 +01:00
Deve be67fb1df9 Update readme 2017-03-05 08:55:35 +01:00
Deve 6c472660a1 Some additional checks for android assets manager.
If data was already extracted somewhere, then use this directory as preferred path. This is to avoid a situation that we have data extracted in two different places after STK upgrade.
2017-03-03 21:57:55 +01:00
Deve 11024569b0 More tweaks to GLES legacy pipeline 2017-03-02 22:19:10 +01:00
Deve 067518df5d Fixed rtts in GLES legacy pipeline 2017-03-01 23:20:21 +01:00
Deve 282bb6c655 Always use fixed blending for GLES legacy pipeline 2017-03-01 21:44:11 +01:00
deve 82e724c12e One more fix for GLES legacy pipeline 2017-02-27 06:41:26 +01:00
Deve f6cdf79b1e Avoid spamming with errors 2017-02-27 00:58:43 +01:00
Deve 2ff79141a0 Don't show exhaust emitter for legacy pipeline 2017-02-27 00:58:43 +01:00
Deve 40fe3585bb One more fix for legacy pipeline in GLES renderer.
It looks that the second texture is not used at all and it may cause a crash, so just disable it.
2017-02-27 00:58:43 +01:00
Deve 6d395d4510 Some fixes for GLES renderer 2017-02-27 00:58:43 +01:00
Deve 46619ec62a Fixed gaussian blur 2017-02-23 20:40:06 +01:00
Deve b34e749198 Fixed nitro bar in multiplayer game when uniform buffer object is not available 2017-02-22 23:33:11 +01:00
Deve 0767abe2bc Draw a touch steering button that allows to run challenges.
It was broken because the fire button uses now the icon of collected weapon, so that it's not displayed at all when there is no weapon.
2017-02-22 21:43:36 +01:00
Deve db4d11a0c5 Disable kart shadow for legacy pipeline in GLES renderer because it's broken 2017-02-22 21:04:28 +01:00
Deve 2ef6652183 Create a kart shadow only of shadow texture exists.
If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
2017-02-22 21:04:28 +01:00
Deve 668e10d8ca Don't use srgb format in gles 2017-02-20 21:56:33 +01:00
Deve ef2cba0f85 Display multitouch settings properly on low resolutions 2017-02-20 21:56:33 +01:00
Deve 875d5d8ef9 Some tweaks to the arrows size in dynamic ribbon widget.
- arrow size now depends on screen size, so that it's now easier to click it on high resolutions
- it's additionally scaled on Android for easier usage
2017-02-20 21:56:33 +01:00
Deve 40e326bb41 Avoid using fixed pipeline on newer intel graphics cards.
The force legacy device graphics restriction is needed for ironlake graphics cards. But newer generations in pentium/celeron processors also are named just "Intel(R) HD Graphics" without any number.

The newest drivers for ironlake graphics card is 8.15 and it's unlikely that it will get an update. So assume that all drivers older than 9.x are ironlake generation or that are too old to run STK anyway.
2017-02-17 21:23:22 +01:00