//ribbon

analogi

a place with pace that love peace

My Photo
Name:
Location: sungai petani, kedah, Malaysia

Wednesday, July 07, 2004

#FOG: hello classy

hello wednesday! hello guys! it is wednesday, and it is the day to to lot of works cause i have to present it to my supervisor. GEDEBAK ... GEDEBUK ... alamak, what have i done so far ... fuh! nothing! arggggghhhh! but the gilmore things make me turn on to do some progress, ahaks! stay up late and continue again the next morning. i hope i do much. so far, i am working on with mr foggy classes. i'm a newbie for object-oriented programming. damn! it hard to change man! although i code it like an OOP expert, i still stuck on procedural/structural method. like the lovely stacie orrico always to sing, "i am stuck on you". ahaks!



this is the small archievement i had so far

class QUAD{
public:
VECTOR v1, v2, v3, v4;
VECTOR center;
GLfloat w, h, halfw, halfh;
GLint idTex[2];

QUAD();
QUAD(VECTOR v1_, VECTOR v2_, VECTOR v3_, VECTOR v4_);
void Draw();
void DrawBillboard(QUAD temp, GLuint* Texture);
void CreateBillboard(GLfloat mat[], QUAD quad, GLuint* Texture);
void GenerateBillboard(QUAD quad, GLuint* Texture);
};

class FOG{
public:

void DrawBillBoard();
void DrawVolume(); //contains many billboard
void SetFog(GLfloat zStart, GLfloat zEnd); //set the volume of fog
};

but this not impress me yet! i have to compile a good code as my code still tunggang langgang lagi maaaa. and few of them still not working yet. wish me good luck guys!

2 Comments:

Blogger Ikhwan Hayat said...

lookin' good my man...
cuma nak comment sikit, class name mcm QUAD, FOG tu tak payah huruf besarkan la, sbb in normal conventions, uppercase is for GLOBAL variables..
certain people prefix class name with "C" like CQuad, CFog.. kalau Borland pulak dia letak "T"
..just a suggestion je, but better stick with normal methods supaya org lain senang baca/faham ..

you might wanna look at GLVU (google for it, i dont remember the url)..it's a damn good class libary maaa..

9:47 AM  
Blogger Ikhwan Hayat said...

eh jap.. yg cekupan skrin tu program sapa? ko punya ke?

9:50 AM  

Post a Comment

<< Home