Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- /*
- I get all includes from #include "stdafx.h",
- which I've been explained should be located in the .cpp file
- The header is able to find the SDL.h file just fine
- */
- class Display
- {
- public:
- Display(int width, int height, const std::string& title);
- void update();
- ~Display();
- protected:
- private:
- //... AND YET, I get an compiler Error C2143 in the line below: "syntax error : missing ';' before '*'"
- SDL_Window* window; <-- This line
- SDL_Renderer* renderer;
- SDL_Texture* image;
- SDL_Rect bgRect;
- SDL_Rect imageRect;
- };
Advertisement
Add Comment
Please, Sign In to add comment