Changeset 27111
- Timestamp:
- Oct 4, 2022, 10:25:39 PM (22 months ago)
- Location:
- ps/trunk/source
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/graphics/Canvas2D.cpp
r27110 r27111 24 24 #include "graphics/TextRenderer.h" 25 25 #include "graphics/TextureManager.h" 26 #include "gui/GUIMatrix.h"27 26 #include "maths/Rect.h" 28 27 #include "maths/Vector2D.h" … … 90 89 { 91 90 public: 92 Impl(Renderer::Backend::IDeviceCommandContext* deviceCommandContext) 93 : DeviceCommandContext(deviceCommandContext) 91 Impl( 92 const uint32_t widthInPixels, const uint32_t heightInPixels, const float scale, 93 Renderer::Backend::IDeviceCommandContext* deviceCommandContext) 94 : WidthInPixels(widthInPixels), HeightInPixels(heightInPixels), 95 Scale(scale), DeviceCommandContext(deviceCommandContext) 94 96 { 95 97 } … … 115 117 BindingSlots.tex = shader->GetBindingSlot(str_tex); 116 118 117 const CMatrix3D transform = Get DefaultGuiMatrix();119 const CMatrix3D transform = Get(); 118 120 DeviceCommandContext->SetUniform( 119 121 BindingSlots.transform, transform.AsFloatArray()); … … 128 130 Tech.reset(); 129 131 } 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 130 156 131 157 Renderer::Backend::IDeviceCommandContext* DeviceCommandContext = nullptr; … … 138 164 139 165 CCanvas2D::CCanvas2D( 166 140 167 Renderer::Backend::IDeviceCommandContext* deviceCommandContext) 141 : m(std::make_unique<Impl>( deviceCommandContext))168 : m(std::make_unique<Impl>(deviceCommandContext)) 142 169 { 143 170 … … 414 441 m->BindingSlots.grayscaleFactor, 0.0f); 415 442 416 textRenderer.Render(m->DeviceCommandContext, m->Tech->GetShader(), GetDefaultGuiMatrix());443 textRenderer.Render(m->DeviceCommandContext, m->Tech->GetShader(), ()); 417 444 } 418 445 -
ps/trunk/source/graphics/Canvas2D.h
r27109 r27111 36 36 { 37 37 public: 38 CCanvas2D(Renderer::Backend::IDeviceCommandContext* deviceCommandContext); 38 CCanvas2D( 39 const uint32_t widthInPixels, const uint32_t heightInPixels, const float scale, 40 Renderer::Backend::IDeviceCommandContext* deviceCommandContext); 39 41 ~CCanvas2D(); 40 42 -
ps/trunk/source/gui/GUIRenderer.cpp
r26365 r27111 24 24 #include "gui/CGUI.h" 25 25 #include "gui/CGUISprite.h" 26 #include "gui/GUIMatrix.h"27 26 #include "gui/SettingTypes/CGUIColor.h" 28 27 #include "i18n/L10n.h" -
ps/trunk/source/gui/ObjectTypes/CChart.cpp
r26479 r27111 21 21 22 22 #include "graphics/Canvas2D.h" 23 #include "gui/GUIMatrix.h"24 23 #include "gui/SettingTypes/CGUIList.h" 25 24 #include "gui/SettingTypes/CGUISeries.h" -
ps/trunk/source/ps/ProfileViewer.cpp
r26480 r27111 23 23 #include "graphics/FontMetrics.h" 24 24 #include "graphics/TextRenderer.h" 25 #include "gui/GUIMatrix.h"26 25 #include "lib/external_libraries/libsdl.h" 27 26 #include "maths/Size2D.h" -
ps/trunk/source/renderer/Renderer.cpp
r26920 r27111 492 492 void CRenderer::RenderFrame2D(const bool renderGUI, const bool renderLogger) 493 493 { 494 CCanvas2D canvas( m->deviceCommandContext.get());494 CCanvas2D canvas(m->deviceCommandContext.get()); 495 495 496 496 m->sceneRenderer.RenderTextOverlays(canvas); -
ps/trunk/source/renderer/ShadowMap.cpp
r26983 r27111 23 23 #include "graphics/LightEnv.h" 24 24 #include "graphics/ShaderManager.h" 25 #include "gui/GUIMatrix.h"26 25 #include "lib/bits.h" 27 26 #include "maths/BoundingBoxAligned.h" -
ps/trunk/source/tools/atlas/GameInterface/ActorViewer.cpp
r26850 r27111 44 44 #include "ps/GameSetup/Config.h" 45 45 #include "ps/ProfileViewer.h" 46 46 47 #include "renderer/Renderer.h" 47 48 #include "renderer/RenderingOptions.h" … … 62 63 #include "simulation2/helpers/Render.h" 63 64 65 66 64 67 struct ActorViewerImpl : public Scene 65 68 { … … 531 534 532 535 { 533 CCanvas2D canvas(g_ Renderer.GetDeviceCommandContext());536 CCanvas2D canvas(g_Renderer.GetDeviceCommandContext()); 534 537 g_Logger->Render(canvas); 535 538 g_ProfileViewer.RenderProfile(canvas);
Note:
See TracChangeset
for help on using the changeset viewer.