Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "SDLtest.h"
- using namespace std;
- bool SDLtest :: Initialise() {
- if(SDL_Init(SDL_INIT_VIDEO) > 0) {
- cout << "SDL_Init error " << SDL_GetError() << "\n";
- return false;
- }
- window = SDL_CreateWindow("SDLtest", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);
- if(window == nullptr) {
- cout << "SDL_CreateWindow error " << SDL_GetError() << "\n";
- SDL_DestroyWindow(window);
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement