cutealien
a7f9afd289
Avoid ambigious conversions when compiling with c++20
...
Yay, more ugly casts needed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6427 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
263f243523
S3DVertex initialize color always. It's derived classes now both accept const S3DVertex& constructor.
...
color intitialization has some cost, but we initialized all other values already (vectors are always set to 0).
Don't think it's a good idea to have one value around which is random.
S3DVertex2TCoords(S3DVertex& o) to S3DVertex2TCoords(const S3DVertex& o) simply because it makes more sense
S3DVertexTangents(const S3DVertex& o) added because I'll need it later (and no idea why only S3DVertex2TCoords got one of those before).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6359 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
c5ee8c8397
CVertexBuffer no longer re-allocates stuff when type doesn't change
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6339 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
b0c03b6f3b
Add documentation that sourceRect of draw2dImage is based on the OriginalSize
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6324 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
679d3a8ba7
Avoid some more warnings when working with CMatrix4<f64>
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6304 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
d1f441787a
Avoid warnings when working with CMatrix4<f64>
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6303 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
cutealien
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.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6300 dfc29bdd-3216-0410-991c-e03cc46cb475
2023-03-24 17:09:11 +01:00
numzero
52a0b9d8e5
Drop dependency on FileSystem from SceneManager
2023-03-19 19:47:43 +01:00
numzero
0160cdc51d
Drop unused dependency of SceneManager on GUIEnvironment
2023-03-19 19:47:43 +01:00
numzero
25a7074c9a
Remove all mentions of iOS
2023-03-14 17:54:08 +01:00
numzero
d81db9dd6d
Merge branch 'drop-irr-compile-config' into opengl3
2023-03-13 18:07:25 +03:00
sfan5
21c61e9973
Bump revision early
2023-03-11 15:12:05 +01:00
Vitaliy
5a5a7d04b7
Drop IrrCompileConfig ( #163 )
2023-03-11 15:04:09 +01:00
sfan5
1d43ea17ca
Bump revision
2023-03-05 21:45:09 +01:00
numzero
2e9ed529b1
Restore obsolete constants as they are still used in some code I don’t want to touch
2023-03-03 22:01:50 +03:00
numzero
ceb53be9e3
Merge branch 'master' into opengl3
2023-03-03 22:01:30 +03:00
numzero
1bbe341daa
Support both OpenGL3 and GLES2 on SDL2
2023-03-02 02:44:52 +03:00
numzero
620f4869a1
Drop obsolete video drivers
2023-03-02 01:22:04 +03:00
numzero
79fdab0551
Drop obsolete IVideoDriver features
2023-02-27 21:26:46 +03:00
numzero
5a95b40a0e
Reduce IrrCompileConfig usage to files that actually need it
2023-02-22 21:11:12 +03:00
numzero
8efd4527f6
Drop _IRR_MATERIAL_MAX_TEXTURES_
2023-02-22 21:11:12 +03:00
numzero
a0e1e39ea7
Drop _IRR_SCENEMANAGER_DEBUG
2023-02-22 21:11:12 +03:00
numzero
d8e09f14bd
Drop _IRR_COMPILE_WITH_GUI_
2023-02-22 21:11:12 +03:00
numzero
67f852be57
Drop obsolete configuration macros
2023-02-22 21:11:12 +03:00
numzero
5a2b807890
Move import/export macros into CMake
2023-02-22 21:11:12 +03:00
numzero
06db7b7ab7
Move platform detection to CMake
2023-02-22 21:11:12 +03:00
Desour
09e6eeb65b
Remove irr::core::hash
...
Its use of std::unary_function was deprecated.
And it wasn't used anywhere.
2023-02-22 11:43:42 +01:00
Desour
839bdc1a65
Fix -Wignored-qualifiers warnings in irrUString.h
2023-02-22 11:43:42 +01:00
numzero
38f18eec56
Drop unused stuff from IrrCompileConfig
2023-02-21 18:16:39 +03:00
DS
51dffc416a
Add WindowMaximized creation parameter and isWindowMaximized() ( #142 )
2023-02-06 15:05:44 +01:00
sfan5
a9230e5f49
Delete profiler
2023-01-02 21:05:07 +01:00
sfan5
b5a6dc0a15
Delete leak hunter
2023-01-02 20:37:18 +01:00
sfan5
05a00a8d91
Completely remove irrAllocator
2022-12-23 19:56:21 +01:00
sfan5
07fd32da50
Replace core::string implementation with std::basic_string
2022-12-23 19:17:08 +01:00
sfan5
6f98515f34
Fix two irrString bugs
...
* append() missing null-termination
* eraseTrailingFloatZeros() was accidentally broken, comment it out for now
2022-11-11 16:24:27 +01:00
Andrei E
a549d0bfed
Add setRelativeMode for SDL driver ( #123 )
2022-10-24 21:19:11 +02:00
sfan5
a0af653c3d
Bump revision early
2022-10-24 21:17:53 +02:00
JosiahWI
59fc4401f1
Replace _IRR_OVERRIDE_ macro with override keyword
...
The commit also establishes a precedent of leaving off the `virtual`
keyword in overrides. Although not strictly necessary, I believe this is
good for readability because it makes it clear it is an override and not
a pure virtual function, and it helps keep line lengths shorter. We
should move towards eliminating the macro altogether, but the definition
has been left in with a note on deprecation so that in-progress work
will not suffer merge conflicts.
2022-10-15 01:09:09 +02:00
sfan5
9b541f2948
Fix buffer size for wchar-multibyte conversion
2022-10-14 15:47:49 +02:00
sfan5
3225007e8d
Bump revision
2022-09-16 19:39:46 +02:00
sfan5
ff645cc876
Bump revision
2022-07-21 20:20:13 +02:00
sfan5
51f0acb7c1
Replace std::min in irrArray.h
...
should fix #122
2022-07-20 22:09:07 +02:00
sfan5
91edd214aa
Enable XInput2 by default (and improve CMake detection)
...
closes #73
2022-07-18 21:42:43 +02:00
sfan5
538c9e5cde
Drop gamma ramp code
...
We definitely won't be wanting to set the gamma for the entire display in the future.
2022-07-18 21:22:38 +02:00
sfan5
abebac8bd4
Return nullptr pointer for empty core::array
...
fixes minetest/minetest#12532
2022-07-17 12:44:58 +02:00
sfan5
a7b306f702
Drop Console and Framebuffer device
...
fbdev is long legacy and the console was just an ASCII art gimmick
2022-07-09 23:53:04 +02:00
sfan5
aa095d9525
Remove more dead code ( #108 )
2022-06-01 15:03:52 +02:00
paradust7
128cf1696c
Remove core::list and replace uses with std::list ( #105 )
2022-05-22 00:00:32 +02:00
paradust7
3e81f38098
Make irrArray backed by std::vector ( #101 )
2022-05-21 23:56:36 +02:00
paradust7
00a7741cd4
Remove irrMap and use std::map instead
2022-05-18 13:12:47 +02:00
Richard Try
6928c7eb6f
Add hash for vector2d and vector3d ( #93 )
2022-05-10 19:26:24 +02:00
sfan5
372b3642bf
Bump revision
2022-05-07 11:24:47 +02:00
paradust7
ba0396e93d
Replace HWBufferMap with a list and back pointers ( #99 )
2022-04-29 12:04:22 +02:00
sfan5
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
sfan5
e469c54f76
Fix COSOperator::getSystemMemory
...
The values it returns are in Kilobytes and it was broken on macOS.
2022-03-09 22:52:11 +01:00
sfan5
df908ef4ea
Get rid of various old compiler and platform checks
2022-02-26 12:11:27 +01:00
cutealien
4fb1c55ec5
IBillboardSceneNode got functions to access meshbuffers.
...
So uv-coordinates can now be modified directly (previously only possible via texture matrix).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6299 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-02-09 19:09:04 +01:00
cutealien
7fb36849c7
vector3d scalar operator/ and operator/= no longer multiply by the inverse but use the expected division.
...
That was a bad case of premature optimization.
Multiplication is indeed faster, but when working with floats this can introduce some rather unexpected inaccuracies.
Like x/x suddenly no longer being 1.0 (something guaranteed by division).
If someone really needs this back, then please add some new function which makes it clear we don't just have a typical division here.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6298 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-02-09 19:07:05 +01:00
cutealien
8c0ee7d9ab
Avoid some warnings from static code analysis.
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6296 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-02-09 19:06:19 +01:00
cutealien
684293f527
Prefer static_cast to reinterpret_cast where possible.
...
Just safer. Could probably do in a lot more places... another time.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6293 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-02-09 19:05:49 +01:00
cutealien
1b8be72ccb
de-deprecate clearZBuffer
...
Lets just keep this one around. Easy to use, downward compatible and generally works as expected.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6259 dfc29bdd-3216-0410-991c-e03cc46cb475
2022-02-09 19:02:36 +01:00
sfan5
e5f69157db
Bump revision
2022-02-03 21:50:14 +01:00
Emmanuel Hansen
53db262bd2
Update CIrrDeviceSDL to support SDL2 ( #85 )
2022-01-16 12:16:15 +01:00
x2048
2fec5e5dd3
Reset mesh animation state before recalculating normals ( #90 )
2022-01-02 20:41:03 +01:00
ROllerozxa
52e03a8485
Remove unused attribute saving and loading ( #86 )
2021-12-29 23:00:56 +01:00
sfan5
dd09fdcb4e
Remove more unused code ( #87 )
2021-12-29 13:12:09 +01:00
JosiahWI
6d133e1bcc
Fix various GCC warnings
...
- fix overload hiding
- handle missing enumeration values in switch
- remove extraenous semicolons
- always have defaults in color converter switch
- fix root cause of stringop warning
2021-11-24 22:07:26 +01:00
JosiahWI
d4119ba664
Remove unused functions
...
renderLine16_Blend(), renderLine16_Decal(), renderLine32_Blend(), renderLine32_Decal()
clipLine()
frand()
drawRectangle() and drawLine()
remove unused private fields
2021-11-24 22:06:12 +01:00
sfan5
2f2d37dce6
Reduce _IRR_MATERIAL_MAX_TEXTURES_ to 4
...
We don't use any more and reducing this is free memory savings.
2021-11-19 20:27:51 +01:00
sfan5
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
x2048
39cad3e618
Fix updating of vertex normals for animated meshes ( #77 )
...
Updates cached positions and normals of animated vertices
from the mesh. Useful when using meshManipulator to update
the normals.
2021-11-16 12:30:31 +01:00
sfan5
81bae5b717
Replace some questionable math implementations
...
fixes #76
2021-10-24 01:23:06 +02:00
sfan5
713471e9a2
Bump revision to 1.9.0mt4
2021-09-14 19:31:32 +02:00
ROllerozxa
ac57007c55
Readd TGA format support ( #64 )
2021-09-13 21:21:26 +02:00
sfan5
4389a15e0f
Remove unused locale-like code, utf8 functions and headers
2021-08-30 22:42:13 +02:00
DS
9c4b6f25ab
Fix X11 selections ( #55 )
...
This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.
2021-08-30 21:44:56 +02:00
sfan5
75b4c05741
Drop _IRR_WCHAR_FILESYSTEM
...
never used and never worked for us.
2021-08-30 20:55:06 +02:00
JosiahWI
2dc2846c3f
Add support for OpenBSD
...
There were three patches OpenBSD applied to build Irrlicht, and I implemented two of them. The first required turning off joystick events on OpenBSD, and the second (which I didn't confirm was necessary) required some defines in os.h. The third patch would have added an include to CIrrDeviceLinux.cpp, but the file had changed quite a bit and I could not tell whether this was necessary, so I left it out, and it appears Irrlicht builds fine.
2021-08-28 18:12:40 +02:00
cutealien
9690c1b3e3
Merging r6196 through r6248 from trunk to ogl-es branch
...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6249 dfc29bdd-3216-0410-991c-e03cc46cb475
2021-08-27 10:59:31 +02:00
sfan5
da33f80bb8
Readd CSceneCollisionManager with only the method we need
2021-08-26 22:17:35 +02:00
hecks
da22e5d7c0
Remove redundant and troublesome constants from the GL binding
2021-08-07 22:50:13 +02:00
hecks
f83dab83cf
Add some missing constants to the GL binding
2021-08-07 22:42:18 +02:00
hecks
5bf68b5731
Add a unified cross platform OpenGL core profile binding ( #52 )
2021-08-07 21:56:00 +02:00
hecktest
ae81dbd942
Restore missing entry in compile config
2021-07-23 18:25:23 +02:00
hecks
4ab3de3bab
Delete lots of unused features ( #48 )
2021-07-23 16:23:44 +02:00
sfan5
1d66c921c2
Drop unused and unportable "fast math" code
2021-07-17 00:02:37 +02:00
sfan5
0afd799002
Remove various ancient support code
2021-07-16 22:01:37 +02:00
sfan5
729c214c00
Drop XML implementation, related code and dependent features
2021-07-07 17:04:05 +02:00
sfan5
ecb30e3d96
Bump revision to 1.9.0mt3
2021-07-07 16:47:50 +02:00
sfan5
accf927874
Disable software drivers by default everywhere
...
They'll likely be dropped entirely soon.
2021-07-02 19:48:00 +02:00
Vincent Robinson
b43f9b96e0
Fix incorrect documentation on setRenderTarget(Ex)
2021-06-21 08:25:36 +02:00
Loïc Blot
04bc02fc22
Cleanup C++0x support in irrUString.h ( #33 )
2021-04-28 10:12:29 +02:00
sfan5
341cdbfe0d
Enable ogles2 on mobile platforms by default
...
It wasn't meant to be disabled.
2021-04-27 09:25:58 +02:00
sfan5
05547cbd5f
Disable Software drivers on mobile platforms
...
literally dead code
2021-04-09 21:24:58 +02:00
sfan5
c77797bbed
Bump revision early
...
So we can leave CI at the last build while being able to test changes locally.
2021-04-02 23:38:28 +02:00
yw05
32004b9c5f
Prepare GUI for IME support
2021-04-02 23:17:27 +02:00
sfan5
279530a230
Make compiling using MSVC work
2021-03-26 16:48:28 +01:00
sfan5
f7b46ba22f
Bump revision to 1.9.0mt1
2021-03-25 15:47:33 +01:00
Loic Blot
ff737e113c
Include irrUString directly in irrlicht
...
it's a derivate from irrString and originate from irrlicht, legitimate a return back to home
2021-03-25 13:35:51 +01:00
sfan5
0335a52479
Fix pixel-perfect draw2DLine on OpenGL
2021-03-12 16:30:44 +01:00