e92ed55afaAdd optional multitouch support to X11. Thanks @TheBrokenRail for a patch proposal based on example code from esjeon (patch #322). See https://sourceforge.net/p/irrlicht/patches/322 Original example code here: https://github.com/esjeon/xinput2-touch Users have to enable _IRR_LINUX_X11_XINPUT2_ in IrrCompileConfig and link with Xi to make this work. I rewrote the patch a bit and have no system for testing here, so this still needs some testing. I also backported EET_TOUCH_INPUT_EVENT for this from the ogl-es branch.
cutealien
2020-12-29 02:15:27 +00:00
1e6fe54cf5Merging r6173 through r6176 from trunk to ogl-es branch Also adding -DPNG_ARM_NEON_OPT=0 to other places in Makefile as we don't have arm optimization for neon currently in our png lib.
cutealien
2020-12-22 21:30:35 +00:00
0e56aca052Fix compiling png on arm platforms. Thx @TheBrokenRail for report and patch. Hidden in comments of patch #322: https://sourceforge.net/p/irrlicht/patches/322 (patch is for es branch, so only part of it applied for now)
cutealien
2020-12-22 21:26:39 +00:00
e8e38b5095Slightly changed close window handling on X11 Optimized and avoids problems on Phosh shell Thanks @TheBrokenRail for a patch (was a tiny part of patch #322). https://sourceforge.net/p/irrlicht/patches/322 Changed patch slighlty to unify with rest of Irrlicht code.
cutealien
2020-12-21 21:59:34 +00:00
fa0b1cb509Merging r6145 through r6171 from trunk to ogl-es branch
cutealien
2020-12-19 15:03:11 +00:00
7f76377badMerge branch releases/1.8 revisions r6168 through r6170 into trunk. - Updates libpng to 1.6.37 (from 1.6.23) Note: Seems svn can't merge it automatic when a folder was removed and readded with same name. Easier to update libs by deleting all files - copying new ones over and then check svn stat for differences and resolve them manually.
cutealien
2020-12-19 14:35:50 +00:00
4d13cab50eMerge branch releases/1.8 revisions r6138 through r6166 into trunk - Fix comment spelling
cutealien
2020-12-12 00:29:13 +00:00
c90238e87fAdd getActiveColor functions to IGUIStaticText and IGUIButton Returns currently used color - depending on state and if override color is set. Note: Not adding this to editbox for now as it's a bit more tricky there (selection changing color, so it has no single color).
cutealien
2020-12-10 14:45:30 +00:00
bd2b44aa1cAdd IGUIEnvironment::addToDeletionQueue to allow save removal of gui elements while iterating over them Basically same as ISceneManager::addToDeletionQueue.
cutealien
2020-12-09 16:26:25 +00:00
0368c5b09dIGUIEnvironment::drawAll has now a parameter to allow disabling the automatic resize to driver screensize. That makes it easier to use partial screens, while using automatic alignment. Default is still automatic resizing as before, thought it got changed a bit as it looked a bit strange. Before it only set the lower-right corner, but compared to driver screensizes, so it behaved a bit strange when the leftTop corner of the rootGuiElement was changed (different than when the rightBottom corner was set). Could be the idea before was that only clipping matters.
cutealien
2020-12-01 13:42:44 +00:00
ba8de14e83Avoid access allocation when CGUIContextMenu::setSubMenu receives a nullptr for menu.
cutealien
2020-11-14 17:09:39 +00:00
4cb289fc91Code cleanup Prefer static_cast to reinterpret_cast. Declare variables later with init values to avoid having uninitialized variables around.
cutealien
2020-11-14 16:56:16 +00:00
1a19b84384Burningsvideo 0.52 Linux Warnings
engineer_apple
2020-11-10 20:42:20 +00:00
0b4a0b2977Burningsvideo 0.52 Linux Warnings
engineer_apple
2020-11-10 20:39:59 +00:00
1170f08daeBurningsvideo 0.52 Linux Warnings
engineer_apple
2020-11-10 20:29:55 +00:00
e21ef3d169Burningsvideo 0.52 Linux Warnings
engineer_apple
2020-11-10 19:06:45 +00:00
5cb28ea357Burningsvideo 0.52 - scissor for 2D - downscaled internal rendertargets,interlaced drawing - supertuxkart gui ok
engineer_apple
2020-11-10 18:49:39 +00:00
6805226b5bAdd _IRR_OVERRIDE_ to cursor functions in CIrrDeviceOSX.h Thx @ Maksym for reporting.
cutealien
2020-11-05 20:22:03 +00:00
01920bf808Fix compiler error caused by merge. Thanks @ Maksym for report.
cutealien
2020-11-04 23:32:24 +00:00
6d16303addRemove headers from source-file sections in XCode project file. Thanks @ Maksym for the patch.
cutealien
2020-11-03 22:00:19 +00:00
64725ca8a6Another OSX build file patch. It should work now. Thanks @maksym for help.
cutealien
2020-11-03 21:54:02 +00:00
55f109762dAnother fix for OSX build file. And a bit unifying it with trunk. Likely one more bug in there... so another patch coming.
cutealien
2020-11-03 21:29:57 +00:00
9d3cc25f75Fix some more problems with OSX build file. Probably will need one more patch...
cutealien
2020-11-03 21:14:42 +00:00
caf7e44098Trying to merge build patch from Maksym Hamarnyk to build OS X See a56263fbc1 Will need further testing.
cutealien
2020-11-02 22:41:39 +00:00
8557a1f7e6Merging r6140 through r6144 from trunk to ogl-es branch.
cutealien
2020-11-02 22:26:23 +00:00
6f7578b374Fix member intialization order to avoid warning on gcc.
cutealien
2020-10-26 19:55:38 +00:00
91cb559caaBugfix: FPS camera animator on X11 no longer tries grabbing mouse events. Basically behavior about that is back to how it was in Irrlicht 1.8 - not perfect, but useable. So window still jumps a bit when dragging toolbar, but no longer outside the sreen. And it's possible again to alt+tab to other windows. The problem was caused by a combination of FPS camera changes and that we stopped doing mouse-coordinate clipping in the Linux device in r5593. Basically that clipping had the side-effect that the fps-camera never considered a mouse "outside" on Linux. Now on Linux we only update after we get a mouse-event (which we still get when the mouse is outside the window). On Windows we still grab the mouse in the camera, thought that's likely _not_ the best way to do that. Windows has some mouse-grabbing support, and I suppose we could use that (or camera should check if that is used as it also can be set by users I think). So maybe in future this can be further improved. Other operating systems (OSX) should behave like in 1.8 I hope, but as usual I can't test.
cutealien
2020-10-26 19:50:18 +00:00
08ae93126cBurningVideo: update Test Cases
engineer_apple
2020-10-25 15:06:10 +00:00
8b9947f9f6Merging r6128 through r6139 from trunk to ogl-es branch. Note: I could not merge 2 OSX project files as I'm not sure how to correctly resolve their conflicts. Maybe old version for those files are still OK, as ogl-es branch got updated once before (leaving trunk behind). In case it causes problems I hope someone can send another patch for those 2 files: source/Irrlicht/Irrlicht.xcodeproj/xcshareddata/xcschemes source/Irrlicht/Irrlicht.xcodeproj/project.pbxproj
cutealien
2020-09-29 20:22:28 +00:00
bb9b047568Use same CLANG_CXX_LANGUAGE_STANDARD flags in debug/release for XCode.
cutealien
2020-09-20 15:31:48 +00:00
0cc51b74a6Merge branch releases/1.8 revisions r5898 through r6137 into trunk. Documentation fixes.
cutealien
2020-08-31 20:11:14 +00:00
2378c47d05Demo - nullptr test for shadowvolume make golden sydney shine gui editor.vcxproj - set win64 outputdir
engineer_apple
2020-08-22 18:33:53 +00:00
0073ef7cceUpdate XCode project to XCode 8. Previously project file was at 3.2 which seems to no longer work with newer XCode versions. Patch is from Maksym Hamarnyk, no testing from my side for this.
cutealien
2020-06-27 14:51:54 +00:00
54f5ac4982Remove 'register' keyword in all c++ code. It's never really done much in c++, was deprecated in c++11 and is reserved since c++17. Thanks @Maksym Hamarnyk for remdinding me about this. Note: there are few more register commands in third library .c code. It's still a valid keyword there.
cutealien
2020-06-21 11:38:31 +00:00
2c593614cbFix another compile problem in COpenGLExtensionHandler when compiling older GL versions without extensions. Thanks @Maksym Hamarnyk for reporting.
cutealien
2020-06-21 11:26:40 +00:00
048aa500b9Merging r6122 through r6127 from trunk to ogl-es branch
cutealien
2020-06-20 15:26:29 +00:00
340bc7fcbeAdd some headers to xcode project file. Thanks @Maksym Hamarnyk for patch.
cutealien
2020-06-20 14:56:45 +00:00
6d4dec4054Compile fixed for COpenGLExtensionHandler compiled on older GL versions without extensions Thanks @Maksym Hamarnyk for report and patch proposal.
cutealien
2020-06-20 12:50:38 +00:00
137c92779eAvoid compile problems on older OpenGL compiled without ext pointers. Introduced in r5818. Might be part of the OSX compile troubles.
cutealien
2020-06-19 17:51:23 +00:00
ce3e4b0e6eFix compile problem for older (<3.0) GL versions compiled without extensions.
cutealien
2020-06-19 17:21:10 +00:00
49d7850d1eCompile fixed for OSX. Thanks @Maksym Hamarnyk for sending those. Note: More patches are needed and I can only apply, not test, this.
cutealien
2020-06-18 19:40:56 +00:00
eaefca2cd1Merging r6120 through r6121 from trunk to ogl-es branch
cutealien
2020-06-14 20:52:53 +00:00
01a4f5d359Fix CImage::copyToScaling bug introduced in r5994. The change to the scaling code caused scaling to read outside of original image memory. Was caused because scaling step factor was based on image-sizes, but has to be based on amount of scaling steps taking (off-by-one error). Thanks @Maksym Hamarnyk for reporting that there was some problem.
cutealien
2020-06-14 20:42:30 +00:00
a471c1ee78Merging r6117 through r6119 from trunk to ogl-es branch
cutealien
2020-06-13 14:59:16 +00:00
05fb5bc776Fix compile-errors when compiling without _IRR_OPENGL_USE_EXTPOINTER_ Thanks @Maksym Hamarnyk for the patch.
cutealien
2020-06-13 14:56:21 +00:00
87c0b1fb93Add missing parameters in CEAGLManager::activateContext. Thanks to Maksym Hamarnyk for the patch.
cutealien
2020-06-13 14:49:38 +00:00
562c0fb6f1Merging r6107 through r6116 from trunk to ogl-es branch Caught up with trunk again. Not yet tested beside compiling (quick test failed, but seems like nothing from the new changes).
cutealien
2020-06-12 20:47:40 +00:00
20b3d56987Merging r6075 through r6106 from trunk to ogl-es branch. Burnings renderer changes.
cutealien
2020-06-12 20:41:49 +00:00
084e0e669aMerging r6073 through r6074 from trunk to ogl-es branch. The support for UINT shader constants added in this is just returning warnings in GLES drivers as this would need ES 3.0
cutealien
2020-06-11 20:27:29 +00:00
cb62c685deMerging r6039 through r6072 from trunk to ogl-es branch. Note: Not yet caught up with trunk.
cutealien
2020-06-10 22:19:09 +00:00
13a232aa9bupdateTriangles in CTriangleSelector can handle some broken meshes without crash now. Before it crashed when index-count wasn't a multiple of 3, now it just doesn't create the last triangle then.
cutealien
2020-05-26 13:01:02 +00:00
9062ac91afICursorControl::isVisible is now always returning the flag that was set in setVisible. This changes the behaviour on Win32 somewhat when Windows returned a CURSOR_SUPPRESSED state (touch-screen input hiding cursor globally). Previously we set IsVisible it to false when CURSOR_SUPPRESSED was set. Also we handle the CURSOR_SUPPRESSED state slightly different now and still try to hide cursors once when requested. Reason for the change is that the old behaviour made it harder to recover from touch-screens hiding the cursor because Irrlicht didn't know anymore which state is _should_ have. This also unifies the behaviour on all drivers as the other drivers already returned the visible flag independent of the system being able to actually show the cursor.
cutealien
2020-05-05 13:19:42 +00:00
a67b616fc9Add another render pass ESNRP_GUI which is drawn last and is p.E. useful for rendering gui nodes in the scenemanager. UI and scenenodes are often connected. And while it was possible to work around this already by using custom draw functions or deriving from gui and scene-nodes at the same time, it did already lead a few times to uglier code for me. So I guess adding one more pass to the engine has it's uses.
cutealien
2020-03-30 16:04:53 +00:00
bca8023261CSoftwareDriver2: Normalmap like Irrlicht. Lightpos in vertex space CSoftwareTexture2: Tweaking (guessing linear Image) CBlit.h: allow mirror image (SuperTuxKart)
engineer_apple
2020-03-01 22:33:55 +00:00
5bf308139cexpf throws floating point underflow exception on every value in VS2017. switch to IEEE-compatible type double exp
engineer_apple
2020-02-23 14:15:53 +00:00
2a1d6e5f48burningvideo 0.5 test update
engineer_apple
2020-02-23 03:37:29 +00:00
f686d2c8b7burningvideo 0.5 test update
engineer_apple
2020-02-23 03:00:54 +00:00
fe7778d8d8Demo - billboard zbuffer 11.PerPixelLighting - darker light, enable specular again for diffuse - replace wrong irrlichtlogo2.png (was a test around 2005)
engineer_apple
2020-02-22 21:28:25 +00:00
86dd0cde26- BurningVideo: 0.50 - 10 year anniversary update - Lighting model reworked. moved to eyespace like openGL. [Specular Highlights, Fog, Sphere/Reflection Map] - increased internal s4DVertex to support 4 Textures and 4 Colors [switchable] - Textures are handled as sRGB during Mipmap Generation. More accurate, less visual disruption - 2D is drawn as 3D like hardware drivers. [switchable]. enables viewport scaling, material2D - Texture Spatial Resolution Limiting working. [lower memory consumption,SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE] - SuperTuxKart 8.0.1 playable
engineer_apple
2020-02-22 20:48:12 +00:00
9c837aa41bAdd more GlTextureParameter wrapper to COpenGLExtensionHandler Sorry, just a hack to make it easier to work around Irrlicht :-( Would be nice to have a general mechanism to load native gl functions in Irrlicht from apps...
cutealien
2020-02-11 14:14:59 +00:00
7b1ee6468dAdded 'uint' GLSL uniform support. Thanks @devsh for the patch.
cutealien
2020-02-10 15:01:11 +00:00
dbf03c296cAdd support for handling non square matrix uniform types in GLSL Thanks @devsh for the patch.
cutealien
2020-02-10 14:24:26 +00:00
7beeb3d3f8Fix several OpenGL version checking comparisons and add glGetTexImage. Thanks @devsh for the patch.
cutealien
2020-02-10 14:08:59 +00:00
5451a2a8a0Switch to 32bit meshes in CPLYMeshFileLoader now at > 65536 vertices. 65536th vertex has index 65535 which is still fine, was going 1 too low in last commit.
cutealien
2020-01-08 11:14:57 +00:00
5db5cbadf5Add another test for gl errors in debug.
cutealien
2020-01-06 14:27:20 +00:00
50f4bdecbeNo longer try creating rtt's for compressed image formats Those are not supported by any graphic card and we just end up with invalid textures. Returning 0 now instead in addRenderTargetTexture for OpenGL and D3D9.
cutealien
2020-01-06 14:05:26 +00:00
83d368cef4Replace compile-warnings for unsupported image formats in writers with a log message warning. Having too many warnings makes it harder to see real warnings. I know the idea to keep those around was to have them as reminder to work on those. But going over the formats here - it just doesn't make sense in most cases. And for the rest (like we could add converts from R8 or so) no-one is going to work on it until someone concretely needs it anyway.
cutealien
2020-01-06 11:54:57 +00:00
f1a3995965Add define IRR_CASE_IIMAGE_COMPRESSED_FORMAT to help getting rid of a few more warnings. Unlikely we ever support conversions with compressed image format. Define is a bit ugly I guess, but nicest way I could think off. Can probably be used in some image writers as well, have to check which support/don't support compressed formats first.
cutealien
2020-01-04 18:42:12 +00:00
66b24bb745Avoid some warnings and unnecessary (slow) check in CImage::setPixel/getPixel
cutealien
2020-01-04 18:26:13 +00:00
229c827870Prevent some fallthrough warnings we got since gcc7 in aes Interestingly those can be suppressed with simple comments. Note that I didn't suppress those in zlib code yet as I'll check for updates for those libs before releasing (while we are pretty much stuck with this AES version unless we put in a lot more work).
cutealien
2020-01-04 16:22:12 +00:00
2ae2a551a6Merging r5975 through r6036 from trunk to ogl-es branch. GLES drivers adapted, but only did make compile-tests.
cutealien
2020-01-03 19:05:16 +00:00
5d0b042a65Use f64 version of reciprocal_squareroot in quaternion::normalize for more precision. The f32 version jumped around more on gcc/linux (didn't do so with VisualStudio, mabye sqrt on VS already uses double internally).
cutealien
2020-01-03 17:09:39 +00:00
34d09f7c63Fix: CMeshSceneNode and CAnimatedMeshSceneNode still used wrong material in OnRegisterSceneNode.
cutealien
2020-01-03 16:22:55 +00:00
0b71328102Use BlendFactor only when MaterialType != EMT_ONETEXTURE_BLEND The way this was implemented BlendFactor and MaterialTypeParam could conflict otherwise as they both send the blend functions.
cutealien
2020-01-03 14:58:46 +00:00