Package libsidplay.components.mos656x
Schnittstelle IPALEmulation
- Alle bekannten Implementierungsklassen:
PALEmulation,PALEmulationTeaVM
public interface IPALEmulation
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddetermineCurrentPalette(int rasterY, boolean isFrameStart) Determine palette for current raster line.voiddrawPixels(int graphicsDataBuffer) Draw eight pixels at once.Gets the currently used palette.voidreset()voidsetPalEmulationEnable(boolean palEmulationEnable) voidsetVicPaletteNoPal(int[] vicPaletteNoPal) voidUpdates the palette using the current palette settings.
-
Methodendetails
-
determineCurrentPalette
void determineCurrentPalette(int rasterY, boolean isFrameStart) Determine palette for current raster line.- Parameter:
rasterY- current raster lineisFrameStart- a new frame is about to start?
-
drawPixels
void drawPixels(int graphicsDataBuffer) Draw eight pixels at once. Pixels arrive in 0x12345678 order (MSB to LSB).- Parameter:
graphicsDataBuffer- eight pixels each of 4 bits (VIC color value range 0x0-0xF)
-
updatePalette
void updatePalette()Updates the palette using the current palette settings. -
setPalEmulationEnable
void setPalEmulationEnable(boolean palEmulationEnable) -
setVicPaletteNoPal
void setVicPaletteNoPal(int[] vicPaletteNoPal) -
getPalette
IPalette getPalette()Gets the currently used palette.- Gibt zurück:
- The currently used palette.
-
reset
void reset() -
getPixels
ByteBuffer getPixels()- Gibt zurück:
- Output ARGB screen buffer as byte array. alpha, red, green, blue for each pixel.
-
getPixelsAsIntBuffer
IntBuffer getPixelsAsIntBuffer()
-