1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/platform/game-dx.hpp

40 lines
755 B
C++
Raw Normal View History

2024-03-21 16:01:47 -03:00
#ifndef XNA_PLATFORM_GAME_DX_HPP
#define XNA_PLATFORM_GAME_DX_HPP
#include "../game/game.hpp"
2024-03-23 17:23:07 -03:00
#include "clock-dx.hpp"
2024-03-21 16:01:47 -03:00
#include "dxgi.h"
#include "d3d11.h"
namespace xna {
class Game : public IGame {
public:
Game();
virtual ~Game() override {
}
virtual void Exit() override{}
virtual int Run() override;
virtual PGameWindow Window() override {
return _gameWindow;
}
2024-03-21 16:01:47 -03:00
protected:
virtual void Draw(GameTime const& gameTime) override{}
virtual void Initialize() override{}
virtual void Update(GameTime const& gameTime) override{}
protected:
PGraphicsDevice _graphicsDevice{ nullptr };
2024-03-21 16:01:47 -03:00
PGameWindow _gameWindow{ nullptr };
2024-03-23 17:23:07 -03:00
GameClock _clock{};
GameTime _currentGameTime{};
2024-03-21 16:01:47 -03:00
int startLoop();
};
}
#endif