class Stars: public GameObj

This class represent the starred background

Inheritance:


Public Methods

[more] Stars(int starn=200)
default constructor
[more]int Draw()
It draws all the stars
[more]void Update(int t)
Update the color counter

Inherited from GameObj:

Public Fields

oPoint3f p
oPoint3f axis
ofloat angle
oPoint3f v
ofloat av
obool active
oSphere3f B

Public Methods

oPoint3f VDir()
obool Collide(GameObj *o)
ovoid DrawBound()
obool operator < ( GameObj const & o ) const
obool operator == ( GameObj const & o ) const

Documentation

This class represent the starred background. The starred background is a unitary square filled with stars. Version History
  • 0.4 First Release
o Stars(int starn=200)
default constructor

oint Draw()
It draws all the stars. Stars and color are kept in two vector and drawn with glDrawArray().

ovoid Update(int t)
Update the color counter. Every 1/3 sec the color vector is shifted of one position. In this way all the stars change their color.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.