|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--NESPictureProcessingUnit | +--Video
This file contains all the video routines for the emulator (well, this is the theory).
This will make easier a port to a different API.
Some code is strongly inspired by Jamicom (Thanks Ninn!!).
Some code is strongly inspired by Darcnes (Thanks Nyef!!).
This code is GPL. :o)
Copyright (c) 2000 Brice Fines.
Field Summary | |
protected java.awt.Canvas |
canvas
Canvas. |
private java.awt.Frame |
f
Frame. |
private java.awt.Graphics |
g
Graphics. |
private int[] |
lineBuffer
Line buffer. |
private java.awt.Image |
offScreenImage
Image. |
protected int[] |
PaletteCache
Palette cache. |
private int[][][] |
PatternCache
Cache for graphic patterns. |
protected int[] |
rgb
Color palette by Matthew Conte. |
private int[] |
videoBuffer
Video buffer. |
Constructor Summary | |
Video()
Constructor. |
Method Summary | |
protected void |
caching()
This method fill the pattern cache. |
protected void |
drawDisplay()
Renders image on screen. |
protected void |
drawLine()
Renders scanline in video buffer. |
protected void |
renderBackground()
This method renders the background. |
protected void |
renderSprites()
This method renders the sprites on the current scanline. |
Methods inherited from class NESPictureProcessingUnit |
NESPictureProcessingUnit |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected final int[] rgb
private final int[][][] PatternCache
protected final int[] PaletteCache
private final int[] videoBuffer
protected final java.awt.Canvas canvas
private final java.awt.Graphics g
private final java.awt.Image offScreenImage
private final java.awt.Frame f
private final int[] lineBuffer
Constructor Detail |
public Video()
Method Detail |
protected final void caching()
protected final void renderSprites()
protected final void renderBackground()
protected final void drawDisplay()
protected final void drawLine()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |