News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Are these generated code??

Started by bigrichlegend, October 04, 2006, 11:04:24 PM

Previous topic - Next topic

bigrichlegend

I would love to program say dini's curve in opengl,  but when I look at these opengl examples - texture_matrix for example, I see lots & lots of numbers which looks generates eg
invoke   glColor3f, CFLT(1.0), CFLT(1.0), CFLT(1.0)
               invoke   glTexCoord2f, CFLT(0.0), CFLT(0.0)
               invoke   glVertex3f, CFLT(-1.0), CFLT(-1.0), CFLT(1.0)
               invoke   glTexCoord2f, CFLT(1.0), CFLT(0.0)
               invoke   glVertex3f, CFLT(1.0), CFLT(-1.0), CFLT(1.0)
               invoke   glTexCoord2f, CFLT(1.0), CFLT(1.0)
               invoke   glVertex3f, CFLT(1.0), CFLT(1.0), CFLT(1.0)
               invoke   glTexCoord2f, CFLT(0.0), CFLT(1.0)
               invoke   glVertex3f, CFLT(-1.0),  CFLT(1.0), CFLT(1.0)....
Are these generated values and if so how do you get them?
:(

evlncrn8

CFLT = macro (guessing) for C Float type..

u

Nope, the code doesn't seem pre-generated. You just imagine the cube/object and its 3D coordinate system, and put the relevant coordinates of vertices.
Please use a smaller graphic in your signature.

bigrichlegend

Thanks for the reply. These numbers do look tedious to try and figure out however.