java - LWJGL Texture a cube -


I currently provide a cube with VBOs, and with color. I want to leave some texture on them, and I do not have any information about it. Still OGL is learning, but how do I present the cube with texture on them? Do I need any other VBO for texture?

Thank you!

Yes, you need second, floatbuffer, not to mention a texture. When creating texture on an object, you need to use texture coordinates (). Use glTexCoordPointer () to map your texture to the cube You can load texture with lubricant library Which comes with LWJGL.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -