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