Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

shape.cc

Go to the documentation of this file.
00001 #include "shape.hh"
00002 #include "element.hh"
00003 #include <GL/gl.h>
00004 
00005 namespace anoid {
00006     namespace base {
00007 
00008         void Shape::redraw() {
00009             Object::redraw();
00010 
00011             float myMatrix[16];
00012             glGetFloatv(GL_MODELVIEW_MATRIX, myMatrix);
00013             /*      dtSelectObject(parent);
00014                     dtLoadMatrixf(myMatrix);*/
00015         }
00016 
00017         void Shape::getInverseInertiaTensor(double *output, double a, double b, double c) {
00018             output[1] = output[2] = output[3] =
00019                 output[4] = output[6] = output[7] =
00020                 output[8] = output[9] = output[11] =
00021                 output[12] = output[13] = output[14] = 0.0;
00022             output[0] = output[5] = output[10] = output[15] = 1.0;
00023         }
00024 
00025     };
00026 };

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen