Commit Graph

  • e92ed55afa Add 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
  • 1e6fe54cf5 Merging 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
  • 0e56aca052 Fix 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
  • 124cc0be1e Make it possible again to enable ES1 on Linux. Seems Debian 11 adds it back. Thanks @TheBrokenRail for patch. Hidden in comments for patch #322: https://sourceforge.net/p/irrlicht/patches/322 cutealien 2020-12-22 21:14:45 +00:00
  • e8e38b5095 Slightly 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
  • fa0b1cb509 Merging r6145 through r6171 from trunk to ogl-es branch cutealien 2020-12-19 15:03:11 +00:00
  • 7f76377bad Merge 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
  • 4d13cab50e Merge branch releases/1.8 revisions r6138 through r6166 into trunk - Fix comment spelling cutealien 2020-12-12 00:29:13 +00:00
  • c90238e87f Add 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
  • bd2b44aa1c Add 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
  • 0368c5b09d IGUIEnvironment::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
  • ba8de14e83 Avoid access allocation when CGUIContextMenu::setSubMenu receives a nullptr for menu. cutealien 2020-11-14 17:09:39 +00:00
  • 4cb289fc91 Code 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
  • 42b881ee74 Fix Bug #451 IDynamicMeshBuffer.h missing some _IRR_OVERRIDE_ Thanks @ Maksim Gamarnik for report. https://sourceforge.net/p/irrlicht/bugs/451 cutealien 2020-11-14 16:42:29 +00:00
  • 7d679469b1 Avoid const cast cutealien 2020-11-14 16:00:33 +00:00
  • 1a19b84384 Burningsvideo 0.52 Linux Warnings engineer_apple 2020-11-10 20:42:20 +00:00
  • 0b4a0b2977 Burningsvideo 0.52 Linux Warnings engineer_apple 2020-11-10 20:39:59 +00:00
  • 1170f08dae Burningsvideo 0.52 Linux Warnings engineer_apple 2020-11-10 20:29:55 +00:00
  • e21ef3d169 Burningsvideo 0.52 Linux Warnings engineer_apple 2020-11-10 19:06:45 +00:00
  • 5cb28ea357 Burningsvideo 0.52 - scissor for 2D - downscaled internal rendertargets,interlaced drawing - supertuxkart gui ok engineer_apple 2020-11-10 18:49:39 +00:00
  • 6805226b5b Add _IRR_OVERRIDE_ to cursor functions in CIrrDeviceOSX.h Thx @ Maksym for reporting. cutealien 2020-11-05 20:22:03 +00:00
  • 01920bf808 Fix compiler error caused by merge. Thanks @ Maksym for report. cutealien 2020-11-04 23:32:24 +00:00
  • 6d16303add Remove headers from source-file sections in XCode project file. Thanks @ Maksym for the patch. cutealien 2020-11-03 22:00:19 +00:00
  • 64725ca8a6 Another OSX build file patch. It should work now. Thanks @maksym for help. cutealien 2020-11-03 21:54:02 +00:00
  • 55f109762d Another 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
  • 9d3cc25f75 Fix some more problems with OSX build file. Probably will need one more patch... cutealien 2020-11-03 21:14:42 +00:00
  • caf7e44098 Trying 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
  • 8557a1f7e6 Merging r6140 through r6144 from trunk to ogl-es branch. cutealien 2020-11-02 22:26:23 +00:00
  • 7c0253dd82 Fixes for OSX compiling. Thanks @Maksym Hamarnyk. Origin: 421b17f5d6 cutealien 2020-10-28 17:53:24 +00:00
  • 6f7578b374 Fix member intialization order to avoid warning on gcc. cutealien 2020-10-26 19:55:38 +00:00
  • 91cb559caa Bugfix: 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
  • 08ae93126c BurningVideo: update Test Cases engineer_apple 2020-10-25 15:06:10 +00:00
  • 8b9947f9f6 Merging 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
  • bb9b047568 Use same CLANG_CXX_LANGUAGE_STANDARD flags in debug/release for XCode. cutealien 2020-09-20 15:31:48 +00:00
  • 0cc51b74a6 Merge branch releases/1.8 revisions r5898 through r6137 into trunk. Documentation fixes. cutealien 2020-08-31 20:11:14 +00:00
  • 2378c47d05 Demo - nullptr test for shadowvolume make golden sydney shine gui editor.vcxproj - set win64 outputdir engineer_apple 2020-08-22 18:33:53 +00:00
  • f478272392 No longer try to set WM_QUIT when using an external Window on Win32. Thx @Marko Mahnič for the patch (https://sourceforge.net/p/irrlicht/bugs/449) cutealien 2020-08-11 19:17:24 +00:00
  • f0043ebc36 Tiny refactoring in ply mesh loader. cutealien 2020-07-22 22:30:25 +00:00
  • a1b9e8c2ed ply meshloader now also supports textures with names texture_u/texture_v. Thx @acy for bugreport and test-model (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=4&t=52646) cutealien 2020-07-22 22:12:05 +00:00
  • d7a1a35339 Fix MacOS 10.15 only rendering to quarter of window. Thanks @bridgeco for the patch: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52644 cutealien 2020-07-16 17:24:18 +00:00
  • 0073ef7cce Update 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
  • 54f5ac4982 Remove '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
  • 2c593614cb Fix 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
  • 048aa500b9 Merging r6122 through r6127 from trunk to ogl-es branch cutealien 2020-06-20 15:26:29 +00:00
  • 340bc7fcbe Add some headers to xcode project file. Thanks @Maksym Hamarnyk for patch. cutealien 2020-06-20 14:56:45 +00:00
  • 6d4dec4054 Compile 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
  • 137c92779e Avoid 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
  • ce3e4b0e6e Fix compile problem for older (<3.0) GL versions compiled without extensions. cutealien 2020-06-19 17:21:10 +00:00
  • 49d7850d1e Compile 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
  • eaefca2cd1 Merging r6120 through r6121 from trunk to ogl-es branch cutealien 2020-06-14 20:52:53 +00:00
  • 01a4f5d359 Fix 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
  • a471c1ee78 Merging r6117 through r6119 from trunk to ogl-es branch cutealien 2020-06-13 14:59:16 +00:00
  • 05fb5bc776 Fix compile-errors when compiling without _IRR_OPENGL_USE_EXTPOINTER_ Thanks @Maksym Hamarnyk for the patch. cutealien 2020-06-13 14:56:21 +00:00
  • 87c0b1fb93 Add missing parameters in CEAGLManager::activateContext. Thanks to Maksym Hamarnyk for the patch. cutealien 2020-06-13 14:49:38 +00:00
  • 562c0fb6f1 Merging 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
  • 20b3d56987 Merging r6075 through r6106 from trunk to ogl-es branch. Burnings renderer changes. cutealien 2020-06-12 20:41:49 +00:00
  • 084e0e669a Merging 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
  • cb62c685de Merging 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
  • 49b39e456d Fix potential reading/writing 1 byte behind it's own buffer in PLY loader. Thanks @wolfgang for report and patch (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52627&p=305573#p305573) cutealien 2020-06-10 21:21:57 +00:00
  • 3e26f3d7a9 Fix problem with glGenerateMipMap in GLES2 Thanks @wolfgang for report and patch: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52625 cutealien 2020-06-10 20:57:08 +00:00
  • 2d67c2d92c Burningvideo: fix "Old HW Compatible blending" TextureLightMap2_Add engineer_apple 2020-05-30 13:58:37 +00:00
  • 13a232aa9b updateTriangles 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
  • 9062ac91af ICursorControl::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
  • 780eec5363 Improvements to B3D writer for speed, readability and handling of low framerate animations. Thanks @JLouisB for the patch (For more info, see: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=50067&start=15) cutealien 2020-04-27 20:52:21 +00:00
  • a67b616fc9 Add 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
  • bca8023261 CSoftwareDriver2: 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
  • f74abf1d2b burning: GL_FOG_COORDINATE_SOURCE ,GL_FRAGMENT_DEPTH -> abs(EyeSpace.vertex.z) engineer_apple 2020-03-01 16:19:03 +00:00
  • ae64a8ef22 Fix c::b project file. Adding the new burnings files. cutealien 2020-02-29 14:45:18 +00:00
  • 92f3d266a0 removed OriginalFormat from CSoftwareTexture2, because ITexture has OriginalColorFormat; engineer_apple 2020-02-29 01:13:48 +00:00
  • 704c9eec83 BurningVideo 0.51 - NormalMap engineer_apple 2020-02-27 00:17:46 +00:00
  • 725391bf50 Fix VS2010 project file. cutealien 2020-02-27 00:07:39 +00:00
  • 5bf308139c expf 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
  • 2a1d6e5f48 burningvideo 0.5 test update engineer_apple 2020-02-23 03:37:29 +00:00
  • f686d2c8b7 burningvideo 0.5 test update engineer_apple 2020-02-23 03:00:54 +00:00
  • f5362a658d burningvideo: regenerateMipMapLevels, allow mipmap upload engineer_apple 2020-02-23 02:23:10 +00:00
  • 0de51c3c3d removed warning for VisualStudio 2012 engineer_apple 2020-02-22 22:54:23 +00:00
  • a790b163ee remove source warnings engineer_apple 2020-02-22 22:09:48 +00:00
  • 6f8b0cef96 remove source warnings engineer_apple 2020-02-22 22:01:57 +00:00
  • 9c15b9dfa9 remove examples warnings engineer_apple 2020-02-22 21:42:44 +00:00
  • c615e1e666 remove examples warnings engineer_apple 2020-02-22 21:36:28 +00:00
  • fe7778d8d8 Demo - 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
  • 8554ec93f9 -burningvideo 0.5 revert engineer_apple 2020-02-22 20:51:59 +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
  • 9c837aa41b Add 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
  • 7b1ee6468d Added 'uint' GLSL uniform support. Thanks @devsh for the patch. cutealien 2020-02-10 15:01:11 +00:00
  • dbf03c296c Add support for handling non square matrix uniform types in GLSL Thanks @devsh for the patch. cutealien 2020-02-10 14:24:26 +00:00
  • 7beeb3d3f8 Fix several OpenGL version checking comparisons and add glGetTexImage. Thanks @devsh for the patch. cutealien 2020-02-10 14:08:59 +00:00
  • 5451a2a8a0 Switch 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
  • bc41211482 CPLYMeshFileLoader now switching to 32-bit meshbuffers when more than 65535 vertices instead of more than 65565. Thanks @randomMesh for reporting (http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52563) cutealien 2020-01-08 10:34:35 +00:00
  • 5db5cbadf5 Add another test for gl errors in debug. cutealien 2020-01-06 14:27:20 +00:00
  • 50f4bdecbe No 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
  • 83d368cef4 Replace 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
  • 985997a755 Avoid warning. cutealien 2020-01-04 18:51:01 +00:00
  • f1a3995965 Add 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
  • 66b24bb745 Avoid some warnings and unnecessary (slow) check in CImage::setPixel/getPixel cutealien 2020-01-04 18:26:13 +00:00
  • 229c827870 Prevent 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
  • 2ae2a551a6 Merging 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
  • 5d0b042a65 Use 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
  • 34d09f7c63 Fix: CMeshSceneNode and CAnimatedMeshSceneNode still used wrong material in OnRegisterSceneNode. cutealien 2020-01-03 16:22:55 +00:00
  • 0b71328102 Use 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