diff options
| author | Jesse Talavera-Greenberg <jesse@jesse.tg> | 2023-11-25 12:32:09 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 18:32:09 +0100 | 
| commit | 346dd4006ea1283136095d5c43f602324a095092 (patch) | |
| tree | edf04631782bbfcdb48eac79b79aebb11b40f479 /src/GPU.cpp | |
| parent | 651b0f680c4531558990a5beb0e638968009dc51 (diff) | |
Move all core types into namespaces (#1886)
* Reorganize namespaces
- Most types are now moved into the `melonDS` namespace
- Only good chance to do this for a while, since a big refactor is next
* Fix the build
Diffstat (limited to 'src/GPU.cpp')
| -rw-r--r-- | src/GPU.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/src/GPU.cpp b/src/GPU.cpp index 5c67cfb..27dcbfb 100644 --- a/src/GPU.cpp +++ b/src/GPU.cpp @@ -26,6 +26,8 @@  #include "GPU3D_Soft.h"  #include "GPU3D_OpenGL.h" +namespace melonDS +{  using Platform::Log;  using Platform::LogLevel; @@ -33,8 +35,6 @@ using Platform::LogLevel;  #define HBLANK_CYCLES (48+(256*6))  #define FRAME_CYCLES  (LINE_CYCLES * 263) -namespace Melon -{  enum  {      LCD_StartHBlank = 0, @@ -64,7 +64,7 @@ enum                  VRAMDirty need to be reset for the respective VRAM bank.  */ -GPU::GPU(ARMJIT::ARMJIT& jit) noexcept : GPU2D_A(0, *this), GPU2D_B(1, *this), JIT(jit) +GPU::GPU(ARMJIT& jit) noexcept : GPU2D_A(0, *this), GPU2D_B(1, *this), JIT(jit)  {      NDS::RegisterEventFunc(NDS::Event_LCD, LCD_StartHBlank, MemberEventFunc(GPU, StartHBlank));      NDS::RegisterEventFunc(NDS::Event_LCD, LCD_StartScanline, MemberEventFunc(GPU, StartScanline)); @@ -319,21 +319,21 @@ void GPU::InitRenderer(int renderer) noexcept          {              // Fallback on software renderer              renderer = 0; -            GPU3D.SetCurrentRenderer(std::make_unique<GPU3D::SoftRenderer>(*this)); +            GPU3D.SetCurrentRenderer(std::make_unique<SoftRenderer>(*this));          } -        GPU3D.SetCurrentRenderer(GPU3D::GLRenderer::New(*this)); +        GPU3D.SetCurrentRenderer(GLRenderer::New(*this));          if (!GPU3D.GetCurrentRenderer())          {              // Fallback on software renderer              CurGLCompositor.reset();              renderer = 0; -            GPU3D.SetCurrentRenderer(std::make_unique<GPU3D::SoftRenderer>(*this)); +            GPU3D.SetCurrentRenderer(std::make_unique<SoftRenderer>(*this));          }      }      else  #endif      { -        GPU3D.SetCurrentRenderer(std::make_unique<GPU3D::SoftRenderer>(*this)); +        GPU3D.SetCurrentRenderer(std::make_unique<SoftRenderer>(*this));      }      Renderer = renderer; |