You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example 6-6, signature of DrawPrimitiveWithVBOs() changes from that in example 6-5. The argument GLfloat *vertices is suddenly GLfloat **vtxBuf in example 6-6 .
In example 6-5 the caller of DrawPrimitiveWithVBOs() is clearly shown, passing vertices for the argument GLfloat *vtxBuf. But there is no indication in the book on what is passed in for GLfloat **vtxBuf that's later accessed with vtxBuf[0] and vtxBuf[1]. Passing in the same GLfloat vertices[] will not work in example 6-6.
Having two functions of exact same name with a sudden change of signature and no clear indication could be confusing, especially when reading the text without close inspection of the source code here on github.
The text was updated successfully, but these errors were encountered:
In the example 6-6, signature of
DrawPrimitiveWithVBOs()
changes from that in example 6-5. The argumentGLfloat *vertices
is suddenlyGLfloat **vtxBuf
in example 6-6 .In example 6-5 the caller of
DrawPrimitiveWithVBOs()
is clearly shown, passingvertices
for the argumentGLfloat *vtxBuf
. But there is no indication in the book on what is passed in forGLfloat **vtxBuf
that's later accessed withvtxBuf[0]
andvtxBuf[1]
. Passing in the sameGLfloat vertices[]
will not work in example 6-6.Having two functions of exact same name with a sudden change of signature and no clear indication could be confusing, especially when reading the text without close inspection of the source code here on github.
The text was updated successfully, but these errors were encountered: