Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个来自 LWJGL 小行星示例的纹理加载器。它加载了我提供的两个纹理,并为它们提供了两个不同的纹理 ID,但是当我绑定它们并将它们绘制在一个立方体上时,只有一个纹理显示在立方体上,而其余的则没有绘制。
编辑:我使用 glBindTexture 的基础和 GL_TEXTURE_2D 没有多重纹理
您不能在glBegin()/glEnd()块内绑定纹理。在开始之前你必须这样做。
glBegin()
glEnd()