New line box class
This commit is contained in:
parent
e3b9e3165a
commit
1958c7aa7e
3 changed files with 156 additions and 6 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue