breakout/settings.h

31 lines
615 B
C
Raw 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-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-19 18:03:18 +01:00
int x,y,bw,sw,h;
2018-01-18 22:01:09 +01:00
double Slider_value,min,max;
} Slider;
2018-01-18 15:44:34 +01:00
void Settings_Initialize (SDL_Renderer* renderer);
void Settings_Draw (SDL_Renderer* renderer);
2018-01-18 15:59:24 +01:00
void Settings_Deinitialize();
2018-01-18 22:01:09 +01:00
void Draw_Slider(SDL_Renderer* renderer,Slider* beta);
2018-01-20 20:06:50 +01:00
void mapping(double *x,Slider* beta);
2018-01-19 18:03:18 +01:00
2018-01-20 20:06:50 +01:00
void Initialize_Slider(int x,int y,int sw,int bw,int h,double min,double max,Slider* beta);
2018-01-19 18:03:18 +01:00
2018-01-18 15:44:34 +01:00
#endif