Well I could post a part of my code ::
Code:
void renderTheTexture(GLubyte* texture, GLuint textureID, int textureSize)
{
glBindTexture(GL_TEXTURE_2D, textureID);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureSize, textureSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture);
glActiveTexture(GL_TEXTURE0);
glPushMatrix();
glColor3f(1.0f, 1.0f, 1.0f);
glInterleavedArrays(GL_T2F_V3F, 0, cloudVertices); // Set our Array of elements to be drawn.
glDrawElements(GL_QUADS, 4, GL_UNSIGNED_INT, texIndices); // Draws it.
glPopMatrix();
}
The thing is that I use kDevelop. And I don't know how, when typing something, it presents various choices I can type (variable names, function names, etc). When typing "glAc", doesn't bring on the "glActiveTexture". And when compiling says that can't find it.
Bookmarks