#### Archived

This topic is now archived and is closed to further replies.

This topic is 6018 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

  for (xIdx = 0; xIdx < 36; xIdx++) // x-direction { for (yIdx = 0; yIdx < 18; yIdx++) // y-direction { // calculate texture coordinates for current quad texLeft = float(xIdx) / 35.0f; // left texture coordinate texBottom = float(yIdx) / 18.0f; // bottom texture coordinate texRight = float(xIdx+1) / 35.0f; // right texture coordinate texTop = float(yIdx+1) / 18.0f; // top texture coordinate 
Why are they dividing by 35 and 18? This is a flag using a 36x20 array of points. subnet_rx

"There are two types of langages, those that everyone bitches about, and those that no one uses."

Standardized C++ Libraries
C++ Programming help
The only news site on the web Edited by - subnet_rx on January 3, 2002 2:21:42 AM

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 14
• 13
• 9
• 12
• 9
• ### Forum Statistics

• Total Topics
631437
• Total Posts
3000063
×