breakout/settings.h

37 lines
798 B
C
Raw Permalink Normal View History

2018-01-18 15:44:34 +01:00
#ifndef __Settings__
#define __Settings__
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
2018-01-18 15:59:24 +01:00
#include <stdbool.h>
2018-01-22 20:07:14 +01:00
#include "breakout.h"
2018-01-25 16:13:17 +01:00
#include "gamestate.h"
#include "main.h"
2018-02-01 13:22:27 +01:00
#include "background.h"
2018-01-18 15:44:34 +01:00
2018-01-18 22:01:09 +01:00
typedef struct sliderstruct {
SDL_Rect Bar_rect;
SDL_Rect Scalar_rect;
2018-01-25 21:45:48 +01:00
bool IsLock;
2018-01-18 22:01:09 +01:00
double Slider_value,min,max;
} Slider;
2018-01-18 15:44:34 +01:00
2018-02-01 13:22:27 +01:00
void Settings_Draw (SDL_Renderer* renderer,Scenery* scenery,int *backgroundcount);
2018-01-18 15:59:24 +01:00
2018-01-18 22:01:09 +01:00
void Draw_Slider(SDL_Renderer* renderer,Slider* beta);
2018-01-25 16:13:17 +01:00
void Settings_Initialize (SDL_Renderer* renderer,Scenery* scenery);
2018-01-22 20:07:14 +01:00
2018-01-25 16:13:17 +01:00
void Initialize_Slider(int x,int y,int sw,int bw,int h,double min,double max,Slider* beta,double defaultvalue);
2018-01-19 18:03:18 +01:00
2018-01-22 20:07:14 +01:00
void Settings_Deinitialize();
void mapping(double *x,Slider* beta);
2018-01-25 16:13:17 +01:00
void Settings_Return();
2018-01-18 15:44:34 +01:00
#endif