whatever added include;src;whatever.h;updated makefile
This commit is contained in:
44
sdl/whatever/include/whatever.h
Normal file
44
sdl/whatever/include/whatever.h
Normal file
@ -0,0 +1,44 @@
|
||||
#ifndef WHATEVER_H
|
||||
#define WHATEVER_H
|
||||
/* start SDL and create a window */
|
||||
int init();
|
||||
|
||||
/* load the media durr */
|
||||
int loadMedia();
|
||||
|
||||
/* Free the surfaces and whatnot */
|
||||
void close_game();
|
||||
|
||||
/* Our main window */
|
||||
SDL_Window* gScreen;
|
||||
|
||||
/* Our renderer */
|
||||
SDL_Renderer* gRenderer;
|
||||
|
||||
|
||||
/*screen dimensions*/
|
||||
const int screen_width = 1024;
|
||||
const int screen_height = 768;
|
||||
|
||||
/* Surface for loading BMP */
|
||||
SDL_Surface* gTemp;
|
||||
|
||||
/* Texture for background */
|
||||
SDL_Texture* gBackground_texture;
|
||||
|
||||
/* Texture for characters */
|
||||
SDL_Texture* gPlayer;
|
||||
|
||||
/* Player coors */
|
||||
SDL_Rect gPlayer_dest = { 0 };
|
||||
|
||||
/* Gamepads ! */
|
||||
SDL_Joystick* gGameController = NULL;
|
||||
|
||||
/* deadzone, we don't want light taps to do anything */
|
||||
const int JOYSTICK_DEAD_ZONE = 8000;
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user