OpenGL texture mapping stubbornly refuses to work

后端 未结 4 1927
梦毁少年i
梦毁少年i 2021-01-15 17:40

I\'m writing a 2D game using SDL and OpenGL in the D programming language. At the moment it simply tries to render a texture-mapped quad to the screen. Problem is, the whole

4条回答
  •  星月不相逢
    2021-01-15 18:18

    Try enabling GL_COLOR_MATERIAL? I haven't used the fixed-functionality pipeline in a while, but I think that might do it.

提交回复
热议问题