몇 가지 기본적인 OpenGL 튜토리얼을 통해이 코드를 더 잘 만들 수 있는지 알고 싶습니다.GL_TEXTURE_2D의 각 바인딩에 대한 텍스처 매개 변수를 설정하고 있습니까?
제 질문은 C++이지만 다른 언어로 된 다른 OpenGL 구현으로 이어질 것이라고 저는 믿습니다. 여기
코드입니다 :glGenTextures(1, &texture1);
glBindTexture(GL_TEXTURE_2D, texture1);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
//load the data for the texture, apply it, the free the data
glGenTextures(1, &texture2);
glBindTexture(GL_TEXTURE_2D, texture2);
//Now the question.
texture2
결합 후, 내가 두 이미지에 동일한 효과를 원하는 경우 glTexParameteri
라인을 반복이 켜지지 다음인가?