b01a3ea781Fix ifs clang-format didn’t get
numzero
2023-10-04 21:10:58 +03:00
e5b97d440aRemove .clang-format again
Desour
2024-03-20 19:03:04 +01:00
f5c6d3e945Reformat the code, using:
Desour
2024-03-20 19:35:52 +01:00
9814510b1bAdd clang-format file, based on that from Minetest
numzero
2023-10-04 20:39:08 +03:00
05c8bc8314Try to fix macOS CI
sfan5
2024-03-20 20:37:22 +01:00
a9c4683b18Do not include core::string in matrix4.h
sfan5
2024-03-17 23:24:02 +01:00
b10141887fobj/mtl loader no longer messes up bump textures when the name starts with a number Mtl loader was assuming bump textures starting with a number are always using that to scale the bump. No idea if there are mtl files out there assuming that, but usually scaling parameter is -bm But it always assumed real filename was following, so as compromise I still allow pure numbers (no other characters following) to be scaling parameters.
svn-trunk
cutealien
2024-03-16 16:32:50 +00:00
ac341472d6Add error checks and log warnings in CIrrDeviceWin32::CCursorControl::addIcon
cutealien
2024-03-15 14:52:22 +00:00
8f8a4ef5e1CImageLoaderBMP now supports loading 1-bit images with palette data The feature everyone has been waiting for!!! Or not... Anyway it works now :-)
cutealien
2024-03-13 19:30:48 +00:00
26c4f4e63dEnsure enough alignment for IImages
sfan5
2024-03-10 13:57:48 +01:00
9d07f906a7Delete mesh writing support entirely
sfan5
2024-03-09 22:37:22 +01:00
d26c0aeaafRemove more dead code
sfan5
2024-03-09 22:34:05 +01:00
70b0b46d50Delete deprecated video driver methods
sfan5
2024-03-09 22:22:07 +01:00
a7dd075decMark some common constructors and other stuff as constexpr
sfan5
2024-03-09 22:05:06 +01:00
b17fe835bcHardware meshbuffers are now deleted when they hold the last reference to a meshbuffer HW buffers were keeping meshbuffers alive for 20000 frames even when no one else was using them anymore. In cases of rapid creating/destroying static meshbuffers this could lead to serious memory leaks (which then kinda topped out after 5 minutes, but at that point it could already be too late).
cutealien
2024-02-29 13:42:22 +00:00
1e89db1b80Consistently include C headers by their C++ wrapper
sfan5
2024-02-25 22:09:38 +01:00
44a368ef0eMigrate public headers to #pragma once
sfan5
2024-02-25 22:01:20 +01:00
7ddf740f9bRemove unused includes in public headers
sfan5
2024-02-25 21:50:24 +01:00
989e82d5ddInitialize SJoint.Animatedscale to 1,1,1 No scale should be 1,1,1 not 0,0,0 Wasn't a bug as animation system ensured the initial value is never used, but more correct and no extra cost (vectors initialize to 0 otherwise).
cutealien
2024-02-24 19:11:42 +00:00
61682104dfCOpenGLCoreTexture: fix abort when format not supported
sfan5
2024-02-21 19:20:01 +01:00
46542793d6OpenGL: Fix BGRA format mapping
sfan5
2024-02-21 19:07:36 +01:00
9f2d13a2b6OpenGL: Print more debug info at init time
sfan5
2024-02-21 18:58:42 +01:00
602a4050b5Adjust CI vcpkg run package installation
sfan5
2024-02-17 22:08:49 +01:00
54de743641Workaround for too old GL header on older SDL versions
sfan5
2024-02-17 00:51:36 +01:00
3e8d8440e3Vendor GL headers again
sfan5
2024-02-17 00:14:01 +01:00
8189b2338aRemove now unused legacy OGLES2 driver
sfan5
2024-02-16 23:27:28 +01:00
0a77ef5dc2Enable unified driver with all devices
sfan5
2024-02-16 23:24:53 +01:00
19f0f707a6Use ContextManager to resolve symbols in GL driver
sfan5
2024-02-17 00:30:32 +01:00
83998f7471Reduce OGLES extension array to ones actually used
sfan5
2024-01-16 21:34:48 +01:00
b7bb4b5958Remove all !_IRR_OGLES1_USE_EXTPOINTER_ code
sfan5
2024-01-16 21:03:52 +01:00
f28e442bfaDrop all !_IRR_OGLES2_USE_EXTPOINTER_ code
sfan5
2024-01-16 21:01:36 +01:00
4cd5c3489eDrop all !_IRR_OPENGL_USE_EXTPOINTER_ code
sfan5
2024-01-16 20:59:36 +01:00
52e4d72ae2Migrate OpenGL cache and texture handler to GL pointers
sfan5
2024-01-16 20:17:33 +01:00
7241a49566Compile at least one CI build as debug
sfan5
2024-02-23 13:18:56 +01:00
2db8c8728eMissing value_or() when printing std::optional
Muhammad Rifqi Priyo Susanto
2024-02-23 11:00:00 +07:00
ec4e690f02Change order of variables in SMaterial for better packing Saves 8 byte when compiling for 64-bit with VS. Breaks binary compatibility which I'd usually avoid, but as this happened before since 1.8, I don't care.
cutealien
2024-02-22 17:57:37 +00:00
d9de5f2306Optimize memory layout for SMaterialLayer SMaterialLayer going down from 40 to 32 bytes on 64-bit systems according to the new VS memory layout tool (nice toy!)
cutealien
2024-02-22 11:19:58 +00:00
270b2bec6eEnsure that std::abs is used and not integer abs
paradust7
2024-02-21 13:06:29 -08:00
c83f28431bAdd API to delete shader materials
sfan5
2024-02-20 21:27:15 +01:00
e60921f0cbDrop old shader material functions
sfan5
2024-02-20 21:01:25 +01:00
6ba6118b8cUpgrade SDL CI to 22.04 everywhere
sfan5
2024-02-16 22:42:49 +01:00
7f11d2f950Switch to llvm-mingw
sfan5
2024-01-30 13:37:20 +01:00
fe3e41e7eaSet minimum SDL version
sfan5
2024-02-15 10:37:24 +01:00
4478b1f1ecRemove old SDL Windows workaround
sfan5
2024-02-15 10:35:21 +01:00
3992129735Bind keypad enter on SDL
sfan5
2024-02-15 10:31:06 +01:00
e3f3f753deMake text about available texture memory in d3d9 more precise The value returned doesn't seem that useful :-/
cutealien
2024-02-13 19:53:16 +00:00
0dab737d60Do not use core::max_() with variable that can not be addressed
Fatih Uzunoglu
2024-02-11 19:28:32 +02:00
330150854bSDL: set default for ActiveIcon
Fatih Uzunoglu
2024-02-11 19:21:06 +02:00
6779ac83f9SDL: Improve handling of IMEs (#285)
y5nw
2024-02-09 00:08:03 +01:00
f1504093d1Ensure that absent bone names work (#284)
Lars Müller
2024-02-06 20:22:44 +01:00
cd1ce549abUpdate documentation for EMT_SOLID_2_LAYER Remove comment that it's not working on OpenGL. Not sure when it got fixed, but it's implemented and seems to work as described.
cutealien
2024-02-01 20:49:37 +00:00
ffec673146line3d::getClosestPoint can now chose between using line or line segment Also the case of start/end points being identical now avoids invalid numbers from division by 0 and just returns the start point Basically it's now the same again as line2d::getClosestPoint (which also got a comment fix)
cutealien
2024-01-30 14:51:08 +00:00
8482cc3db8Adjust package config dependency again
sfan5
2024-01-30 14:22:31 +01:00
c7dddff71cSimplify aabbox3d::getSideCenters Unnecessary computations in my last version
cutealien
2024-01-29 16:23:43 +00:00
ea9a001808Add aabbox3d::getSideCenters Returns centers of the side faces. Just another tool function to fatten up Irrlicht
cutealien
2024-01-29 16:05:31 +00:00
2d880e4cfeUpdate comments about getEdges (it's about corners...) Wish I could rename those functions, but that breaks a bit too much. So at least document that getEdges is about getting corners and not about getting edges.
cutealien
2024-01-29 15:41:42 +00:00
56db5a39eaDeprecated and disable MY3D loader I tried to find out about this format, but last info seems to be from 2005 (https://irrlicht.sourceforge.io/forum/viewtopic.php?p=37385) Website for it no longer exists and I also couldn't find My3DTools on any other place on the web. We don't even have an example for it in Irrlicht. Also CMY3DHelper.h introduces quite a bunch of functions and global variables in the irr::core namespace and I'm not really interested in spending time in cleaning this up.
cutealien
2024-01-27 15:14:28 +00:00
1d3794c8b4Reduce redundant code in core::quaternion Instead of using same matrix calculations 3 times, getMatrixCenter and getMatrix now both call getMatrixFast. Additional function call might be slight cost in debug, in release compilers hopefully inline it away. Also getMatrix_transposed now split into getMatrix_transposed and getMatrixFast_transposed to make it similar to getMatrix. This also avoids a bunch of level 4 warnings in VS about function variables hiding class variables, which was why I started on this. Thought I also prefer having less code here.
cutealien
2024-01-27 14:31:08 +00:00
b3e228ef43Make more internals for CVertexBuffer and CIndexBuffer public I don't see the point of giving access to Indices and Vertices if they are of a class type which is private. Now it's at least possible (with a few casts) to access the freaking array having the data which is often all we want.
cutealien
2024-01-24 11:44:49 +00:00
1a86bbd38aUpdate VS code analysis ruleset
cutealien
2024-01-24 11:38:50 +00:00