Hi,everyone.I'm using the latest version of the SDK, I modified the code. Display a custom model, but not as I want it, how do I want to put the pot into a beautiful girl.
const char *textureFilenames[]= { "gril.png", };
Hi,everyone.I'm using the latest version of the SDK, I modified the code. Display a custom model, but not as I want it, how do I want to put the pot into a beautiful girl.
const char *textureFilenames[]= { "gril.png", };
oh!!I found a solution. The following code can be modified.
glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilVerts); glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilNormals); glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (const GLvoid*)grilTexCoords);
closing.