D3D11 window up and spinning.
This commit is contained in:
@@ -34,15 +34,11 @@ NopGraphicsSystem::NopGraphicsSystem(const CreationParams* params) :
|
||||
}
|
||||
|
||||
NopGraphicsSystem::~NopGraphicsSystem() {
|
||||
if (vsync_timer_) {
|
||||
DeleteTimerQueueTimer(timer_queue_, vsync_timer_, NULL);
|
||||
}
|
||||
if (timer_queue_) {
|
||||
DeleteTimerQueueEx(timer_queue_, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void NopGraphicsSystem::Initialize() {
|
||||
GraphicsSystem::Initialize();
|
||||
|
||||
XEASSERTNULL(driver_);
|
||||
driver_ = new NopGraphicsDriver(memory_);
|
||||
|
||||
@@ -59,3 +55,17 @@ void NopGraphicsSystem::Initialize() {
|
||||
100,
|
||||
WT_EXECUTEINTIMERTHREAD);
|
||||
}
|
||||
|
||||
void NopGraphicsSystem::Pump() {
|
||||
}
|
||||
|
||||
void NopGraphicsSystem::Shutdown() {
|
||||
if (vsync_timer_) {
|
||||
DeleteTimerQueueTimer(timer_queue_, vsync_timer_, NULL);
|
||||
}
|
||||
if (timer_queue_) {
|
||||
DeleteTimerQueueEx(timer_queue_, NULL);
|
||||
}
|
||||
|
||||
GraphicsSystem::Shutdown();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,10 @@ public:
|
||||
NopGraphicsSystem(const CreationParams* params);
|
||||
virtual ~NopGraphicsSystem();
|
||||
|
||||
protected:
|
||||
virtual void Initialize();
|
||||
virtual void Pump();
|
||||
virtual void Shutdown();
|
||||
|
||||
private:
|
||||
HANDLE timer_queue_;
|
||||
|
||||
Reference in New Issue
Block a user