b01a3ea781
Fix ifs clang-format didn’t get
numzero
2023-10-04 21:10:58 +03:00
e5b97d440a
Remove .clang-format again
Desour
2024-03-20 19:03:04 +01:00
f5c6d3e945
Reformat the code, using:
Desour
2024-03-20 19:35:52 +01:00
9814510b1b
Add clang-format file, based on that from Minetest
numzero
2023-10-04 20:39:08 +03:00
05c8bc8314
Try to fix macOS CI
sfan5
2024-03-20 20:37:22 +01:00
a9c4683b18
Do not include core::string in matrix4.h
sfan5
2024-03-17 23:24:02 +01:00
b10141887f
obj/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
ac341472d6
Add error checks and log warnings in CIrrDeviceWin32::CCursorControl::addIcon
cutealien
2024-03-15 14:52:22 +00:00
8f8a4ef5e1
CImageLoaderBMP 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
26c4f4e63d
Ensure enough alignment for IImages
sfan5
2024-03-10 13:57:48 +01:00
9d07f906a7
Delete mesh writing support entirely
sfan5
2024-03-09 22:37:22 +01:00
d26c0aeaaf
Remove more dead code
sfan5
2024-03-09 22:34:05 +01:00
70b0b46d50
Delete deprecated video driver methods
sfan5
2024-03-09 22:22:07 +01:00
a7dd075dec
Mark some common constructors and other stuff as constexpr
sfan5
2024-03-09 22:05:06 +01:00
b17fe835bc
Hardware 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
1e89db1b80
Consistently include C headers by their C++ wrapper
sfan5
2024-02-25 22:09:38 +01:00
44a368ef0e
Migrate public headers to #pragma once
sfan5
2024-02-25 22:01:20 +01:00
7ddf740f9b
Remove unused includes in public headers
sfan5
2024-02-25 21:50:24 +01:00
989e82d5dd
Initialize 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
0a77ef5dc2
Enable unified driver with all devices
sfan5
2024-02-16 23:24:53 +01:00
19f0f707a6
Use ContextManager to resolve symbols in GL driver
sfan5
2024-02-17 00:30:32 +01:00
83998f7471
Reduce OGLES extension array to ones actually used
sfan5
2024-01-16 21:34:48 +01:00
b7bb4b5958
Remove all !_IRR_OGLES1_USE_EXTPOINTER_ code
sfan5
2024-01-16 21:03:52 +01:00
f28e442bfa
Drop all !_IRR_OGLES2_USE_EXTPOINTER_ code
sfan5
2024-01-16 21:01:36 +01:00
4cd5c3489e
Drop all !_IRR_OPENGL_USE_EXTPOINTER_ code
sfan5
2024-01-16 20:59:36 +01:00
52e4d72ae2
Migrate OpenGL cache and texture handler to GL pointers
sfan5
2024-01-16 20:17:33 +01:00
7241a49566
Compile at least one CI build as debug
sfan5
2024-02-23 13:18:56 +01:00
2db8c8728e
Missing value_or() when printing std::optional
Muhammad Rifqi Priyo Susanto
2024-02-23 11:00:00 +07:00
ec4e690f02
Change 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
d9de5f2306
Optimize 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
270b2bec6e
Ensure that std::abs is used and not integer abs
paradust7
2024-02-21 13:06:29 -08:00
c83f28431b
Add API to delete shader materials
sfan5
2024-02-20 21:27:15 +01:00
e60921f0cb
Drop old shader material functions
sfan5
2024-02-20 21:01:25 +01:00
92252f70d2
Drop low-level shader constant setters
sfan5
2024-02-20 20:51:01 +01:00
4e9d0db4be
Delete a broken method
sfan5
2024-02-19 21:08:29 +01:00
2bb2d3fe01
CFileSystem: Fix signed integer conversion on MinGW
SmallJoker
2024-02-18 23:45:39 +01:00
45ace61007
OpenGL: support scene::EHM_STREAM
sfan5
2024-02-18 22:42:36 +01:00
89d0717779
Delete some dead code
sfan5
2024-02-18 16:32:45 +01:00
19819bd23a
Reduce needless use of wchar / stringw
sfan5
2024-02-18 16:29:03 +01:00
6ba6118b8c
Upgrade SDL CI to 22.04 everywhere
sfan5
2024-02-16 22:42:49 +01:00
7f11d2f950
Switch to llvm-mingw
sfan5
2024-01-30 13:37:20 +01:00
fe3e41e7ea
Set minimum SDL version
sfan5
2024-02-15 10:37:24 +01:00
4478b1f1ec
Remove old SDL Windows workaround
sfan5
2024-02-15 10:35:21 +01:00
3992129735
Bind keypad enter on SDL
sfan5
2024-02-15 10:31:06 +01:00
e3f3f753de
Make 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
0dab737d60
Do not use core::max_() with variable that can not be addressed
Fatih Uzunoglu
2024-02-11 19:28:32 +02:00
330150854b
SDL: set default for ActiveIcon
Fatih Uzunoglu
2024-02-11 19:21:06 +02:00
f1504093d1
Ensure that absent bone names work (#284)
Lars Müller
2024-02-06 20:22:44 +01:00
cd1ce549ab
Update 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
ffec673146
line3d::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
8482cc3db8
Adjust package config dependency again
sfan5
2024-01-30 14:22:31 +01:00
c7dddff71c
Simplify aabbox3d::getSideCenters Unnecessary computations in my last version
cutealien
2024-01-29 16:23:43 +00:00
ea9a001808
Add 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
2d880e4cfe
Update 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
56db5a39ea
Deprecated 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
1d3794c8b4
Reduce 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
b3e228ef43
Make 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
1a86bbd38a
Update VS code analysis ruleset
cutealien
2024-01-24 11:38:50 +00:00