#include <Ball.h>
Public Member Functions | |
Ball (void) | |
void | Init (void) |
void | Render (void) |
void | Update_points (void) |
~Ball (void) | |
Public Attributes | |
float | speed |
float | speedStack |
VECTOR3D | position |
VECTOR3D | direction |
VECTOR3D | bl |
VECTOR3D | br |
VECTOR3D | tl |
VECTOR3D | tr |
float | size |
Private Attributes | |
COLOR | amb |
COLOR | dif |
COLOR | spec |
bool | visible |
GLUquadricObj * | sphere |
GLfloat | ballAmb [4] |
GLfloat | ballDif [4] |
GLfloat | ballSpec [4] |
GLfloat | ballShine [1] |
Ball::Ball | ( | void | ) |
default constructor for the ball
Ball::~Ball | ( | void | ) |
ball destructor
void Ball::Init | ( | void | ) |
ball initialization
void Ball::Render | ( | void | ) |
ball rendermethod
void Ball::Update_points | ( | void | ) |
updating the collision points
float Ball::speed |
float Ball::speedStack |
VECTOR3D Ball::position |
VECTOR3D Ball::direction |
VECTOR3D Ball::bl |
VECTOR3D Ball::br |
VECTOR3D Ball::tl |
VECTOR3D Ball::tr |
float Ball::size |
COLOR Ball::amb [private] |
COLOR Ball::dif [private] |
COLOR Ball::spec [private] |
bool Ball::visible [private] |
GLUquadricObj* Ball::sphere [private] |
GLfloat Ball::ballAmb[4] [private] |
GLfloat Ball::ballDif[4] [private] |
GLfloat Ball::ballSpec[4] [private] |
GLfloat Ball::ballShine[1] [private] |