Skip to content

VICIIAPI ​

cpp
#include <VirtualC64.h>
cpp
class VICIIAPI

Defined in VirtualC64.h:500

VICII API

Public Methods ​

ReturnNameDescription
const VICIITraits &getTraits constProvides details about the currently selected VICII revision.
const VICIIConfig &getConfig constReturns the component's current configuration.
const VICIIInfo &getInfo constReturns the component's current state.
const VICIIInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).
SpriteInfogetSpriteInfo constReturns information about a sprite.
u32getColor constReturns the RGBA value of a color.
u32getColor constReturns the RGBA value of a color from a color palette.

getTraits ​

const

cpp
const VICIITraits & getTraits() const

Defined in VirtualC64.h:510

Provides details about the currently selected VICII revision.


getConfig ​

const

cpp
const VICIIConfig & getConfig() const

Defined in VirtualC64.h:514

Returns the component's current configuration.


getInfo ​

const

cpp
const VICIIInfo & getInfo() const

Defined 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() const

Defined in VirtualC64.h:527

Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).


getSpriteInfo ​

const

cpp
SpriteInfo getSpriteInfo(isize nr) const

Defined in VirtualC64.h:532

Returns information about a sprite.

Parameters ​

ParameterTypeDescription
nrisizeNumber of the sprite (0 .. 7)

getColor ​

const

cpp
u32 getColor(isize nr) const

Defined in VirtualC64.h:536

Returns the RGBA value of a color.


getColor ​

const

cpp
u32 getColor(isize nr, Palette palette) const

Defined in VirtualC64.h:540

Returns the RGBA value of a color from a color palette.