class Sp2_Adm: public Sp2_Obj, public Sp_Adm_Time

The Administrator of all object

Inheritance:


Public Methods

[more] Sp2_Adm(char *name)
The constructor
[more] ~Sp2_Adm()
His destructor
[more]void Add_Obj(Sp2_Obj *)
Add an obj in the scene
[more]void Rem_Obj(Sp2_Obj *)
Remove an obj of the scene
[more]void Add_View(Sp2_View *)
Add a View of scene
[more]void Rem_View(Sp2_View *)
Rem a view of scene
[more]void Active_View(Sp2_View *)
Active a view
[more]void Add_Light(Sp2_Light *)
Add a Light
[more]void Rem_Light(Sp2_Light *)
Rem a Light
[more]int Load_texture(char *filename)
Load a texture
[more]void Delete_texture(int )
Delete a texture
[more]void DrawScene()
It draws the scene

Private Fields

[more] objs
list of objects in the scene classified by croissant priority
[more] views
List of view
[more] lights
Array of Light
[more]Sp2_View* current_view
Active view
[more]Sp_Mat4 projection
Projection Maxtrix

Private Methods

[more]void Transformations()
Compute the Transformations % adm
[more]void Transformations2()
Compute the Transformations % view
[more]void LightScene()
Light
[more]void GetProjection()
Get the current projection matrix


Inherited from Sp2_Obj:

Public Fields

ostring Name
oSp2_Obj* father
oint priority
o sons
o entities
oSp_LTrans trans
oSp_Mat4 coord_camera

Public Methods

ovoid Add_Entity(Sp_EntityBase *)
ovoid Rem_Entity(Sp_EntityBase *)
ovoid DrawObj()


Documentation

The Administrator of all object. To manage time, it derivates from Sp2_Adm_Time.
o Sp2_Adm(char *name)
The constructor

o ~Sp2_Adm()
His destructor

ovoid Add_Obj(Sp2_Obj *)
Add an obj in the scene

ovoid Rem_Obj(Sp2_Obj *)
Remove an obj of the scene

ovoid Add_View(Sp2_View *)
Add a View of scene

ovoid Rem_View(Sp2_View *)
Rem a view of scene

ovoid Active_View(Sp2_View *)
Active a view

ovoid Add_Light(Sp2_Light *)
Add a Light

ovoid Rem_Light(Sp2_Light *)
Rem a Light

oint Load_texture(char *filename)
Load a texture

ovoid Delete_texture(int )
Delete a texture

ovoid DrawScene()
It draws the scene

o objs
list of objects in the scene classified by croissant priority. First we draw low priority... then bigger priority objects

o views
List of view

o lights
Array of Light

oSp2_View* current_view
Active view

oSp_Mat4 projection
Projection Maxtrix

ovoid Transformations()
Compute the Transformations % adm

ovoid Transformations2()
Compute the Transformations % view

ovoid LightScene()
Light

ovoid GetProjection()
Get the current projection matrix


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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