breakout/settings.h

34 lines
699 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-22 20:07:14 +01:00
#include "breakout.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;
double Slider_value,min,max;
} Slider;
2018-01-18 15:44:34 +01:00
2018-01-22 20:07:14 +01:00
void Settings_Draw (SDL_Renderer* renderer,Scenery* scenery);
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-22 20:07:14 +01:00
void Draw_Ballstate(SDL_Renderer* renderer,Scenery* scenery);
void Settings_Initialize (SDL_Renderer* renderer);
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-22 20:07:14 +01:00
void Settings_Deinitialize();
void mapping(double *x,Slider* beta);
2018-01-18 15:44:34 +01:00
#endif