Commit Graph

  • e4bb544079 Support startUseProgram in COGLES2MaterialRenderer Not tested much, but seems to be easier in es2 than in normal OpenGL Probably because it doesn't have to care about switching back to fixed function pipeline cutealien 2023-04-27 20:02:09 +00:00
  • 23ebdbe978 Merging r6468 through r6476 from trunk to ogl-es branch Note: Not yet using latest changes to IMaterialRendererServices in ES2 driver cutealien 2023-04-27 19:51:22 +00:00
  • 13619d8fdf Remove unused variable in CGUIContextMenu y was set in 2 places, but never used for anything. cutealien 2023-04-27 19:46:05 +00:00
  • 36fc0bc8d2 Spelling fixes cutealien 2023-04-27 18:44:33 +00:00
  • 80788a4198 More fixes for CCubeSceneNode with multi-material cube CCubeSceneNode::getMaterialCount now returning correct count CCubeSceneNode::clone now cloning all materials cutealien 2023-04-27 12:58:55 +00:00
  • 8b0534d4b7 Fix CCubeSceneNode using correct material per side for multi-material cubes cutealien 2023-04-27 12:50:20 +00:00
  • 28856e78b6 CCubeSceneNode can now handle new multi-material cube type cutealien 2023-04-26 18:52:08 +00:00
  • e55af78b31 No longer move context sub-menu to left if there's even less space there Probably still moving too often to the left - should find some better solution. But at least some improvement. cutealien 2023-04-25 13:14:52 +00:00
  • 1f15fd0805 OpenGL3: Support min/max blend modes numzero 2023-04-20 17:44:14 +03:00
  • 37d821dcc3 Add MaterialType in COpenGLSLMaterialRenderer::OnSetMaterial back in Shouldn't have been removed with last commit. But adding some comments as it's slightly confusing. cutealien 2023-04-24 16:01:13 +00:00
  • c4bbbe1aaf Add IMaterialRendererServices::startUseProgram/stopUseProgram This makes it possible to set high-level shader constants (which are attached to shader programs) to be set outside of OnSetConstants. IShaderConstantSetCallBack::OnCreate has it set automatically now so it works the same as OnSetConstants. D3D9 and burnings both work different, so there hadn't been a problem with those. cutealien 2023-04-24 14:46:09 +00:00
  • 81ad195aa3 OpenGL3: New extension listing system numzero 2023-04-20 17:37:15 +03:00
  • dd16d578d8 Support IShaderConstantSetCallBack::OnCreate in ogles2/webgl1 driver ogles1 has no shader support, so nothing to be done there. cutealien 2023-04-22 21:56:17 +00:00
  • 621bad3111 Merging r6426 through r6466 from trunk to ogl-es branch Note: Updated IShaderConstantSetCallBack not yet supported by ogl-es drivers cutealien 2023-04-22 21:50:32 +00:00
  • e184e4aedb Fix compiler warnings cutealien 2023-04-22 21:30:14 +00:00
  • 16c960c5ed Add IShaderConstantSetCallBack::OnCreate to allow earlier access to IMaterialRendererServices Accessing IMaterialRendererServices outside of OnSetConstants can be useful and Irrlicht made this a bit too hard to access. Also OnCreate allows actually for nicer code where initialization and update of shader constants are strictly separated (see changed example). cutealien 2023-04-21 14:41:01 +00:00
  • 02165eccc8 CD3D9HLSLMaterialRenderer now implementing IMaterialRendererServices itself Basically now the same as GLSL material renderer already worked. Before it was using IMaterialRendererServices from CD3D9Driver, but there had been several problems with that: - The d3d9 driver called functions through the CD3D9MaterialRenderer interface, but CD3D9HLSLMaterialRenderer is not (or maybe no longer?) derived from that class. Reason it still worked was accidental luck - the same functions had been in the same order and due to casts the compiler wasn't noticing it was calling the functions of an unrelated class. - It was making calls to set shader constants depend on the currently set material in the driver. Which was not necessary and just prevents we can use the IMaterialRendererServices interface without setting the material first (how I found the bug). Still some problems left for now: - There's 2 ways to call shader constants. One seems to be only used by hi-level shaders which links constants to the shader. The the other only by low-level shaders which uses global (shader independent) registers. So maybe this should be 2 interfaces? But not certain, glsl material renderer seems to prevent setting the global registers, but maybe those could be used additionally? I've still allowed it for now in HLSL, just in case it had it's uses. - setBasicRenderStates probably should not be in IMaterialRendererServices. I'm not seeing any case where this isn't just passed on to the driver. And all classes using it have access to the driver unless I missed one. So probably can just avoid that additional indirection and kick that out of the IMaterialRendererServices interface. cutealien 2023-04-21 14:04:57 +00:00
  • ce3dcfde56 Fix recently broken scroll behaviour of listbox with moveOverSelect This also fixes the combobox which users the listbox like that. This got broken in [r6454] which had fixed the events send out by the listbox Note: Still a bit strange behaviour when leaving the combobox at the bottom, but that was already that way in Irrlicht 1.8, so I've got to investigate that on it's own. cutealien 2023-04-19 15:17:39 +00:00
  • 13680ef42d OpenGL3: Use DrawBuffer[s] from mt_opengl Vitaliy 2023-04-16 17:58:43 +03:00
  • 44f7c22bbf OpenGL3: Version asserts numzero 2023-04-16 01:03:33 +03:00
  • 2e477a07d1 OpenGL3: Add version check helper numzero 2023-04-16 01:00:41 +03:00
  • 78d0819a2c Add missing include numzero 2023-04-16 00:20:30 +03:00
  • df07b3bf99 OpenGL3: Remove stencil buffer presence test numzero 2023-04-15 20:11:11 +03:00
  • 523590e16c OpenGL3: Refuse 3.0 and 3.1 numzero 2023-04-15 20:12:42 +03:00
  • 8cf02ea27f OpenGL3: ExtensionHandler::initExtensionsNew: use GetInteger numzero 2023-04-15 19:33:23 +03:00
  • efb660e7ed OpenGL3: drop unused ExtensionHandler functions numzero 2023-04-15 18:17:59 +03:00
  • 5f88555ed3 OpenGL3: restore MRT support numzero 2023-04-15 18:17:45 +03:00
  • 4ee1ab261e OpenGL3: Add driver-dependent feature checks numzero 2023-04-15 18:11:08 +03:00
  • ab628e641c OpenGL3: Add two missing OpenGL extensions to COGLESCoreExtensionHandler numzero 2023-04-15 18:10:02 +03:00
  • 1d782702e1 OpenGL3: new version format numzero 2023-04-15 16:52:15 +03:00
  • 41bc7a1430 Tiny spelling fixes cutealien 2023-04-16 21:52:36 +00:00
  • c4ab49201b
    Fix compile warning when appending UTF-8/ASCII strings to ustring16 Ben Gardner 2023-04-15 02:43:40 -05:00
  • 896c825b9e
    Fix ComboBox changing on scroll when in a scroll container (#192) rubenwardy 2023-04-14 19:58:13 +01:00
  • 0887770a1e Fix spelling (comments) cutealien 2023-04-12 13:22:03 +00:00
  • 7a3fc62ada
    Haiku: build fix nephele 2023-04-11 20:16:35 +02:00
  • 09043e3da7 Update MinGW dependencies sfan5 2023-04-11 18:19:36 +02:00
  • f9a0cbbf95 Avoid warning in VS 2022 cutealien 2023-04-11 13:19:12 +00:00
  • 2d81374b34 Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of EGET_LISTBOX_CHANGED." sfan5 2023-04-11 14:36:44 +02:00
  • aa1696a7e6
    Use a buffer for quads indices Vitaliy 2023-04-08 20:08:03 +03:00
  • e01f285c8f Extract and use singular CNullDriver::checkImage numzero 2023-04-08 01:45:11 +03:00
  • 5eb607f86f Drop createImagesFromFile in favor of createImageFromFile numzero 2023-04-08 01:36:43 +03:00
  • fc0440ff89 Drop IImageLoader::loadImages as only IImageLoader::loadImage is usable numzero 2023-04-08 01:23:20 +03:00
  • 462657960d OpenGL3: Drop always-zero vSpecularColor from the shaders numzero 2023-04-02 21:24:36 +03:00
  • 6a152e8629 OpenGL3: Drop unused material property uniforms numzero 2023-04-02 21:19:58 +03:00
  • 718ba69e1b OpenGL3: Drop unused fixed-function emulation materials numzero 2023-04-02 21:06:09 +03:00
  • 54314691ec
    Fix mistake in a677f5a01ac428d16e0e83b021dd0e8cb1ee9f53 sfan5 2023-04-06 15:00:12 +02:00
  • 36a3a7f349 Don't compile unused driver sources sfan5 2023-04-06 12:10:29 +02:00
  • ca5f005b74 Fix OpenGL3 driver to compile standalone sfan5 2023-04-06 12:07:53 +02:00
  • e850bd102a Minor adjustments to configuration flow sfan5 2023-04-06 11:58:18 +02:00
  • a677f5a01a Only try to link libraries when relevant feature is enabled sfan5 2023-04-06 11:41:12 +02:00
  • f5d3448b17 Document new CMake options sfan5 2023-04-06 11:35:30 +02:00
  • 3a074e4124 Merge branch 'opengl3' of https://github.com/numberZero/irrlicht sfan5 2023-04-06 11:20:03 +02:00
  • 70ee4b05aa Indicate chosen OpenGL ES 2 driver during configuration #167 numzero 2023-04-05 22:52:43 +03:00
  • a3adfc196b CIrrDeviceWin32::yield() now uses Sleep(0) instead of Sleep(1). We had changed that once before in the other direction in svn r421 Reason back then was "Sleep(0) doesn't allow any lower priority threads to execute" But Microsoft changed the behaviour of Sleep(0) after Windows XP so that's no longer true. And the costs of it is pretty high - due to this using a timer with a 15ms resolutions it meant not just giving up the thread but it also always waited for 15ms on Windows. I also replaced a few sleep calls in examples for that reason with yield() calls. cutealien 2023-04-03 15:32:41 +00:00
  • 58a96b7d23 Mark the repo as root in the editorconfig Vitaliy 2023-04-02 22:12:46 +03:00
  • 920e327d33 Spelling fixes cutealien 2023-04-01 15:50:08 +00:00
  • 9622a8b138 Fix Android.mk which still tried to compile no longer existing file Sorry, messed up last merge with some changes in Software renderer it seems. Thanks @Christian Keimel for reporting cutealien 2023-04-01 14:56:42 +00:00
  • 3a9875cc77 Spelling fixes cutealien 2023-03-31 13:12:47 +00:00
  • ba1cd19983
    Use non-static member vars for SDL clipboard / primary selection buffers DS 2023-03-26 14:13:58 +02:00
  • a67f3003de Revert "Avoid some broken calculations for IBoneSceneNode positions." sfan5 2023-03-26 14:07:42 +02:00
  • 4dda28450f Provide sources as private to IRRVIDEOOBJ numzero 2023-03-25 11:26:52 +03:00
  • 219b7fd7d2 Fix line endings in the new driver numzero 2023-03-25 11:11:09 +03:00
  • 28d0e0644c Add shaders for COpenGL3DriverBase numzero 2023-03-25 11:05:40 +03:00
  • d97d1708d6 Resolve conflicts with master numzero 2023-03-25 10:42:11 +03:00
  • 799c8b936f SDL: Support primary selection Desour 2022-09-14 22:48:06 +02:00
  • 8da1bcf58b SDL: Support clipboard Desour 2022-09-14 20:38:49 +02:00
  • d86abb40c1 CGUIEditBox: Use primary selection Desour 2022-08-23 18:55:08 +02:00
  • 53b9eaa831 Implement X11 primary selection Desour 2022-08-23 17:19:23 +02:00
  • 1967d71cfb Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of EGET_LISTBOX_CHANGED. cutealien 2023-03-06 14:34:16 +00:00
  • c5373262ca Use qualifed id instead of virtual function calls in CVertexBuffer constructors cutealien 2023-01-19 23:26:20 +00:00
  • 939b3f7bfb Avoid undefined arithmetic on nullptr in buffer_offset function cutealien 2023-01-04 19:51:24 +00:00
  • 9c2c91776e Fix spelling of enums in header comments cutealien 2022-12-22 14:56:44 +00:00
  • 6f3435f349 Prevent potential 0 pointer access when release not acquired joystick. cutealien 2022-11-19 16:41:11 +00:00
  • 9f9d22ca33 Fix some problems with CMatrix4::getRotationDegrees cutealien 2022-10-15 15:46:03 +00:00
  • edb381bd50 Avoid some broken calculations for IBoneSceneNode positions. cutealien 2022-10-11 22:54:44 +00:00
  • 8ffa7eafea Fix warning cutealien 2022-10-04 12:32:27 +00:00
  • 2bff147904 Fix: Make CBillboardSceneNode bounding-box large enough to fit the billboard inside. cutealien 2022-09-29 14:12:12 +00:00
  • 3cf75cdce4 Fix IGUIElements not getting a tab order because of invisible or disabled parents. cutealien 2022-09-27 16:02:39 +00:00
  • a7f9afd289 Avoid ambigious conversions when compiling with c++20 Yay, more ugly casts needed. cutealien 2022-09-25 11:18:55 +00:00
  • 98df6eae77 Unify & improve log messages cutealien 2022-06-30 16:23:48 +00:00
  • 3ce4b2b5dc Prevent crash when creating CCameraSceneNode while rendertarget has height 0 cutealien 2022-05-30 20:13:28 +00:00
  • 424eb85f4d Minor const changes. cutealien 2022-05-15 13:43:32 +00:00
  • 6a9e0f109c Avoid potential number overflows. Found by VS code analyser cutealien 2022-05-13 14:56:22 +00:00
  • 15e3f15b48 SpriteBank: error check on non existing textureNumber engineer_apple 2022-05-01 09:50:32 +00:00
  • 263f243523 S3DVertex initialize color always. It's derived classes now both accept const S3DVertex& constructor. cutealien 2022-04-25 14:24:43 +00:00
  • c5ee8c8397 CVertexBuffer no longer re-allocates stuff when type doesn't change cutealien 2022-04-19 12:21:44 +00:00
  • b0c03b6f3b Add documentation that sourceRect of draw2dImage is based on the OriginalSize cutealien 2022-03-30 10:49:13 +00:00
  • 679d3a8ba7 Avoid some more warnings when working with CMatrix4<f64> cutealien 2022-03-10 12:51:10 +00:00
  • d1f441787a Avoid warnings when working with CMatrix4<f64> cutealien 2022-03-10 12:24:03 +00:00
  • 739a9eaf7c IVideoDriver::setMaterialRendererName now using u32 for index like other similar functions Other functions like getMaterialRendererName got switched to u32 in the past. I can see no reason why this one was left out, so changing it to be same as the rest. cutealien 2022-02-09 19:28:45 +00:00
  • 0acf0de2db Delete changes.txt sfan5 2023-03-20 14:41:11 +01:00
  • 52a0b9d8e5 Drop dependency on FileSystem from SceneManager numzero 2023-03-14 18:34:47 +03:00
  • 0160cdc51d Drop unused dependency of SceneManager on GUIEnvironment numzero 2023-03-14 18:25:05 +03:00
  • 5a1565072a Drop unused dependency on FileSystem in mesh loaders numzero 2023-03-13 22:28:09 +03:00
  • a23af985e4 Add ICursorControl::getReferenceRect cutealien 2023-03-14 22:05:45 +00:00
  • 25a7074c9a Remove all mentions of iOS numzero 2023-03-14 18:48:55 +03:00
  • df8881898d Remove CIrrDeviceiOS numzero 2023-03-14 18:48:34 +03:00
  • ba77d01c91 Error out early on unsupported SDL2+GLES1 combo numzero 2023-03-13 19:16:06 +03:00
  • f641500d01 Add xvfb (for tests) numzero 2023-03-13 18:45:40 +03:00
  • 02c6449f0d Add CI for the new GL ES 2 driver numzero 2023-03-13 18:40:11 +03:00