mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-16 08:27:10 +00:00
CMake integration and refactor
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
#ifndef CQTOPENGLWINDOW_HPP
|
||||
#define CQTOPENGLWINDOW_HPP
|
||||
|
||||
#include <QWindow>
|
||||
#include <QOpenGLFunctions>
|
||||
#include <ISurface.hpp>
|
||||
|
||||
class CQtOpenGLWindow : public QWindow, ISurface
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CQtOpenGLWindow(QWindow *parent = 0);
|
||||
CQtOpenGLWindow();
|
||||
|
||||
virtual void render();
|
||||
|
||||
virtual void initialize();
|
||||
|
||||
|
||||
public slots:
|
||||
void renderLater();
|
||||
void renderNow();
|
||||
|
||||
protected:
|
||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||
|
||||
void exposeEvent(QExposeEvent *event) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
bool m_update_pending;
|
||||
bool m_animating;
|
||||
|
||||
QOpenGLContext *m_context;
|
||||
};
|
||||
|
||||
#endif // CQTOPENGLWINDOW_HPP
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
#include <set>
|
||||
#include <mutex>
|
||||
#include <stdexcept>
|
||||
#include "CDeviceToken.hpp"
|
||||
#include "DeviceToken.hpp"
|
||||
#include "IHIDListener.hpp"
|
||||
#include "SDeviceSignature.hpp"
|
||||
#include "DeviceSignature.hpp"
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _WIN32_LEAN_AND_MEAN 1
|
||||
@@ -95,7 +95,10 @@ public:
|
||||
: m_listener(NULL)
|
||||
{
|
||||
if (skDevFinder)
|
||||
throw std::runtime_error("only one instance of CDeviceFinder may be constructed");
|
||||
{
|
||||
fprintf(stderr, "only one instance of CDeviceFinder may be constructed");
|
||||
abort();
|
||||
}
|
||||
skDevFinder = this;
|
||||
for (const char* typeName : types)
|
||||
{
|
||||
@@ -2,8 +2,8 @@
|
||||
#define CDEVICETOKEN
|
||||
|
||||
#include <string>
|
||||
#include "CDeviceBase.hpp"
|
||||
#include "SDeviceSignature.hpp"
|
||||
#include "DeviceBase.hpp"
|
||||
#include "DeviceSignature.hpp"
|
||||
|
||||
namespace boo
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
#define CDOLPHINSMASHADAPTER_HPP
|
||||
|
||||
#include <stdint.h>
|
||||
#include "CDeviceBase.hpp"
|
||||
#include "DeviceBase.hpp"
|
||||
|
||||
namespace boo
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef CGENERICPAD_HPP
|
||||
#define CGENERICPAD_HPP
|
||||
|
||||
#include "CDeviceBase.hpp"
|
||||
#include "DeviceBase.hpp"
|
||||
|
||||
namespace boo
|
||||
{
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <unordered_map>
|
||||
#include <mutex>
|
||||
#include "CDeviceToken.hpp"
|
||||
#include "DeviceToken.hpp"
|
||||
|
||||
namespace boo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user