C# Class C64Emu.EmulatorUI

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

Protected Properties

Свойство Type Description
statistics Statistics

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

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

Method Details

Draw() protected méthode

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.
Résultat void

EmulatorUI() public méthode

public EmulatorUI ( ) : System
Résultat System

Initialize() protected méthode

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
Résultat void

LOG_DEBUG() public static méthode

public static LOG_DEBUG ( String text ) : void
text String
Résultat void

LoadContent() protected méthode

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

Run() protected méthode

protected Run ( ) : void
Résultat void

TranslateKeyCode() public méthode

public TranslateKeyCode ( Keys k ) : int
k Keys
Résultat int

UnloadContent() protected méthode

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

Update() protected méthode

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.
Résultat void

decode4Bit() public méthode

public decode4Bit ( byte data, int offset ) : void
data byte
offset int
Résultat void

decode8Bit() public méthode

public decode8Bit ( byte data, int offset ) : void
data byte
offset int
Résultat void

drawOverlay() protected méthode

protected drawOverlay ( ) : void
Résultat void

drawScreen() protected méthode

protected drawScreen ( Quad screenRect ) : void
screenRect Quad
Résultat void

drawText() protected méthode

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

drawTexture() protected méthode

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
Résultat void

drawTexture() protected méthode

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
Résultat void

getKeyboardEvents() public méthode

public getKeyboardEvents ( ) : int[]
Résultat int[]

inputs() protected méthode

protected inputs ( ) : void
Résultat void

layoutScreen() protected méthode

protected layoutScreen ( ) : Quad
Résultat Quad

onNewFrame() public méthode

public onNewFrame ( byte data ) : void
data byte
Résultat void

render() protected méthode

protected render ( ) : void
Résultat void

shutdown() protected méthode

protected shutdown ( ) : void
Résultat void

startup() protected méthode

protected startup ( ) : void
Résultat void

update() protected méthode

protected update ( ) : void
Résultat void

Property Details

statistics protected_oe property

protected Statistics,C64Emu statistics
Résultat Statistics