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
This commit is contained in:
Jesse Talavera-Greenberg
2023-11-25 12:32:09 -05:00
committed by GitHub
parent 651b0f680c
commit 346dd4006e
178 changed files with 529 additions and 268 deletions

View File

@ -6,6 +6,7 @@
#include <vector>
namespace GL {
using namespace melonDS;
class Context
{
public:

View File

@ -13,6 +13,7 @@ struct NSView;
namespace GL {
using namespace melonDS;
class ContextAGL final : public Context
{
public:

View File

@ -3,6 +3,7 @@
#include "../log.h"
#include "../scoped_guard.h"
#include "loader.h"
using namespace melonDS;
Log_SetChannel(GL::ContextWGL);
// TODO: get rid of this

View File

@ -4,6 +4,7 @@
#include <X11/Xutil.h>
namespace GL {
using namespace melonDS;
class X11Window
{
public:

View File

@ -28,8 +28,8 @@ struct WindowInfo
Type type = Type::Surfaceless;
void* display_connection = nullptr;
void* window_handle = nullptr;
u32 surface_width = 0;
u32 surface_height = 0;
melonDS::u32 surface_width = 0;
melonDS::u32 surface_height = 0;
float surface_refresh_rate = 0.0f;
float surface_scale = 1.0f;
SurfaceFormat surface_format = SurfaceFormat::RGB8;