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

32 lines
599 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"
#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;
protected:
virtual void Draw(GameTime const& gameTime) override{}
virtual void Initialize() override{}
virtual void Update(GameTime const& gameTime) override{}
private:
PGameWindow _gameWindow{ nullptr };
PGraphicsDevice _graphicsDevice{ nullptr };
int startLoop();
};
}
#endif