Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
com.linxonline.mallet.renderer.G2D.G2DRenderer Class Reference
Inheritance diagram for com.linxonline.mallet.renderer.G2D.G2DRenderer:
Inheritance graph
[legend]
Collaboration diagram for com.linxonline.mallet.renderer.G2D.G2DRenderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 G2DRenderer ()
void draw ()
void hookToFrame (final JFrame _frame)
Canvas getCanvas ()

Protected Member Functions

void render ()
void createTexture (final Settings _draw)
void createGeometry (final Settings _draw)
void createText (final Settings _draw)

Protected Attributes

final Vector2 pos = new Vector2()
final AffineTransform transform = new AffineTransform()
final Rectangle rect = new Rectangle()
final Canvas canvas = new Canvas()
Vector2 display = null
Vector2 render = null
Vector3 camera = null
Vector2 scale = null
Graphics2D graphics = null
DrawInterface drawShape = null
DrawInterface drawTexture = null
DrawInterface drawText = null

Static Protected Attributes

static final TextureManager textures = new TextureManager()

Detailed Description

G2DRenderer is an event-driven renderer.

It uses the Event System to recieve information on how things should be rendered.


Constructor & Destructor Documentation


Member Function Documentation

void com.linxonline.mallet.renderer.G2D.G2DRenderer.createGeometry ( final Settings  _draw) [protected, virtual]
void com.linxonline.mallet.renderer.G2D.G2DRenderer.createText ( final Settings  _draw) [protected, virtual]
void com.linxonline.mallet.renderer.G2D.G2DRenderer.createTexture ( final Settings  _draw) [protected, virtual]

Add the Canvas to the JFrame


Member Data Documentation

final Canvas com.linxonline.mallet.renderer.G2D.G2DRenderer.canvas = new Canvas() [protected]
final Rectangle com.linxonline.mallet.renderer.G2D.G2DRenderer.rect = new Rectangle() [protected]
final AffineTransform com.linxonline.mallet.renderer.G2D.G2DRenderer.transform = new AffineTransform() [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables