Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Font-alloc/free
- Loading branch information
Showing
67 changed files
with
1,596 additions
and
975 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2014 Dolphin Emulator Project | ||
// Licensed under GPLv2+ | ||
// Refer to the license.txt file included. | ||
|
||
#include "ppsspp_config.h" | ||
#if PPSSPP_PLATFORM(SWITCH) | ||
#include <switch.h> | ||
#include "Common/Log.h" | ||
#include "Common/GL/GLInterface/EGLSwitch.h" | ||
|
||
EGLDisplay cInterfaceEGLSwitch::OpenDisplay() { | ||
return eglGetDisplay(EGL_DEFAULT_DISPLAY); | ||
} | ||
|
||
EGLNativeWindowType cInterfaceEGLSwitch::InitializePlatform(EGLNativeWindowType host_window, EGLConfig config) { | ||
return nwindowGetDefault(); | ||
} | ||
|
||
void cInterfaceEGLSwitch::ShutdownPlatform() { | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2014 Dolphin Emulator Project | ||
// Licensed under GPLv2+ | ||
// Refer to the license.txt file included. | ||
|
||
#pragma once | ||
|
||
#include "Common/GL/GLInterface/EGL.h" | ||
|
||
class cInterfaceEGLSwitch : public cInterfaceEGL { | ||
public: | ||
cInterfaceEGLSwitch() {} | ||
protected: | ||
EGLDisplay OpenDisplay() override; | ||
EGLNativeWindowType InitializePlatform(EGLNativeWindowType host_window, EGLConfig config) override; | ||
void ShutdownPlatform() override; | ||
void OverrideBackbufferDimensions(int internalWidth, int internalHeight) override { | ||
internalWidth_ = internalWidth; | ||
internalHeight_ = internalHeight; | ||
} | ||
|
||
private: | ||
int internalWidth_ = 0; | ||
int internalHeight_ = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.