How to get I the correct texture using indexing in opengl
问题 I want to impement a pyramid which has different texture in each side. The pyramid with the textures is correct without using an index data array. When i use the indexdata the textures get mixed with each other. Do i have to correct the AttribPointer? (My texture is a collage image of 5 different images) *I want to keep the indexData array Here is a part of the code from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * import numpy as np from framework import * from PIL