.: CSAPIN :.

 
 

CSapin

The CSapin class is just made to draw pine-trees (Sapin means Pine-tree), it is based on a .ase 3D object. For the moment you have no choice of the color (unless you modify it in the code), but I'll change it later, you also have to glTranslate*() it to draw it where you want, I'll add a functionality to draw it directly at a certain position.

int LoadSapin(char *filename);
void ReleaseSapin();
void DrawSapin();
void DrawSapin(float x, float y, float z);

LoadSapin() will load a pine-tree object into memory and will return 1 on success and 0 on error. I advice you to use the "sapin.ase" file there is with the source code, you can modify it, but keep it a pine-tree form please ;)
ReleaseSapin() will free memory.
DrawSapin() will draw the pine-tree in the OpenGL viewport.
The other DrawSapin function permit you to draw it where you want, directly without modify the current matrix.

I also added a lot of functions to define the pine-tree colors, you'll see it in the class header.

A example of the pine-tree

Note that due to apparition of the SCM file format, the CSapin class will be obsolete and will re-programmed with a .scm file, it means that this class will totally change soon.

 

 
 

webmaster : sebseb@securesphere.net

.: HOME :.

 - Home

 - Old News

 

.: PROGRAMS :.

 - Graphic (10)

 - Network (7)

 - Games (2)

 - System (13)

 - Crypto (3)

 - Misc (3)

 - Game Programming Section

 - SCM Section

 

.: TUTORIALS :.

 - No tutorials yet

 

.: MISC :.


CrocoLib

CrocoSkinner
 

.: AUTHOR :.

 - My Curriculum-Vitae
 

.: LINKS :.

 - OpenGL

 - GameDev

 - SecureSphere

 - Warcraft3 FuckerFou

 - CaraibesSunshine

 - Ambria