sdafsa:x
1 parent 6f50bf7 commit c75ac032083b696821cbd60865b6db89086db31d
@glproj03 glproj03 authored on 9 Feb 2006
Showing 2 changed files
View
2
■■■
include/glumodel.h
GLUquadricObj* pt;
Vec* pos;
Vec* rot;
Material* mat;
float scale;
float scalefactor;
 
GenericModel();
GenericModel(Vec _pos, Material _mat);
void init(Vec _pos, Material _mat);
View
4
sources/glumodel.cpp
 
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());