added GluModel - GluSphere
1 parent 5763a07 commit daf4d4c29f00ee02ef277e5155a7521e9bfca874
@glproj03 glproj03 authored on 3 Feb 2006
Showing 8 changed files
View
4
include/light.h
 
class Light : public Thing {
protected:
GLUquadricObj* sphere;
bool showtrace;
bool enabled;
GLenum num;
Vec *pos;
Material *mat;
 
Vec *rot;
 
public:
Light();
void rotate(Vec rot);
void show();
void hide();
void draw();
void trace(bool _s);
};
 
class SpotLight: public Light{
private:
View
3
■■
include/material.h
 
Material();
Material(Color _ambient);
Material(Color _ambient, Color _specular);
void init(Color _ambient, Color _specular);
 
Material* clone();
 
void vardump(std::string whitespace);
void ptdump(std::string whitespace);
void drawMaterial();
void draw();
};
#endif
View
25
include/model.h
void scale(float f);
};
#endif
 
class GluModel : public Thing {
public:
GLUquadricObj* pt;
Vec* pos;
Vec* rot;
Material* mat;
float scale;
bool enabled;
GluModel();
GluModel(Vec _pos, Material _mat);
void init(Vec _pos, Material _mat);
void setMaterial(Color _amb);
void setMaterial(Color _amb, Color _spec);
};
 
class GluSphere : public GluModel {
public:
float rad;
GluSphere();
GluSphere(Vec _pos, Material _mat, float _rad);
void init(Vec _pos, Material _mat, float _rad);
void draw();
};
View
sources/light.cpp
View
sources/main.cpp
View
sources/material.cpp
View
sources/model.cpp
View
sources/poly.cpp