// xna.cpp : Defines the entry point for the application. // #include "xna.h" using namespace std; using namespace xna; //int main() //{ // cout << "Hello CMake." << endl; // return 0; //} class Game1 : public Game { public: Game1() { graphics = New(this); } virtual void Update(GameTime const& gameTime) { Game::Update(gameTime); } virtual void Draw(GameTime const& gameTime) { GraphicsDevice->Clear(); Game::Draw(gameTime); } private: PGraphicsDeviceManager graphics; }; int APIENTRY WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow) { /*FileStream stream("D:/VS_EXPBSLN_x64_enu.CAB"); auto pos = stream.Position(); auto len = stream.Length(); pos = stream.Position();*/ Game1 game; game.Run(); return 0; }