New line box class

This commit is contained in:
Ziver Koc 2007-04-12 07:39:04 +00:00
parent e3b9e3165a
commit 1958c7aa7e
3 changed files with 156 additions and 6 deletions

View file

@ -84,8 +84,14 @@ public class Texture {
* @param gl The GL context to bind to
*/
public void bindGL() {
GL11.glBindTexture(target, textureID);
GL11.glColor4f(color.getR(),color.getG(),color.getB(),color.getA());
if(target > 0){
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glBindTexture(target, textureID);
}
else{
GL11.glDisable(GL11.GL_TEXTURE_2D);
}
GL11.glColor4f(color.getR(),color.getG(),color.getB(),color.getA());
}
/**