-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_utils.h
27 lines (23 loc) · 864 Bytes
/
SDL_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef SDL_UTILS__H
#define SDL_UTILS__H
#include <SDL.h>
#include <SDL_image.h>
#include <string>
#include <vector>
#include <iostream>
#include <stdio.h>
#include <ctime>
#include <stdlib.h>
using namespace std;
const string WINDOW_TITLE = "Rapid Roll";
const int SCREEN_WIDTH = 600;
const int SCREEN_HEIGHT = 750;
void logSDLError(std::ostream& os,
const std::string &msg, bool fatal = false);
void quitSDL(SDL_Window* window, SDL_Renderer* renderer);
void waitUntilKeyPressed();
bool loadMedia(SDL_Texture* gTexture,SDL_Texture* loadTexture( std::string path ));
SDL_Texture* loadTexture( std::string path ,SDL_Renderer* renderer);
void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y);
void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y, int w, int h);
#endif // SDL_UTILS__H