17ab05f279
Deleted stepslider
39 lines
820 B
C
39 lines
820 B
C
#ifndef __Settings__
|
|
|
|
#define __Settings__
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <SDL2/SDL.h>
|
|
#include <SDL2/SDL_image.h>
|
|
#include <stdbool.h>
|
|
#include <math.h>
|
|
#include "breakout.h"
|
|
#include "gamestate.h"
|
|
#include "main.h"
|
|
|
|
typedef struct sliderstruct {
|
|
SDL_Rect Bar_rect;
|
|
SDL_Rect Scalar_rect;
|
|
double Slider_value,min,max;
|
|
} Slider;
|
|
|
|
|
|
void Settings_Draw (SDL_Renderer* renderer,Scenery* scenery);
|
|
|
|
void Draw_Slider(SDL_Renderer* renderer,Slider* beta);
|
|
|
|
void Draw_Ballstate(SDL_Renderer* renderer,Scenery* scenery);
|
|
|
|
void Settings_Initialize (SDL_Renderer* renderer,Scenery* scenery);
|
|
|
|
void Initialize_Slider(int x,int y,int sw,int bw,int h,double min,double max,Slider* beta,double defaultvalue);
|
|
|
|
void Settings_Deinitialize();
|
|
|
|
void mapping(double *x,Slider* beta);
|
|
|
|
void Settings_Return();
|
|
|
|
#endif
|