added so it can be used as empty
This commit is contained in:
parent
98c96ed24d
commit
69adb14553
1 changed files with 35 additions and 33 deletions
|
|
@ -88,6 +88,7 @@ public class Sprite extends Entity {
|
||||||
* Draw the sprite
|
* Draw the sprite
|
||||||
*/
|
*/
|
||||||
public void render() {
|
public void render() {
|
||||||
|
if(texture != null){
|
||||||
// store the current model matrix
|
// store the current model matrix
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
|
|
||||||
|
|
@ -123,6 +124,7 @@ public class Sprite extends Entity {
|
||||||
// restore the model view matrix to prevent contamination
|
// restore the model view matrix to prevent contamination
|
||||||
GL11.glPopMatrix();
|
GL11.glPopMatrix();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the bound of this class
|
* Returns the bound of this class
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue