dd1043c4c0
Replace non-leading tabs with spaces, using:
...
find -type f | # list all regular files
grep -E '\.(h|cpp|mm)$' | # filter for source files
grep -v '/mt_' | # filter out generated files
grep -v '/vendor/' | # and vendored GL
xargs -n 1 -P $(nproc) ./replace_non_leading_tabs.lua # reformat everything
2024-03-21 22:08:26 +01:00
adc96072cd
Fix ugly formatted arrays
...
Found via: `rg --multiline "=\n\t*\{\n"`
2024-03-21 22:08:26 +01:00
f5c6d3e945
Reformat the code, using:
...
find -type f | # list all regular files
grep -E '\.(h|cpp|mm)$' | # filter for source files
grep -v '/mt_' | # filter out generated files
grep -v '/vendor/' | # and vendored GL
grep -v '/test/image_loader_test.cpp' | # and this file (has giant literals arrays)
xargs -n 1 -P $(nproc) clang-format -i # reformat everything
Co-authored-by: numzero <numzer0@yandex.ru >
2024-03-21 22:08:26 +01:00
44a368ef0e
Migrate public headers to #pragma once
2024-02-25 22:10:04 +01:00
f91be59811
Remove support for GL_POINT_SMOOTH and GL_LINE_SMOOTH antialiasing
...
These antialiasing techniques have been removed in OpenGL 3.1, they were often executed by the CPU, and Minetest does not use them.
The OpenGL wiki recommends that we do not use this functionality in our program.
https://www.khronos.org/opengl/wiki/Multisampling#Smooth_antialiasing
2024-02-17 22:04:01 +01:00
9954667c45
Cleanup line endings ( #245 )
...
The exact commands to make this commit were:
git reset --hard origin/master
find -type f | # list all regular files
grep -E '\.(h|cpp|fsh|vsh|mm)|LICENSE$' | # filter for text files
xargs -n 1 -P $(nproc) sed -i 's:\s*$::' # for each file, trim trailing whitespace including the CR
git commit -a
2023-10-03 20:37:00 +02:00
00dd1f8ef3
Remove deprecated functionality of SMaterial
2023-09-05 17:21:35 +02:00
c40045a40a
Rename SMaterial::TextureLayer -> SMaterial::TextureLayers
...
It's not the "texture layer" of the material, but an array of texture layers.
2023-07-16 13:02:48 +02:00
c0ef1092c0
Rename E_MATERIAL_FLAG -> E_MATERIAL_PROP
...
The enum values don't reference material flags, but material properties.
2023-07-16 13:02:47 +02:00
5ececc7d29
Split up texture filtering properties of SMaterialLayer into MinFilter and MagFilter
...
You can now set the filter used when scaling textures down and the filter used when scaling textures up separately.
2023-07-16 13:02:26 +02:00
9e0189019e
Refactor the way you set material properties
...
Instead of using SMaterial::setFlag, you now set them directly on SMaterial or SMaterialLayer.
2023-07-16 13:02:25 +02:00
98589d2fd2
Remove unused fixed function materials
2023-06-15 10:01:34 +02:00
5a5a7d04b7
Drop IrrCompileConfig ( #163 )
2023-03-11 15:04:09 +01:00
c9b66c8c58
Sort out two -Wdeprecated-copy warnings
...
- SMaterial copy constructor is removed entirely
(same change in upstream trunk r6362)
- CMatrix4 gets an explicit, but default copy constructor readded
2022-04-28 21:20:42 +02:00
dd09fdcb4e
Remove more unused code ( #87 )
2021-12-29 13:12:09 +01:00
d322b73e4c
Get rid of MATERIAL_MAX_TEXTURES_USED
...
Another configurable knob of questionable usefulness,
especially since this inhibits certain optimizations
by making loop length dependent on a global variable.
2021-11-19 20:16:57 +01:00
4ab3de3bab
Delete lots of unused features ( #48 )
2021-07-23 16:23:44 +02:00
4931b34625
Remove trivial copy constructors and operators
2021-03-09 12:47:54 +01:00
2ae2a551a6
Merging r5975 through r6036 from trunk to ogl-es branch.
...
GLES drivers adapted, but only did make compile-tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
2020-01-03 19:05:16 +00:00