initial commit
This commit is contained in:
35
shader.pde
Normal file
35
shader.pde
Normal file
@@ -0,0 +1,35 @@
|
||||
class Param {
|
||||
String name;
|
||||
int type;
|
||||
float minValue, maxValue;
|
||||
float value;
|
||||
int[] osciModes;
|
||||
Param(String name_, int type_, float minValue_, float maxValue_, int[] osciModes_) {
|
||||
name = name_;
|
||||
type = type_; //FLOATVAL or INTVAL
|
||||
minValue = minValue_;
|
||||
maxValue = maxValue_;
|
||||
osciModes = osciModes_;
|
||||
}
|
||||
}
|
||||
|
||||
class Shader {
|
||||
int id;
|
||||
int pos;
|
||||
String name;
|
||||
ArrayList<Param> params = new ArrayList<Param>();
|
||||
|
||||
void getValuesFromGUI(){
|
||||
params = gui.bricks.get(pos).params;
|
||||
println("Rendering " + this + " on position " + pos + "...");
|
||||
}
|
||||
|
||||
void changeParam(int paramNo, Param newParam){
|
||||
gui.bricks.get(pos).params.remove(paramNo);
|
||||
gui.bricks.get(pos).params.add(paramNo, newParam);
|
||||
gui.bricks.get(pos).exchangeSlider(paramNo, newParam);
|
||||
}
|
||||
|
||||
void apply() {
|
||||
}; //override me
|
||||
}
|
||||
Reference in New Issue
Block a user