M
Mike
Hi
how would i draw/access x/y?
------
void createMatrix(void) //random x/y points
{
for(i=0;i<25;i++)
{
int temp1 = rand()%25;
matrix[temp1][j]=temp1;
for(j=0;j<80;j++)
{
int temp2 = rand()%80;
matrix[temp2]=temp2;
}
}
}
draw those random points:
for?
draw x? y?
glTexCoord2f(1, 1.0f); glVertex2f(i+15+PanelLeft, i-15+PanelLeft); //
Bottom Right Of The Texture and Quad
glTexCoord2f(0, 1.0f); glVertex2f(i+PanelLeft, i-15+PanelLeft); //
Bottom Left Of The Texture and Quad
glTexCoord2f(0, 0.0f); glVertex2f(i+PanelLeft, i+PanelLeft); // Top
Left Of The Texture and Quad
glTexCoord2f(1, 0.0f); glVertex2f(i+15+PanelLeft, i+PanelLeft); // Top
Right Of The Texture and Quad
Thanks
Michael
how would i draw/access x/y?
------
void createMatrix(void) //random x/y points
{
for(i=0;i<25;i++)
{
int temp1 = rand()%25;
matrix[temp1][j]=temp1;
for(j=0;j<80;j++)
{
int temp2 = rand()%80;
matrix[temp2]=temp2;
}
}
}
draw those random points:
for?
draw x? y?
glTexCoord2f(1, 1.0f); glVertex2f(i+15+PanelLeft, i-15+PanelLeft); //
Bottom Right Of The Texture and Quad
glTexCoord2f(0, 1.0f); glVertex2f(i+PanelLeft, i-15+PanelLeft); //
Bottom Left Of The Texture and Quad
glTexCoord2f(0, 0.0f); glVertex2f(i+PanelLeft, i+PanelLeft); // Top
Left Of The Texture and Quad
glTexCoord2f(1, 0.0f); glVertex2f(i+15+PanelLeft, i+PanelLeft); // Top
Right Of The Texture and Quad
Thanks
Michael