Hi
Its my first day using jogl, so im not sure if im using the api in the suggested way.
I drawn a surface containing ~35.000 squares.
My strategy:
// incomplete pseudocode
glBegin(GL.GL_QUADS)
for ( x = 0 ... 200 ) {
for (y = 0 .. 175 {
// one square
glColor3f(somecalc(z))
glVertex3f (x,y,z)
glVertex3f (x+1,y,z)
glVertex3f( x+1,y+1,z)
glVertex3f( x,y+1,z)
}
}
glEnd
The squars are just a 2d array - the z achsis contains the true value
I colorized each square depending on the z-achsis.
Now my goal is to mark all quads with a given x value red.
Is it necessary to recreate the whole structure to change the color of one line inside my array? Dont think so (i hope).
I really have no clue how to change them afterwards :o)
Maybe another question concerning the same problem …
Is there a good docu available? Its funny to read the javadoc of the GL class, but all im able to see is “Interface to C language function”
Possible i should search for a opengl docu, but the reference is not really easy to read.
So maybeyou are able to recommend some kind of book?
thx for your help
Bernhard Neuhauser