Tomasz Kapuściński
8c40b7c753
Force buffer orphaning to fix initial buffer binding
2022-03-09 16:56:03 +01:00
Tomasz Kapuściński
fa5e229015
Fixed forward declaration of enums
2022-02-26 19:44:49 +01:00
Tomasz Kapuściński
8533be8d5c
Replaced MakeUnique and MakeUniqueArray with std::make_unique
2022-02-26 18:48:51 +01:00
Tomasz Kapuściński
89551c83cf
Merge branch 'dev' into dev-graphics-overhaul
...
# Conflicts:
# src/graphics/engine/text.cpp
# src/graphics/engine/text.h
# src/script/scriptfunc.cpp
2022-02-26 04:43:56 +01:00
Tomasz Kapuściński
3001927576
Removed engine.h from includes in header files, replaced by forward declarations and includes in source files
2022-02-26 03:53:39 +01:00
Tomasz Kapuściński
baa616050a
Some refactors to reduce extensive recompilation cascades
...
Renamed AlphaMode::OPAQUE to AlphaMode::NONE due to clash with preprocessor define
Moved Gfx::EngineTriangle to a separate file
2022-02-26 02:39:13 +01:00
Tomasz Kapuściński
e839f0dec7
Extended Material structure with PBR material attributes and added some of them to object renderer
...
Moved PBR lighting calculations to a separate shader source file
Removed some unused stuff
2022-02-26 01:16:36 +01:00
Tomasz Kapuściński
3168bf4350
Small cleanup
2022-02-25 21:07:01 +01:00
Mateusz Przybył
6aebf60300
Merge pull request #1487 from pestoffne/fix/editor-input-utf8
...
Fixed input of long UTF-8 symbols in editor (#1423 )
2022-02-25 17:09:27 +01:00
Evgeny Pestov
d9e26c2516
Use std::invalid_argument in Utf8CharSizeAt
2022-02-14 18:23:44 +07:00
Tomasz Kapuściński
c378009128
Feature-breaking refactors
...
* Partially filled Material structure, currently only base attributes
* Removed recoloring of textures and team variants
* Removed one base object tier in engine structures
* Removed EngineRenderState
* Rewritten some code to better coding style
2022-02-13 00:03:46 +01:00
tomangelo
951db17d53
Merge pull request #1488 from colobot/dev-refactor-fonts-cache
...
Refactor fonts reloading
2022-02-07 15:24:10 +01:00
Tomasz Kapuściński
0d612b9928
Optimized text rendering
2022-02-05 21:07:25 +01:00
Tomasz Kapuściński
aacc2d0596
Moved non-CRenderer-specific functionality back to CDevice and refactored some of the state change methods
...
Rewritten control rendering code to use improved way of sending geometry to GPU memory
2022-02-05 19:07:46 +01:00
Tomasz Kapuściński
074706e7ec
Removed Vertex and VertexCol structures
2022-02-04 01:22:27 +01:00
Tomasz Kapuściński
1631b9587f
Removed all DrawPrimitive*() methods from CDevice
2022-02-04 01:06:37 +01:00
Tomasz Kapuściński
750a470b9a
Minor color refactors, added DrawPrimitives, rewritten remaining effect rendering
2022-02-04 01:00:18 +01:00
Tomasz Kapuściński
37bdc8665f
Removed remaining rendering code from CGL33Device and fixed some issues
2022-02-03 20:53:53 +01:00
Tomasz Kapuściński
d16144eee4
Added missing include and removed debugging calls
2022-02-03 18:55:46 +01:00
Tomasz Kapuściński
1a190b7f6f
Partial refactor of UI rendering to improve performance and fix transparency issues
...
Disabled rendering via CDevice
2022-02-03 18:40:58 +01:00
Tomasz Kapuściński
0908e10ff6
Removed material, lighting, fog and shadowing code from CDevice
2022-02-02 19:09:38 +01:00
Tomasz Kapuściński
7d9badb542
Added UV transform and rewritten animated texture mapping code to use it
2022-02-02 18:13:21 +01:00
Tomasz Kapuściński
3bd4fee844
Merge branch 'dev' into dev-graphics-overhaul
...
# Conflicts:
# src/graphics/engine/camera.cpp
# src/object/auto/autonuclearplant.cpp
# src/object/auto/autopowerplant.cpp
# src/object/interface/powered_object.h
# src/object/motion/motionvehicle.cpp
# src/object/old_object.cpp
# src/object/old_object.h
# src/object/task/taskmanip.cpp
# src/object/task/taskmanip.h
# src/object/task/tasktake.cpp
2022-02-02 18:11:06 +01:00
tomangelo2
0003494c9e
Merge PR #1444
2022-01-29 17:16:57 +01:00
Tomasz Kapuściński
741d5c75ba
Refactored shadow framebuffer creation and binding
2022-01-24 23:16:22 +01:00
Tomasz Kapuściński
2ff722eee6
Refactored or removed some of the unused CDevice features
2022-01-24 22:29:39 +01:00
Tomasz Kapuściński
39b6621463
Renamed transparency to ghost mode
2022-01-24 21:57:56 +01:00
Tomasz Kapuściński
9a07c1d858
Refactored background, cloud and planet rendering, fixed shadow settings
2022-01-24 21:50:45 +01:00
Tomasz Kapuściński
e76c00c7f4
Fixed the Z coordinate not working in particle renderer
2022-01-22 01:50:10 +01:00
Tomasz Kapuściński
cba70fc912
Added DrawPrimitive() to CObjectRenderer and used it for rendering water
2022-01-22 00:57:00 +01:00
Tomasz Kapuściński
048393f448
Added CParticleRenderer and reimplemented particle rendering code to use it
2022-01-20 21:38:58 +01:00
Tomasz Kapuściński
710f448477
Partially fixed rendering of models in front of the interface (e.g. profile screen)
2022-01-19 23:14:03 +01:00
Tomasz Kapuściński
367dab9c5a
Cleanup in vertex structures
2022-01-19 22:22:59 +01:00
Tomasz Kapuściński
c280924c0e
Removed Gfx::VertexTex2
2022-01-19 21:33:53 +01:00
Tomasz Kapuściński
5dacb82b22
Partial refactor of model I/O
...
* Mostly removed legacy Gfx::Material usage
* Bake legacy diffuse color to vertex color
* Removed code that writes to old model formats
2022-01-19 19:46:39 +01:00
Tomasz Kapuściński
a54a59146d
Corrected transparency mode
2022-01-19 17:14:27 +01:00
Tomasz Kapuściński
a1ea633a3e
Refactored EngineTextureMapping into enum class
2022-01-18 20:14:07 +01:00
Tomasz Kapuściński
68a222e03a
Refactored EngineShadowType to enum class
2022-01-18 19:42:19 +01:00
Tomasz Kapuściński
67bd982969
Refactored EngineTriangleType into enum class
2022-01-18 19:29:36 +01:00
Tomasz Kapuściński
754684bfe9
Refactored MatrixVectorMultiply(), added TransformDivide() for cases where perspective divide is needed
2022-01-05 19:22:57 +01:00
Tomasz Kapuściński
9c37f6cbd5
Fully refactored Math::Matrix, removed matrix.h and moved remaining functions to other files
2022-01-05 19:12:35 +01:00
Tomasz Kapuściński
208f142cd2
Made Math::Matrix an alias to glm::mat4, partial refactors
2022-01-05 00:35:41 +01:00
Tomasz Kapuściński
0bba168f94
Removed vector.h, refactored redundant functions and moved remaining ones to func.h
2022-01-04 20:43:36 +01:00
Tomasz Kapuściński
db3b1d74d1
Refactored unnecessary Normalize, DotProduct, CrossProduct and Clamp functions
2022-01-04 02:10:36 +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
3fabdad1fe
Refactored Math::Point in CSettings, CParticle, CPyro, CInterface, CMainUserInterface and CScreen
2021-12-24 03:45:59 +01:00