Madolite

Untitled

Mar 9th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #pragma once
  2. /*
  3. I get all includes from #include "stdafx.h",
  4. which I've been explained should be located in the .cpp file
  5. The header is able to find the SDL.h file just fine
  6. */
  7.  
  8. class Display
  9. {
  10. public:
  11. Display(int width, int height, const std::string& title);
  12.  
  13. void update();
  14.  
  15. ~Display();
  16. protected:
  17. private:
  18. //... AND YET, I get an compiler Error C2143 in the line below: "syntax error : missing ';' before '*'"
  19.  
  20. SDL_Window* window; <-- This line
  21.  
  22. SDL_Renderer* renderer;
  23.  
  24. SDL_Texture* image;
  25.  
  26. SDL_Rect bgRect;
  27. SDL_Rect imageRect;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment