¡@

Home 

java Programming Glossary: gl_texture_2d

LWJGL Textures and Strings

http://stackoverflow.com/questions/10801016/lwjgl-textures-and-strings

image data to OpenGL set some texture data and create the GL_TEXTURE_2D . Here is the code import java.awt.image.BufferedImage import.. textureID glGenTextures Generate texture ID glBindTexture GL_TEXTURE_2D textureID Bind texture ID Setup wrap mode glTexParameteri GL_TEXTURE_2D.. textureID Bind texture ID Setup wrap mode glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL12.GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D..