Tomasz Kapuściński
55f5d25c95
Refactored Math::Vector to glm::vec3 in remaining auto classes
2022-01-03 23:48:38 +01:00
Tomasz Kapuściński
4634564f17
Refactored Math::Vector to glm::vec3 in various auto classes
2022-01-03 23:32:30 +01:00
Tomasz Kapuściński
300a2d8569
Refactored Math::Vector to glm::vec3 in CrashSphere, CObjectFactory, old_object.h, old_object_interface.h
2022-01-03 22:51:36 +01:00
Tomasz Kapuściński
b4bfb8b242
Refactored Math::Vector in CLevelParserParam, CObjectCondition and CScoreboard
2021-12-29 02:19:22 +01:00
Tomasz Kapuściński
6277e10b3f
Refactored Math::Vector in CParticle, CPlanet, CPyro, CTerrain, CText, CWater, ModelInput and few structures
2021-12-29 01:55:48 +01:00
Tomasz Kapuściński
47ad390f1d
Refactored Math::Vector in CCamera, CLightManager, CLightning, CMainMovie, glutil.h and geometry.h
2021-12-29 00:08:02 +01:00
Tomasz Kapuściński
d25d6124a9
Changed Math::Vector into alias to glm::vec3
2021-12-28 23:01:30 +01:00
Tomasz Kapuściński
70151279f6
Removed Math::Point and minor refactor
2021-12-24 20:44:54 +01:00
Tomasz Kapuściński
431416d75e
Refactored Math::Point in CEngine
2021-12-24 20:25:38 +01:00
Tomasz Kapuściński
77c6f8e54f
Refactored Math::Point in CRobotMain, CObjectFactory, CBaseBuilding, CAutoInfo, CScript, CDebugMenu, CDisplayText and CObjectInterface
2021-12-24 20:08:04 +01:00
Tomasz Kapuściński
dc99e19ed9
Refactored Math::Point in CPhysics, CDisplayInfo, CFileDialog, CMainDialog, CMainMap, CMainShort and CStudio
2021-12-24 19:02:25 +01:00
Tomasz Kapuściński
c659e060c1
Refactored Math::Point in task classes
2021-12-24 18:39:45 +01:00
Tomasz Kapuściński
f8f3a64612
Refactored Math::Point in motion classes
2021-12-24 18:32:42 +01:00
Tomasz Kapuściński
7bf37a3999
Refactored Math::Point in screen classes
2021-12-24 03:53:36 +01:00
Tomasz Kapuściński
3fabdad1fe
Refactored Math::Point in CSettings, CParticle, CPyro, CInterface, CMainUserInterface and CScreen
2021-12-24 03:45:59 +01:00
Tomasz Kapuściński
a806bb2657
Refactored Math::Point in auto classes
2021-12-24 03:26:25 +01:00
Tomasz Kapuściński
91c19bff55
Refactored Math::Point in control classes
2021-12-24 03:18:10 +01:00
Tomasz Kapuściński
9691974b1a
Refactored Math::Point in CLighting, CParticle, CParticleGenerator and CText
2021-12-24 02:36:54 +01:00
Tomasz Kapuściński
07d3d79e8d
Refactored Math::Point in CPlanet, CTerrain, CWater and CLevelParserParam
2021-12-24 02:04:15 +01:00
Tomasz Kapuściński
498f15cc92
Refactored Math::Point in CApplication, CInput, CCamera, CCloud and Event
2021-12-24 01:38:54 +01:00
Tomasz Kapuściński
b36ec266f0
Refactored Math::Point from vertex types
2021-12-24 00:57:04 +01:00
Tomasz Kapuściński
c0d067d24b
Changed Math::Point into alias to glm::vec2, minor refactors
2021-12-24 00:11:12 +01:00
Tomasz Kapuściński
12c0f41477
Removed unused null renderer files
...
Null renderer will be rewritten entirely anyway, no need to keep these files in their current form.
2021-12-23 23:40:34 +01:00
Tomasz Kapuściński
f7c66741c6
Removed Math::IntPoint
2021-12-23 23:38:26 +01:00
Tomasz Kapuściński
60deb0328a
Refactored Math::IntPoint in CInput and CImage
2021-12-23 23:36:30 +01:00
Tomasz Kapuściński
0ef4579da8
Refactored Math::IntPoint in CApplication and various classes
2021-12-23 23:26:08 +01:00
Tomasz Kapuściński
55c692e8bb
Refactored Math::IntPoint in CEngine and CParticle
2021-12-23 23:08:56 +01:00
Tomasz Kapuściński
835f84584e
Refactored Math::IntPoint in CTerrain
2021-12-23 22:47:44 +01:00
Tomasz Kapuściński
bd2ad39f6a
Refactored Math::IntPoint in CText
2021-12-23 22:47:15 +01:00
Tomasz Kapuściński
48d2b4a618
Refactored Math::IntPoint in core graphics classes
2021-12-23 22:35:28 +01:00
Tomasz Kapuściński
cd6ea1a4c5
Changed Math::IntPoint into alias to glm::ivec2
2021-12-23 22:09:58 +01:00
MrSimbax
4ecfb47f07
Fix MSVC errors
2021-12-21 18:01:42 +01:00
MrSimbax
d3dd99c384
Refactor fonts reloading
...
* Remove hardcoded default font name.
This means the `fonts/fonts.ini` file is now mandatory
and must contain definition of all 9 font types.
Old mods relying on an incomplete `fonts.ini` file might break.
A separate PR creating the required `fonts/fonts.ini` file
should be merged before this pull request.
* Simplify `CFontLoader`.
* Return `std::optional` instead of returning a default.
* Remove the now unnecessary `std::map`s.
* Remove the now unnecessary `GetFontType` method.
* Improve Gfx::FontType.
* Provide `ToString` function for the enum, which is now
used for logs and by `CFontLoader`.
* Provide `ToBoldFontType` and `ToItalicFontType` functions.
* Replace hex literals with binary literals for readability.
* Move font caching related code to a new private class `FontsCache`.
* Add neccessary changes because of changes made in `CFontLoader`.
* Add minor code improvements like renames and formatting.
* Split the code into smaller functions for readability.
* Simplify the `CText` class.
* Apply the rule of 5 to the `CachedFont` structure.
2021-12-21 00:50:36 +01:00
Evgeny Pestov
69ea470a26
CEdit::MoveChar never moves cursor between bytes of one UTF-8 symbol
2021-12-17 00:54:44 +07:00
Evgeny Pestov
65da4c42c4
CEdit::DeleteOne expands selection to delete integer number of UTF-8 symbols
2021-12-17 00:54:38 +07:00
Evgeny Pestov
cd059bd511
Show questions instead of crushing in case of UTF-8 errors
2021-12-17 00:54:30 +07:00
Mateusz Przybył
53053b901f
Merge pull request #1483 from colobot/dev-cbot-io-tests-refactor
...
Refactor CBotUT.TestSaveStateIoFunctions
2021-12-15 18:00:34 +01:00
Mateusz Przybył
17f68efb81
Merge pull request #1481 from colobot/dev-minor-fixes
...
Some minor technical fixes
2021-12-15 17:59:54 +01:00
Tomasz Kapuściński
98ad26da3d
Changed glm::identity to explicit construction
2021-12-15 00:20:56 +01:00
Tomasz Kapuściński
36ac6d9956
Another fix
2021-12-15 00:09:47 +01:00
Tomasz Kapuściński
1eb17b2fa1
Added includes to fix compilation errors for older versions of glm
2021-12-14 23:56:24 +01:00
Tomasz Kapuściński
33744de372
Add target alias for older versions of glm
2021-12-14 23:42:14 +01:00
Tomasz Kapuściński
d651b36eb2
Corrected includes
2021-12-14 23:09:20 +01:00
Tomasz Kapuściński
7e0db31cc1
Merge branch 'dev' into dev-graphics-overhaul
2021-12-14 22:27:43 +01:00
Tomasz Kapuściński
c389156499
Added commands for controling triplanar mapping
2021-12-14 21:58:23 +01:00
Tomasz Kapuściński
0207669d61
Added optional triplanar mapping mode for the secondary texture
2021-12-14 21:54:19 +01:00
Tomasz Kapuściński
b158318e83
Possibly a fix for most transparency issues
2021-12-14 21:51:29 +01:00
Tomasz Kapuściński
11bfcc6d53
Fix resetting bound textures
2021-12-14 21:50:26 +01:00
Evgeny Pestov
9269a55e8b
Fixed input of long UTF-8 symbols in editor ( #1423 )
2021-12-14 23:06:37 +07:00
Tomasz Kapuściński
2583f6fe36
Removed UIRenderer's DrawPrimitive() via CDevice
2021-12-12 21:17:39 +01:00