Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 6: P.129 Example 6-1 _TEXCOORD1_ misspelled to _TEXC00RD1_ many times, should O, but 0 #49

Open
FreeBlues opened this issue Feb 28, 2018 · 0 comments
Labels

Comments

@FreeBlues
Copy link

Should be TEXCOORD1, but TEXC00RD1

P.129:

#define VERTEX_TEXC00RD1_0FFSET      8
#define VERTEX_ATTRIB_SIZE   (VERTEX_POS_SIZE + \
                              VERTEX_NORMAL_SIZE + \
                              VERTEX_TEXCOORD0_SIZE + \
                              VERTEX_TEXC00RD1_SIZE)

P.130:

(p + VERTEX_TEXC00RD1_0FFSET));

float *texcoordl = (float*) malloc(numVertices *
   VERTEX_TEXC00RD1_SIZE * sizeof(float));

// texture coordinate 1 is vertex attribute 3
glVertexAttribPointer(VERTEX_TEXCOORDl_INDX,
                      VERTEX_TEXC00RD1_SIZE,
                      GL_FLOAT, GL_FALSE,
                      VERTEX_TEXC00RD1_SIZE * sizeof(float),
                      texcoordl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants