C# Class C64Emu.EmulatorUI

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game, EmulatorIOAdapter
Datei anzeigen Open project: rosc77/vita64

Protected Properties

Property Type Description
statistics Statistics

Public Methods

Method Description
EmulatorUI ( ) : System
LOG_DEBUG ( String text ) : void
TranslateKeyCode ( Keys k ) : int
decode4Bit ( byte data, int offset ) : void
decode8Bit ( byte data, int offset ) : void
getKeyboardEvents ( ) : int[]
onNewFrame ( byte data ) : void

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Run ( ) : void
UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

drawOverlay ( ) : void
drawScreen ( Quad screenRect ) : void
drawText ( string text, float x, float y, uint argb, int alignment ) : void
drawTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float x0, float y0, float x1, float y1 ) : void
drawTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float x0, float y0, float x1, float y1, float texcoords ) : void
inputs ( ) : void
layoutScreen ( ) : Quad
render ( ) : void
shutdown ( ) : void
startup ( ) : void
update ( ) : void

Private Methods

Method Description
createTexture ( string text, Font font, uint argb ) : Microsoft.Xna.Framework.Graphics.Texture2D
storeKeyboardEvents ( ) : void
updateTextureBuffer ( ) : void

Method Details

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

EmulatorUI() public method

public EmulatorUI ( ) : System
return System

Initialize() protected method

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
return void

LOG_DEBUG() public static method

public static LOG_DEBUG ( String text ) : void
text String
return void

LoadContent() protected method

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
return void

Run() protected method

protected Run ( ) : void
return void

TranslateKeyCode() public method

public TranslateKeyCode ( Keys k ) : int
k Keys
return int

UnloadContent() protected method

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
return void

Update() protected method

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

decode4Bit() public method

public decode4Bit ( byte data, int offset ) : void
data byte
offset int
return void

decode8Bit() public method

public decode8Bit ( byte data, int offset ) : void
data byte
offset int
return void

drawOverlay() protected method

protected drawOverlay ( ) : void
return void

drawScreen() protected method

protected drawScreen ( Quad screenRect ) : void
screenRect Quad
return void

drawText() protected method

protected drawText ( string text, float x, float y, uint argb, int alignment ) : void
text string
x float
y float
argb uint
alignment int
return void

drawTexture() protected method

protected drawTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float x0, float y0, float x1, float y1 ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
x0 float
y0 float
x1 float
y1 float
return void

drawTexture() protected method

protected drawTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, float x0, float y0, float x1, float y1, float texcoords ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
x0 float
y0 float
x1 float
y1 float
texcoords float
return void

getKeyboardEvents() public method

public getKeyboardEvents ( ) : int[]
return int[]

inputs() protected method

protected inputs ( ) : void
return void

layoutScreen() protected method

protected layoutScreen ( ) : Quad
return Quad

onNewFrame() public method

public onNewFrame ( byte data ) : void
data byte
return void

render() protected method

protected render ( ) : void
return void

shutdown() protected method

protected shutdown ( ) : void
return void

startup() protected method

protected startup ( ) : void
return void

update() protected method

protected update ( ) : void
return void

Property Details

statistics protected_oe property

protected Statistics,C64Emu statistics
return Statistics