CC
Size: a a a
CC
CC
CC
KK
KK
/¯
CC
/¯
KK
KK
CC
A
CC
unsigned int main_texture;
glGenTextures(1, &main_texture);
glBindTexture(GL_TEXTURE_2D, main_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, texture_data);
KK
KK
KK
CC
CC
unsigned int main_texture;
glGenTextures(1, &main_texture);
glBindTexture(GL_TEXTURE_2D, main_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, texture_data);
/¯
unsigned int main_texture;
glGenTextures(1, &main_texture);
glBindTexture(GL_TEXTURE_2D, main_texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, texture_data);
CC