Replacing includes of windows headers with base/platform.h.

This commit is contained in:
Ben Vanik
2015-07-01 09:02:04 -07:00
parent 88d01e8375
commit dec0d12cc9
23 changed files with 66 additions and 54 deletions

View File

@@ -12,8 +12,7 @@
#include <memory>
#include "third_party/GL/glew.h"
#include "third_party/GL/wglew.h"
#include "xenia/ui/gl/gl.h"
namespace xe {
namespace ui {

View File

@@ -12,7 +12,7 @@
#include <unordered_map>
#include "xenia/ui/gl/gl_context.h"
#include "xenia/ui/gl/gl.h"
namespace xe {
namespace ui {

21
src/xenia/ui/gl/gl.h Normal file
View File

@@ -0,0 +1,21 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef XENIA_UI_GL_GL_H_
#define XENIA_UI_GL_GL_H_
#include "xenia/base/platform.h"
#include "third_party/GL/glew.h"
#include "third_party/GL/wglew.h"
extern "C" GLEWContext* glewGetContext();
extern "C" WGLEWContext* wglewGetContext();
#endif // XENIA_UI_GL_GL_H_

View File

@@ -14,15 +14,11 @@
#include <memory>
#include "third_party/GL/glew.h"
#include "third_party/GL/wglew.h"
#include "xenia/ui/gl/blitter.h"
#include "xenia/ui/gl/gl.h"
DECLARE_bool(thread_safe_gl);
extern "C" GLEWContext* glewGetContext();
extern "C" WGLEWContext* wglewGetContext();
namespace xe {
namespace ui {
namespace gl {

View File

@@ -10,9 +10,7 @@
#ifndef XENIA_UI_WIN32_WIN32_CONTROL_H_
#define XENIA_UI_WIN32_WIN32_CONTROL_H_
#include <windows.h>
#include <windowsx.h>
#include "xenia/base/platform.h"
#include "xenia/ui/control.h"
namespace xe {

View File

@@ -9,12 +9,7 @@
#include "xenia/ui/win32/win32_file_picker.h"
#include <windows.h>
#include <windowsx.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <shobjidl.h>
#include "xenia/base/platform.h"
#include "xenia/base/assert.h"
namespace xe {

View File

@@ -10,14 +10,12 @@
#ifndef XENIA_UI_WIN32_WIN32_LOOP_H_
#define XENIA_UI_WIN32_WIN32_LOOP_H_
#include <windows.h>
#include <windowsx.h>
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "xenia/base/platform.h"
#include "xenia/base/threading.h"
#include "xenia/ui/loop.h"

View File

@@ -10,9 +10,7 @@
#ifndef XENIA_UI_WIN32_WIN32_MENU_ITEM_H_
#define XENIA_UI_WIN32_WIN32_MENU_ITEM_H_
#include <windows.h>
#include <windowsx.h>
#include "xenia/base/platform.h"
#include "xenia/ui/menu_item.h"
namespace xe {

View File

@@ -10,9 +10,6 @@
#include "xenia/ui/win32/win32_window.h"
#include <cstring>
#include <dwmapi.h>
#include <tpcshrd.h>
#include <windowsx.h>
#include "xenia/base/logging.h"