mirror of https://github.com/mgba-emu/mgba.git
Feature: Move video-backend.c to a sensible place
This commit is contained in:
parent
727ba5b2f2
commit
5f6948351b
|
@ -747,11 +747,6 @@ elseif(BUILD_GLES2)
|
||||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libgles2")
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libgles2")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_EPOXY OR BUILD_GL OR BUILD_GLES2)
|
|
||||||
# This file should probably go somewhere else
|
|
||||||
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/video-backend.c)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WIN32 AND NOT (LIBMGBA_ONLY OR SKIP_LIBRARY OR USE_EPOXY))
|
if(WIN32 AND NOT (LIBMGBA_ONLY OR SKIP_LIBRARY OR USE_EPOXY))
|
||||||
message(FATAL_ERROR "Windows requires epoxy module!")
|
message(FATAL_ERROR "Windows requires epoxy module!")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -3,6 +3,7 @@ set(SOURCE_FILES
|
||||||
commandline.c
|
commandline.c
|
||||||
thread-proxy.c
|
thread-proxy.c
|
||||||
updater.c
|
updater.c
|
||||||
|
video-backend.c
|
||||||
video-logger.c)
|
video-logger.c)
|
||||||
|
|
||||||
set(GUI_FILES
|
set(GUI_FILES
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
#include "video-backend.h"
|
#include <mgba/feature/video-backend.h>
|
||||||
|
|
||||||
void VideoBackendGetFrame(const struct VideoBackend* v, struct mRectangle* frame) {
|
void VideoBackendGetFrame(const struct VideoBackend* v, struct mRectangle* frame) {
|
||||||
memset(frame, 0, sizeof(*frame));
|
memset(frame, 0, sizeof(*frame));
|
|
@ -21,7 +21,7 @@ CXX_GUARD_START
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform/video-backend.h"
|
#include <mgba/feature/video-backend.h>
|
||||||
|
|
||||||
struct mGLContext {
|
struct mGLContext {
|
||||||
struct VideoBackend d;
|
struct VideoBackend d;
|
||||||
|
|
|
@ -24,7 +24,7 @@ CXX_GUARD_START
|
||||||
#include <GLES2/gl2.h>
|
#include <GLES2/gl2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "platform/video-backend.h"
|
#include <mgba/feature/video-backend.h>
|
||||||
|
|
||||||
union mGLES2UniformValue {
|
union mGLES2UniformValue {
|
||||||
GLfloat f;
|
GLfloat f;
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include "CoreController.h"
|
#include "CoreController.h"
|
||||||
#include "VideoProxy.h"
|
#include "VideoProxy.h"
|
||||||
|
|
||||||
#include "platform/video-backend.h"
|
#include <mgba/feature/video-backend.h>
|
||||||
|
|
||||||
class QOpenGLPaintDevice;
|
class QOpenGLPaintDevice;
|
||||||
class QOpenGLWidget;
|
class QOpenGLWidget;
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
|
|
||||||
#include <mgba/core/version.h>
|
#include <mgba/core/version.h>
|
||||||
|
#include <mgba/feature/video-backend.h>
|
||||||
#include <mgba-util/vfs.h>
|
#include <mgba-util/vfs.h>
|
||||||
#include "platform/video-backend.h"
|
|
||||||
|
|
||||||
#if defined(BUILD_GL) || defined(BUILD_GLES2)
|
#if defined(BUILD_GL) || defined(BUILD_GLES2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue