Struct tic80::Tic80

source ·
pub struct Tic80 {
    pub display: Display,
    pub gamepads: [GamePadEnum; 4],
    pub keyboard: Keyboard,
    pub mouse: AddressMem<Mouse>,
    pub sound: AddressMem<[SoundRegister; 4]>,
    pub sfx: AddressMem<[Sfx; 64]>,
    pub music_patterns: AddressMem<[MusicPattern; 60]>,
    pub sprite_flags: AddressMem<[u8; 512]>,
    pub persistent_mem: AddressMem<[u8; 1024]>,
}

Fields§

§display: Display§gamepads: [GamePadEnum; 4]§keyboard: Keyboard§mouse: AddressMem<Mouse>§sound: AddressMem<[SoundRegister; 4]>§sfx: AddressMem<[Sfx; 64]>§music_patterns: AddressMem<[MusicPattern; 60]>§sprite_flags: AddressMem<[u8; 512]>§persistent_mem: AddressMem<[u8; 1024]>

Implementations§

source§

impl Tic80

source

pub unsafe fn from_offset(offset: usize) -> Self

source

pub fn trace<C: AsRef<CStr>>(text: C, color: Option<u8>)

source

pub fn trace_str<S: AsRef<str>>(text: S, color: Option<u8>)

source§

impl Tic80

source

pub fn sync(&mut self, mask: Option<SectionMask>, bank: u8, to_cart: bool)

source

pub fn exit(&mut self)

source

pub fn tstamp(&self) -> SystemTime

source

pub fn time(&self) -> Duration

Auto Trait Implementations§

§

impl RefUnwindSafe for Tic80

§

impl !Send for Tic80

§

impl !Sync for Tic80

§

impl Unpin for Tic80

§

impl UnwindSafe for Tic80

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.