diff --git a/include/glumodel.h b/include/glumodel.h index 609efb4..3b80dc3 100644 --- a/include/glumodel.h +++ b/include/glumodel.h @@ -28,6 +28,8 @@ void show(); void hide(); + + void scale(float f); }; class GluSphere : public GenericModel { diff --git a/sources/glumodel.cpp b/sources/glumodel.cpp index bc3a1de..55318a8 100644 --- a/sources/glumodel.cpp +++ b/sources/glumodel.cpp @@ -30,6 +30,10 @@ visible = true; } +void GenericModel::scale ( float s ) { + scale = scale * s; +} + void GenericModel::setColor(Color* c) { Color sp = *(mat->specular->clone()); delete mat; diff --git a/sources/main.cpp b/sources/main.cpp index 589fdb4..067b567 100755 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -474,7 +474,8 @@ l1Anim->addThing((Thing*)rotatingCubes); l1Anim->setRot(Vec(1.5f,0,0)); - //Vec l1_pos(-10.0f, -10.0f, -10.0f); + userAnim->addThing((Thing*)mysphere); + cube->showNormals(); float delta = 0; while (!done) {