General: Tidy up includes

Alphabetizes includes and resolves quite a few instances of indirect
inclusions, making the requirements of several interfaces explicit. This
also trims out includes that aren't actually necessary (likely due to
changes in the API over time).
This commit is contained in:
Lioncash 2019-08-19 19:08:54 -04:00
parent fd503b4a11
commit baff71cdc3
84 changed files with 337 additions and 215 deletions

View File

@ -1,8 +1,11 @@
#pragma once
#include <boo/boo.hpp>
#include <mutex>
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <vector>
#include "boo/IWindow.hpp"
#include "nxstl/condition_variable"
namespace boo {

View File

@ -1,11 +1,12 @@
#pragma once
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "IWindow.hpp"
#include "inputdev/DeviceFinder.hpp"
#include "boo/IWindow.hpp"
#include "boo/System.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
namespace boo {
class IApplication;

View File

@ -1,7 +1,7 @@
#pragma once
#include <memory>
#include <cstdint>
#include <memory>
namespace boo {
struct IGraphicsCommandQueue;

View File

@ -1,10 +1,11 @@
#pragma once
#include "System.hpp"
#include <memory>
#include <algorithm>
#include <memory>
#include <cstring>
#include "boo/System.hpp"
#undef min
#undef max

View File

@ -1,6 +1,6 @@
#pragma once
#include "IApplication.hpp"
#include "boo/IApplication.hpp"
namespace boo {

View File

@ -1,12 +1,16 @@
#pragma once
#include "IAudioVoice.hpp"
#include "IAudioSubmix.hpp"
#include "IMIDIPort.hpp"
#include "boo/BooObject.hpp"
#include <cstddef>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "boo/BooObject.hpp"
#include "boo/audiodev/IAudioSubmix.hpp"
#include "boo/audiodev/IAudioVoice.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
namespace boo {
struct IAudioVoiceEngine;

View File

@ -1,9 +1,10 @@
#pragma once
#include <string>
#include <functional>
#include <vector>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
namespace boo {
struct IAudioVoiceEngine;

View File

@ -1,6 +1,6 @@
#pragma once
#include <cstdlib>
#include <cstddef>
#include <cstdint>
namespace boo {

View File

@ -1,11 +1,9 @@
#pragma once
#include "boo/audiodev/IMIDIReader.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
#include <functional>
#include <vector>
namespace boo {
class IMIDIReader;
class MIDIDecoder {
IMIDIReader& m_out;

View File

@ -1,7 +1,6 @@
#pragma once
#include "boo/audiodev/IMIDIReader.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
namespace boo {

View File

@ -1,5 +1,6 @@
#pragma once
#include "DeferredWindowEvents.hpp"
#include "IApplication.hpp"
#include "IWindow.hpp"
#include "inputdev/DeviceFinder.hpp"
@ -9,4 +10,3 @@
#include "inputdev/NintendoPowerA.hpp"
#include "graphicsdev/IGraphicsCommandQueue.hpp"
#include "graphicsdev/IGraphicsDataFactory.hpp"
#include "DeferredWindowEvents.hpp"

View File

@ -2,12 +2,12 @@
#if _WIN32
#include "IGraphicsDataFactory.hpp"
#include "IGraphicsCommandQueue.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/System.hpp"
#include <cstddef>
#include <vector>
#include <unordered_set>
#include "boo/BooObject.hpp"
#include "boo/System.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
using pD3DCreateBlob = HRESULT(WINAPI*)(SIZE_T Size, ID3DBlob** ppBlob);
extern pD3DCreateBlob D3DCreateBlobPROC;

View File

@ -1,10 +1,11 @@
#pragma once
#if BOO_HAS_GL
#include "IGraphicsDataFactory.hpp"
#include "IGraphicsCommandQueue.hpp"
#include "boo/IGraphicsContext.hpp"
#include "GLSLMacros.hpp"
#include <cstdint>
#include "boo/BooObject.hpp"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
namespace boo {
struct BaseGraphicsData;

View File

@ -1,9 +1,12 @@
#pragma once
#include "IGraphicsDataFactory.hpp"
#include "boo/IWindow.hpp"
#include <functional>
#include <array>
#include <cstddef>
#include <functional>
#include "boo/BooObject.hpp"
#include "boo/IWindow.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
namespace boo {

View File

@ -1,12 +1,13 @@
#pragma once
#include <memory>
#include <functional>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <initializer_list>
#include <vector>
#include "boo/System.hpp"
#include "boo/ThreadLocalPtr.hpp"
#include "boo/BooObject.hpp"
#include "boo/System.hpp"
#ifdef __SWITCH__
#include <ctype.h>

View File

@ -2,9 +2,11 @@
#ifdef __APPLE__
#if BOO_HAS_METAL
#include "IGraphicsDataFactory.hpp"
#include "IGraphicsCommandQueue.hpp"
#include "boo/BooObject.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/System.hpp"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
namespace boo {
struct BaseGraphicsData;

View File

@ -1,9 +1,12 @@
#pragma once
#if BOO_HAS_NX
#include "IGraphicsDataFactory.hpp"
#include "IGraphicsCommandQueue.hpp"
#include "nx_compiler.hpp"
#include <unordered_map>
#include "boo/BooObject.hpp"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
#include "boo/graphicsdev/nx_compiler.hpp"
#include <switch/nvidia/fence.h>

View File

@ -1,15 +1,15 @@
#pragma once
#if BOO_HAS_VULKAN
#include "IGraphicsDataFactory.hpp"
#include "IGraphicsCommandQueue.hpp"
#include "boo/IGraphicsContext.hpp"
#include "GLSLMacros.hpp"
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <mutex>
#include <queue>
#include <unordered_map>
#include <vector>
#include "boo/BooObject.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/System.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
#include "boo/graphicsdev/VulkanDispatchTable.hpp"
/* Forward-declare handle type for Vulkan Memory Allocator */

View File

@ -1,11 +1,12 @@
#pragma once
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <cstdio>
#include <cstdint>
#include <memory>
#include <vector>
#include <mutex>
#include <vector>
#include "nxstl/mutex"
#include "boo/System.hpp"

View File

@ -4,6 +4,7 @@
#include <mutex>
#include <string>
#include <unordered_set>
#include "boo/inputdev/DeviceSignature.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/IHIDListener.hpp"

View File

@ -1,10 +1,11 @@
#pragma once
#include <vector>
#include <cstdint>
#include <functional>
#include <typeindex>
#include <memory>
#include <string>
#include <typeindex>
#include <vector>
namespace boo {

View File

@ -1,8 +1,10 @@
#pragma once
#include <memory>
#include <string>
#include "DeviceBase.hpp"
#include "DeviceSignature.hpp"
#include "boo/inputdev/DeviceBase.hpp"
#include "boo/inputdev/DeviceSignature.hpp"
namespace boo {

View File

@ -1,8 +1,9 @@
#pragma once
#include <cstdint>
#include "DeviceBase.hpp"
#include "../System.hpp"
#include "boo/System.hpp"
#include "boo/inputdev/DeviceBase.hpp"
namespace boo {

View File

@ -1,8 +1,9 @@
#pragma once
#include <cstdint>
#include <type_traits>
#include "DeviceBase.hpp"
#include "boo/System.hpp"
#include "boo/inputdev/DeviceBase.hpp"
namespace boo {

View File

@ -1,9 +1,9 @@
#pragma once
#include "DeviceBase.hpp"
#include "HIDParser.hpp"
#include <map>
#include <mutex>
#include <functional>
#include "boo/inputdev/DeviceBase.hpp"
#include "boo/inputdev/HIDParser.hpp"
namespace boo {

View File

@ -1,10 +1,14 @@
#pragma once
#include "boo/System.hpp"
#include <vector>
#include <stack>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <stack>
#include <utility>
#include <vector>
#include "boo/System.hpp"
#if _WIN32
#include <hidsdi.h>

View File

@ -1,8 +1,11 @@
#pragma once
#include <unordered_map>
#include <memory>
#include <mutex>
#include "DeviceToken.hpp"
#include <unordered_map>
#include <utility>
#include "boo/inputdev/DeviceToken.hpp"
namespace boo {
class DeviceFinder;

View File

@ -1,8 +1,10 @@
#pragma once
#include "DeviceBase.hpp"
#include "DeviceSignature.hpp"
#include <cstdint>
#include "boo/System.hpp"
#include "boo/inputdev/DeviceBase.hpp"
#include "boo/inputdev/DeviceSignature.hpp"
namespace boo {

View File

@ -1,8 +1,10 @@
#pragma once
#include "boo/BooObject.hpp"
#include <cstddef>
#include <iterator>
#include "boo/BooObject.hpp"
namespace boo {
/** Linked-list iterator shareable by ListNode types. */

View File

@ -1,6 +1,7 @@
#include "AudioVoiceEngine.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include "boo/IApplication.hpp"
#include "../CFPointer.hpp"
#include "lib/CFPointer.hpp"
#include <AudioToolbox/AudioToolbox.h>
#include <CoreMIDI/CoreMIDI.h>

View File

@ -1,5 +1,5 @@
#include "AudioMatrix.hpp"
#include "AudioVoiceEngine.hpp"
#include "lib/audiodev/AudioMatrix.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <cstring>
namespace boo {

View File

@ -1,10 +1,11 @@
#pragma once
#include "boo/audiodev/IAudioVoice.hpp"
#include <vector>
#include <cstdint>
#include <limits.h>
#include <cfloat>
#include <climits>
#include <cstddef>
#include <cstdint>
#include "boo/audiodev/IAudioVoice.hpp"
#if __SSE__
#include <immintrin.h>

View File

@ -1,6 +1,5 @@
#include "AudioMatrix.hpp"
#include "AudioVoiceEngine.hpp"
#include <cstring>
#include "lib/audiodev/AudioMatrix.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <immintrin.h>

View File

@ -1,7 +1,7 @@
#include "AudioSubmix.hpp"
#include "AudioVoiceEngine.hpp"
#include "AudioVoice.hpp"
#include <cstring>
#include "lib/audiodev/AudioSubmix.hpp"
#include "lib/audiodev/AudioVoice.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <algorithm>
#undef min

View File

@ -1,12 +1,15 @@
#pragma once
#include "boo/audiodev/IAudioSubmix.hpp"
#include <array>
#include <cstddef>
#include <cstdint>
#include <list>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "Common.hpp"
#include "boo/audiodev/IAudioSubmix.hpp"
#include "lib/audiodev/Common.hpp"
#if __SSE__
#include <immintrin.h>

View File

@ -1,12 +1,14 @@
#pragma once
#include <soxr.h>
#include <mutex>
#include <unordered_map>
#include "boo/audiodev/IAudioVoice.hpp"
#include "AudioMatrix.hpp"
#include "AudioVoiceEngine.hpp"
#include "Common.hpp"
#include "lib/audiodev/AudioMatrix.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include "lib/audiodev/Common.hpp"
#include <soxr.h>
struct AudioUnitVoiceEngine;
struct VSTVoiceEngine;

View File

@ -1,5 +1,7 @@
#include "AudioVoiceEngine.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <cassert>
#include <cstring>
namespace boo {

View File

@ -1,12 +1,18 @@
#pragma once
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "LtRtProcessing.hpp"
#include "Common.hpp"
#include "AudioVoice.hpp"
#include "AudioSubmix.hpp"
#include <functional>
#include <cstddef>
#include <cstdint>
#include <list>
#include <memory>
#include <mutex>
#include <vector>
#include "boo/BooObject.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "lib/audiodev/AudioSubmix.hpp"
#include "lib/audiodev/AudioVoice.hpp"
#include "lib/audiodev/Common.hpp"
#include "lib/audiodev/LtRtProcessing.hpp"
namespace boo {

View File

@ -1,8 +1,8 @@
#pragma once
#include <soxr.h>
#include "../Common.hpp"
#include "boo/audiodev/IAudioVoice.hpp"
#include "lib/Common.hpp"
namespace boo {

View File

@ -1,11 +1,13 @@
#pragma once
#include "AudioVoiceEngine.hpp"
#include "logvisor/logvisor.hpp"
#include <csignal>
#include <thread>
#include <unordered_map>
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <alsa/asoundlib.h>
#include <signal.h>
#include <logvisor/logvisor.hpp>
namespace boo {
extern logvisor::Module ALSALog;

View File

@ -1,9 +1,11 @@
#pragma once
#include <cstdint>
#include <memory>
#include "boo/System.hpp"
#include "boo/audiodev/IAudioVoice.hpp"
#include "Common.hpp"
#include <memory>
#include "lib/audiodev/Common.hpp"
#if INTEL_IPP
#include "ipp.h"

View File

@ -1,4 +1,5 @@
#include "MIDICommon.hpp"
#include "lib/audiodev/MIDICommon.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
namespace boo {

View File

@ -1,8 +1,11 @@
#include "boo/audiodev/MIDIDecoder.hpp"
#include "MIDICommon.hpp"
#include <memory>
#include <algorithm>
#include "boo/audiodev/IMIDIReader.hpp"
#include "lib/audiodev/MIDICommon.hpp"
namespace boo {
constexpr uint8_t clamp7(uint8_t val) { return std::max(0, std::min(127, int(val))); }

View File

@ -1,5 +1,7 @@
#include "boo/audiodev/MIDIEncoder.hpp"
#include "MIDICommon.hpp"
#include "boo/audiodev/IMIDIPort.hpp"
#include "lib/audiodev/MIDICommon.hpp"
namespace boo {

View File

@ -1,8 +1,9 @@
#include "AudioVoiceEngine.hpp"
#include "logvisor/logvisor.hpp"
#include "boo/boo.hpp"
#include "LinuxMidi.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include "boo/boo.hpp"
#include "lib/audiodev/LinuxMidi.hpp"
#include <logvisor/logvisor.hpp>
#include <pulse/pulseaudio.h>
#include <unistd.h>

View File

@ -1,14 +1,16 @@
#include "../win/Win32Common.hpp"
#include "AudioVoiceEngine.hpp"
#include "logvisor/logvisor.hpp"
#include "lib/win/Win32Common.hpp"
#include <iterator>
#include "boo/IApplication.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <Mmdeviceapi.h>
#include <Audioclient.h>
#include <mmsystem.h>
#include <Functiondiscoverykeys_devpkey.h>
#include <iterator>
#include <logvisor/logvisor.hpp>
#ifdef TE_VIRTUAL_MIDI
#include <teVirtualMIDI.h>

View File

@ -1,6 +1,9 @@
#include "AudioVoiceEngine.hpp"
#include "logvisor/logvisor.hpp"
#include "lib/audiodev/AudioVoiceEngine.hpp"
#include <cstdio>
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include <logvisor/logvisor.hpp>
namespace boo {

View File

@ -14,7 +14,7 @@
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "../Common.hpp"
#include "lib/Common.hpp"
namespace boo {

View File

@ -1,12 +1,12 @@
#include "../win/Win32Common.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "boo/IGraphicsContext.hpp"
#include "Common.hpp"
#include "lib/graphicsdev/Common.hpp"
#include <algorithm>
#include <atomic>
#include <condition_variable>
#include <forward_list>
#include <mutex>
#include <thread>
#include <vector>

View File

@ -1,7 +1,10 @@
#include "boo/graphicsdev/GL.hpp"
#include "boo/graphicsdev/glew.h"
#include "boo/graphicsdev/GLSLMacros.hpp"
#include "boo/IApplication.hpp"
#include "Common.hpp"
#include "boo/IGraphicsContext.hpp"
#include "lib/graphicsdev/Common.hpp"
#include <array>
#include <condition_variable>
@ -15,7 +18,7 @@
#include <logvisor/logvisor.hpp>
#if _WIN32
#include "../win/WinCommon.hpp"
#include "lib/win/WinCommon.hpp"
#endif
#undef min

View File

@ -1,5 +1,5 @@
#include "boo/graphicsdev/glxew.h"
#include "logvisor/logvisor.hpp"
#include <logvisor/logvisor.hpp>
namespace boo {
static logvisor::Module Log("boo::GLX");

View File

@ -1,16 +1,17 @@
#include "../mac/CocoaCommon.hpp"
#include "lib/mac/CocoaCommon.hpp"
#if BOO_HAS_METAL
#include "logvisor/logvisor.hpp"
#include "boo/IApplication.hpp"
#include "boo/graphicsdev/Metal.hpp"
#include "boo/IGraphicsContext.hpp"
#include "Common.hpp"
#include <vector>
#include "boo/graphicsdev/Metal.hpp"
#include "lib/graphicsdev/Common.hpp"
#include <unordered_map>
#include <unordered_set>
#include "xxhash/xxhash.h"
#include <vector>
#include <logvisor/logvisor.hpp>
#if !__has_feature(objc_arc)
#error ARC Required

View File

@ -1,15 +1,18 @@
#include "boo/graphicsdev/Vulkan.hpp"
#include "boo/IGraphicsContext.hpp"
#include <vector>
#include <array>
#include <cmath>
#include <vector>
#include <glslang/Public/ShaderLang.h>
#include <StandAlone/ResourceLimits.h>
#include <SPIRV/GlslangToSpv.h>
#include <SPIRV/disassemble.h>
#include "boo/IGraphicsContext.hpp"
#include "boo/graphicsdev/GLSLMacros.hpp"
#include "Common.hpp"
#include "xxhash/xxhash.h"
#include "boo/graphicsdev/IGraphicsCommandQueue.hpp"
#include "lib/graphicsdev/Common.hpp"
#define AMD_PAL_HACK 1
@ -17,7 +20,7 @@
#define VMA_STATIC_VULKAN_FUNCTIONS 0
#include "vk_mem_alloc.h"
#include "logvisor/logvisor.hpp"
#include <logvisor/logvisor.hpp>
#define BOO_VK_MAX_DESCRIPTOR_SETS 65536

View File

@ -1,9 +1,13 @@
#include "logvisor/logvisor.hpp"
#include "boo/graphicsdev/NX.hpp"
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstring>
#include "boo/IGraphicsContext.hpp"
#include "boo/graphicsdev/GLSLMacros.hpp"
#include "../Common.hpp"
#include "xxhash/xxhash.h"
#include "lib/graphicsdev/Common.hpp"
#include "main/shaderobj.h"
#include "st_program.h"
@ -19,6 +23,9 @@ extern "C" {
#include "gallium/winsys/nouveau/switch/nouveau_switch_public.h"
}
#include <logvisor/logvisor.hpp>
#include <xxhash/xxhash.h>
#include <switch.h>
namespace boo {

View File

@ -1,7 +1,6 @@
#include "boo/inputdev/DeviceBase.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#include "IHIDDevice.hpp"
#include <cstdarg>
#include "lib/inputdev/IHIDDevice.hpp"
namespace boo {

View File

@ -1,7 +1,7 @@
#include "boo/inputdev/DeviceSignature.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/GenericPad.hpp"
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
namespace boo {

View File

@ -1,5 +1,6 @@
#include "boo/inputdev/DolphinSmashAdapter.hpp"
#include "boo/inputdev/DeviceSignature.hpp"
#include <cstdio>
#include <cstring>

View File

@ -1,10 +1,11 @@
#include "boo/inputdev/DualshockPad.hpp"
#include "boo/inputdev/DeviceSignature.hpp"
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <cstdio>
#include <memory.h>
#include <cstring>
#include <iostream>
#ifdef _MSC_VER
inline uint16_t bswap16(uint16_t val) { return _byteswap_ushort(val); }

View File

@ -1,9 +1,12 @@
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
#include <thread>
#include "lib/inputdev/IOKitPointer.hpp"
#include <IOKit/hid/IOHIDLib.h>
#include <IOKit/hid/IOHIDDevicePlugin.h>
#include <IOKit/usb/IOUSBLib.h>
#include "IOKitPointer.hpp"
#include <thread>
namespace boo {

View File

@ -1,4 +1,4 @@
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
namespace boo {

View File

@ -1,5 +1,7 @@
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp"

View File

@ -1,22 +1,24 @@
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
#include <condition_variable>
#include <cstdio>
#include <cstring>
#include <mutex>
#include <thread>
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp"
#include <thread>
#include <mutex>
#include <condition_variable>
#include "boo/inputdev/HIDParser.hpp"
#include <cstdio>
#include <fcntl.h>
#include <libudev.h>
#include <stropts.h>
#include <linux/usb/ch9.h>
#include <linux/usbdevice_fs.h>
#include <linux/input.h>
#include <linux/hidraw.h>
#include <fcntl.h>
#include <stropts.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <cstring>
#include "boo/inputdev/HIDParser.hpp"
namespace boo {

View File

@ -1,5 +1,6 @@
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
#include "IHIDDevice.hpp"
#include "lib/inputdev/IHIDDevice.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp"

View File

@ -1,4 +1,5 @@
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
#include "boo/inputdev/IHIDListener.hpp"
#include "boo/inputdev/DeviceFinder.hpp"

View File

@ -1,10 +1,13 @@
#define _CRT_SECURE_NO_WARNINGS 1 /* STFU MSVC */
#include "boo/inputdev/IHIDListener.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
#include "boo/inputdev/XInputPad.hpp"
#include <cstring>
#include <thread>
#include "boo/inputdev/DeviceFinder.hpp"
#include "boo/inputdev/XInputPad.hpp"
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif

View File

@ -1,6 +1,8 @@
#include "boo/inputdev/HIDParser.hpp"
#include <map>
#include <algorithm>
#include <map>
#include <type_traits>
#undef min
#undef max

View File

@ -1,9 +1,10 @@
#pragma once
#include "boo/inputdev/DeviceToken.hpp"
#include "boo/inputdev/DeviceBase.hpp"
#include <memory>
#include "boo/inputdev/DeviceBase.hpp"
#include "boo/inputdev/DeviceToken.hpp"
#if _WIN32
#include <hidsdi.h>
#endif

View File

@ -1,6 +1,6 @@
#pragma once
#include "../CFPointer.hpp"
#include "lib/CFPointer.hpp"
#include <IOKit/IOTypes.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOCFPlugIn.h>

View File

@ -1,6 +1,9 @@
#include "boo/inputdev/NintendoPowerA.hpp"
#include <cstring>
#include "boo/inputdev/DeviceSignature.hpp"
#include <memory.h>
namespace boo {
NintendoPowerA::NintendoPowerA(DeviceToken* token)
: TDeviceBase<INintendoPowerACallback>(dev_typeid(NintendoPowerA), token) {}

View File

@ -1,12 +1,13 @@
#include <AppKit/AppKit.h>
#include <thread>
#include "boo/IApplication.hpp"
#include "boo/graphicsdev/Metal.hpp"
#include "CocoaCommon.hpp"
#include "../Common.hpp"
#include "lib/Common.hpp"
#include "lib/mac/CocoaCommon.hpp"
#include "logvisor/logvisor.hpp"
#include <logvisor/logvisor.hpp>
#if !__has_feature(objc_arc)
#error ARC Required

View File

@ -9,8 +9,9 @@
#include <Metal/Metal.h>
#include <QuartzCore/CAMetalLayer.h>
#include <unordered_map>
#include <mutex>
#include <unordered_map>
namespace boo {
class IWindow;

View File

@ -1,10 +1,10 @@
#include "boo/graphicsdev/Metal.hpp"
#include "CocoaCommon.hpp"
#include "boo/IApplication.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/IWindow.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "lib/mac/CocoaCommon.hpp"
#include <condition_variable>
#include <memory>

View File

@ -1,8 +1,9 @@
#include "boo/IWindow.hpp"
#include "boo/IGraphicsContext.hpp"
#include "logvisor/logvisor.hpp"
#include "boo/graphicsdev/NX.hpp"
#include <logvisor/logvisor.hpp>
#include <switch.h>
namespace boo {

View File

@ -1,4 +1,4 @@
#include "UWPCommon.hpp"
#include "lib/win/UWPCommon.hpp"
using namespace Windows::Foundation;
using namespace Windows::UI::Core;
@ -12,12 +12,15 @@ using namespace Platform;
#define D3D11_CREATE_DEVICE_FLAGS 0
#endif
#include "boo/System.hpp"
#include <cstdlib>
#include "boo/IApplication.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "logvisor/logvisor.hpp"
#include "boo/System.hpp"
#include "boo/UWPViewProvider.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
#include <logvisor/logvisor.hpp>
#if _WIN32_WINNT_WIN10
PFN_D3D12_SERIALIZE_ROOT_SIGNATURE D3D12SerializeRootSignaturePROC = nullptr;

View File

@ -1,4 +1,5 @@
#include "Win32Common.hpp"
#include "lib/win/Win32Common.hpp"
#include <shellapi.h>
#include <initguid.h>
#include <Usbiodef.h>
@ -15,19 +16,21 @@ PFN_GetScaleFactorForMonitor MyGetScaleFactorForMonitor = nullptr;
#define D3D11_CREATE_DEVICE_FLAGS 0
#endif
#include "boo/System.hpp"
#include <condition_variable>
#include <cstdlib>
#include <mutex>
#include "boo/IApplication.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
#include "boo/System.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "logvisor/logvisor.hpp"
#include "boo/inputdev/DeviceFinder.hpp"
#include <logvisor/logvisor.hpp>
#if BOO_HAS_VULKAN
#include "boo/graphicsdev/Vulkan.hpp"
#endif
#include <condition_variable>
#include <mutex>
DWORD g_mainThreadId = 0;
std::mutex g_nwmt;
std::condition_variable g_nwcv;

View File

@ -1,6 +1,6 @@
#pragma once
#include "WinCommon.hpp"
#include "lib/win/WinCommon.hpp"
struct Boo3DAppContextUWP : Boo3DAppContext {
bool isFullscreen(const boo::IWindow* window) {

View File

@ -1,6 +1,10 @@
#pragma once
#include <cstddef>
#include <cstdint>
#include <string>
#include <unordered_map>
#include "boo/IWindow.hpp"
namespace boo {

View File

@ -1,11 +1,12 @@
#include "UWPCommon.hpp"
#include "boo/IApplication.hpp"
#include "boo/IWindow.hpp"
#include "boo/IGraphicsContext.hpp"
#include "logvisor/logvisor.hpp"
#include "lib/win/UWPCommon.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "boo/IApplication.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/IWindow.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include <logvisor/logvisor.hpp>
using namespace Windows::UI;
using namespace Windows::UI::Core;

View File

@ -1,15 +1,16 @@
#include "Win32Common.hpp"
#include <Windowsx.h>
#include "boo/IApplication.hpp"
#include "boo/IWindow.hpp"
#include "boo/IGraphicsContext.hpp"
#include "logvisor/logvisor.hpp"
#include "lib/win/Win32Common.hpp"
#include <Windowsx.h>
#include "boo/IApplication.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/IWindow.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "boo/graphicsdev/D3D.hpp"
#include "boo/graphicsdev/GL.hpp"
#include "boo/graphicsdev/glew.h"
#include "boo/graphicsdev/wglew.h"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#if BOO_HAS_VULKAN
#include "boo/graphicsdev/Vulkan.hpp"
@ -19,6 +20,8 @@
#include <dxgi1_5.h>
#endif
#include <logvisor/logvisor.hpp>
static const int ContextAttribs[] = {WGL_CONTEXT_MAJOR_VERSION_ARB, 3, WGL_CONTEXT_MINOR_VERSION_ARB, 3,
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
// WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_DEBUG_BIT_ARB,

View File

@ -4,12 +4,15 @@
#define APPLICATION_UNIX_CPP
#include <dbus/dbus.h>
#include <cstdint>
#include <unistd.h>
#include "logvisor/logvisor.hpp"
#include <cstdlib>
#include "boo/IApplication.hpp"
#include <dbus/dbus.h>
#include <logvisor/logvisor.hpp>
#include <unistd.h>
namespace boo {
static logvisor::Module Log("boo::ApplicationUnix");
IApplication* APP = nullptr;

View File

@ -4,7 +4,7 @@
#include "boo/IApplication.hpp"
#include "boo/graphicsdev/GL.hpp"
#include "../Common.hpp"
#include "lib/Common.hpp"
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
@ -16,6 +16,7 @@
#include <dbus/dbus.h>
DBusConnection* RegisterDBus(const char* appName, bool& isFirst);
#include <clocale>
#include <condition_variable>
#include <csignal>
#include <locale>

View File

@ -1,4 +1,5 @@
#include "boo/IWindow.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"

View File

@ -1,10 +1,11 @@
#include "boo/IWindow.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/IApplication.hpp"
#include "boo/graphicsdev/GL.hpp"
#include "boo/IGraphicsContext.hpp"
#include "boo/audiodev/IAudioVoiceEngine.hpp"
#include "boo/graphicsdev/GL.hpp"
#include "boo/graphicsdev/glew.h"
#include "../Common.hpp"
#include "lib/Common.hpp"
#if BOO_HAS_VULKAN
#include "boo/graphicsdev/Vulkan.hpp"
@ -35,7 +36,7 @@
#include <X11/extensions/Xrandr.h>
#include <logvisor/logvisor.hpp>
#include "XlibCommon.hpp"
#include "lib/x11/XlibCommon.hpp"
#define REF_DPMM 3.78138
#define FS_ATOM "_NET_WM_STATE_FULLSCREEN"

View File

@ -1,14 +1,15 @@
#include <cstdio>
#include <cmath>
#include <boo/boo.hpp>
#include <boo/graphicsdev/GL.hpp>
#include <boo/graphicsdev/Vulkan.hpp>
#include <boo/graphicsdev/D3D.hpp>
#include <boo/graphicsdev/GL.hpp>
#include <boo/graphicsdev/GLSLMacros.hpp>
#include <boo/graphicsdev/Metal.hpp>
#include <thread>
#include <mutex>
#include <boo/graphicsdev/Vulkan.hpp>
#include <condition_variable>
#include "logvisor/logvisor.hpp"
#include <cstdio>
#include <thread>
#include <logvisor/logvisor.hpp>
namespace boo {