| |
---|
| | |
---|
| | void GenericModel::init(Vec _pos, Material _mat) { |
---|
| | pos = _pos.clone(); |
---|
| | rot = new Vec(0,0,0); |
---|
| | scale = 1; |
---|
| | scalefactor = 1; |
---|
| | mat = _mat.clone(); |
---|
| | pt = gluNewQuadric(); |
---|
| | visible = true; |
---|
| | } |
---|
| |
---|
| | visible = true; |
---|
| | } |
---|
| | |
---|
| | void GenericModel::scale ( float s ) { |
---|
| | scale = scale * s; |
---|
| | scalefactor = scalefactor * s; |
---|
| | } |
---|
| | |
---|
| | void GenericModel::setColor(Color* c) { |
---|
| | Color sp = *(mat->specular->clone()); |
---|
| |
---|
| | |
|