Paddle::Paddle() : Object(){ BuildTriangles(2, 0); //BuildTriangleStrip(2, 0); SetScale(vec3(0.025f, 0.25f, 1.0f)); upKey = NO_KEY; downKey = NO_KEY; }
Plane::Plane(GLuint width, GLuint height) : Object(){ mLeftX = mRightX = mTopY = mBottomY = 0; BuildTriangles(mWidth = width, mHeight = height); }
Ball::Ball() : Object(){ BuildTriangles(2, 0); //BuildTriangleStrip(2, 0); SetScale(vec3(0.025f)); SetVelocity(vec3(1.0f, 0.0f, 0.0f)); }