mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 09:10:08 -06:00
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:

committed by
GitHub

parent
651b0f680c
commit
346dd4006e
@ -6,6 +6,7 @@
|
||||
#include <vector>
|
||||
|
||||
namespace GL {
|
||||
using namespace melonDS;
|
||||
class Context
|
||||
{
|
||||
public:
|
||||
|
@ -13,6 +13,7 @@ struct NSView;
|
||||
|
||||
namespace GL {
|
||||
|
||||
using namespace melonDS;
|
||||
class ContextAGL final : public Context
|
||||
{
|
||||
public:
|
||||
|
@ -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
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <X11/Xutil.h>
|
||||
|
||||
namespace GL {
|
||||
using namespace melonDS;
|
||||
class X11Window
|
||||
{
|
||||
public:
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user