Appearance
VICIIAPI
cpp
#include <VirtualC64.h>cpp
class VICIIAPIDefined in VirtualC64.h:500
VICII API
Public Methods
| Return | Name | Description |
|---|---|---|
const VICIITraits & | getTraits const | Provides details about the currently selected VICII revision. |
const VICIIConfig & | getConfig const | Returns the component's current configuration. |
const VICIIInfo & | getInfo const | Returns the component's current state. |
const VICIIInfo & | getCachedInfo const | Returns the most recent state snapshot recorded by the emulator thread (see getInfo()). |
SpriteInfo | getSpriteInfo const | Returns information about a sprite. |
u32 | getColor const | Returns the RGBA value of a color. |
u32 | getColor const | Returns the RGBA value of a color from a color palette. |
getTraits
const
cpp
const VICIITraits & getTraits() constDefined in VirtualC64.h:510
Provides details about the currently selected VICII revision.
getConfig
const
cpp
const VICIIConfig & getConfig() constDefined in VirtualC64.h:514
Returns the component's current configuration.
getInfo
const
cpp
const VICIIInfo & getInfo() constDefined in VirtualC64.h:525
Returns the component's current state.
getInfo() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedInfo() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.
getCachedInfo
const
cpp
const VICIIInfo & getCachedInfo() constDefined in VirtualC64.h:527
Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).
getSpriteInfo
const
cpp
SpriteInfo getSpriteInfo(isize nr) constDefined in VirtualC64.h:532
Returns information about a sprite.
Parameters
| Parameter | Type | Description |
|---|---|---|
nr | isize | Number of the sprite (0 .. 7) |
getColor
const
cpp
u32 getColor(isize nr) constDefined in VirtualC64.h:536
Returns the RGBA value of a color.
getColor
const
cpp
u32 getColor(isize nr, Palette palette) constDefined in VirtualC64.h:540
Returns the RGBA value of a color from a color palette.