Rev 194 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package com.gebauz.Bauzoid.graphics;
import com.gebauz.Bauzoid.app.GameObject;
import com.gebauz.Bauzoid.graphics.renderstate.RenderStates;
/** Children of the Graphics subsystem.
* Strictly speaking this is an extension of the GameObject in that it is part of the
* Game Graph. However, it provides direct access to the Graphics object without having
* to resort to the Game object
*/
public class GraphicsObject
extends GameObject
{
protected Graphics mGraphics =
null;
/** Constructor. */
public GraphicsObject
(Graphics graphics
)
{
super(graphics.
getGame());
mGraphics = graphics
;
}
/** Get the Graphics object. */
public final Graphics getGraphics
()
{
return mGraphics
;
}
/** Convenience method to get the RenderStates object. */
public final RenderStates getRenderStates
()
{
return mGraphics.
renderStates;
}
/** Called to destroy internal GL resources and the like when the surface is lost. */
public void onSurfaceLost
()
{
}
/** Called when internal GL resources need to be recreated. */
public void onSurfaceRecreated
()
{
}
}