Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 473 Bytes
#ifndef BARCONTROLLER_H
#define BARCONTROLLER_H
/*
Class: BarController
Purpose: Move between too values
*/
class BarController
{
public:
//Initiate
BarController( float min, float max, float initial_val, float increment);
//Call once per glut display
void update();
//Get the value
float value();
//Max and min
float getMax();
float getMin();
private:
float val;
float increment;
float min;
float max;
};
#endif // BARCONTROLLER_H
Something went wrong with that request. Please try again.