All functions

This page lists all public functions in alphabetical order. Include libtini.h for all functions, or one header from include/libtini/.

FunctionHeaderDoes
ti_amem_availableamem.hTell if AMEM acceleration is active
ti_amem_disableamem.hReturn to CPU transfers
ti_amem_enableamem.hIdentify and enable AMEM acceleration
ti_amem_last_erroramem.hLast AMEM controller error byte
ti_audio_clock_validaudio.hTell if the device clock runs without a gap
ti_audio_effectaudio.hPlay a prioritized tone on an effect voice
ti_audio_effect_voiceaudio.hThe nth voice left to effects
ti_audio_envelopeaudio.hStart the AY envelope on music voices
ti_audio_envelope_stopaudio.hReturn voices to score volume
ti_audio_initaudio.hTake the slot-4 card and start the clock
ti_audio_mark_gapaudio.hPause audio before work that blocks
ti_audio_reserveaudio.hChoose the music voices
ti_audio_resume_clockaudio.hResume after a gap
ti_audio_shutdownaudio.hSilence and release the card
ti_audio_source_hzaudio.hThe assumed VIA clock rate
ti_audio_tick_divisoraudio.hVIA clocks per tick
ti_audio_ticksaudio.hThe device tick count
ti_audio_updateaudio.hAdvance music, effects and speech
ti_audio_voicesaudio.hVoices the driver serves
ti_digitsgraphics.hZero-padded decimal text
ti_error_cleartypes.hForget the kept error
ti_error_firsttypes.hThe first kept error
ti_error_keeptypes.hKeep a result if it is the first failure
ti_file_last_errorstorage.hThe last ProDOS error code
ti_file_readstorage.hRead a whole file into near memory
ti_file_writestorage.hCreate or replace a file
ti_gfx_animation_framegraphics.hFrame number for elapsed ticks
ti_gfx_begingraphics.hTake the screen and set the palette
ti_gfx_blitgraphics.hCopy a rectangle between surfaces
ti_gfx_budgetgraphics.hLimit and time publications
ti_gfx_cleargraphics.hFill a surface
ti_gfx_endgraphics.hRestore the screen
ti_gfx_linegraphics.hDraw a line
ti_gfx_mapgraphics.hDraw a tile map that scrolls
ti_gfx_palettegraphics.hReplace the sixteen colours
ti_gfx_presentgraphics.hPublish a surface rectangle
ti_gfx_present_rowsgraphics.hPublish packed rows from near memory
ti_gfx_rectgraphics.hFill a rectangle
ti_gfx_spritegraphics.hDraw a masked or keyed sprite
ti_gfx_surface_creategraphics.hAllocate a surface
ti_gfx_surface_freegraphics.hFree a surface
ti_gfx_textgraphics.hText in the built-in font
ti_gfx_text_fontgraphics.hText in a bitmap font
ti_gfx_text_opaquegraphics.hText over filled cells
ti_initmemory.hGrant RamWorks banks
ti_input_buttonsinput.hThe three button bits
ti_input_heldinput.hThe key held down now
ti_input_keyinput.hTake a queued character
ti_input_pollinput.hQueue a waiting keypress
ti_input_resetinput.hEmpty the key queue
ti_joystick_readinput.hRaw paddle readings
ti_mouse_readinput.hReserved; unavailable
ti_music_startaudio.hPlay an event score
ti_music_stopaudio.hStop music
ti_near_fillmemory.hChecked fill in near memory
ti_near_movememory.hChecked move in near memory
ti_pack_loadstorage.hLoad a pack entry into a resource
ti_res_allocmemory.hAllocate a banked resource
ti_res_copymemory.hCopy between or within resources
ti_res_fillmemory.hFill part of a resource
ti_res_freememory.hFree a resource
ti_res_readmemory.hResource to near memory
ti_res_writememory.hNear memory to resource
ti_scene_addscene.hList a sprite
ti_scene_beginscene.hStart a sprite scene
ti_scene_drawscene.hRedraw and publish changed blocks
ti_scene_forgetscene.hThe area shows only background now
ti_scene_framescene.hStart a new sprite list
ti_scene_invalidatescene.hRedraw the whole area next time
ti_shutdownmemory.hRelease all library resources
ti_song_startaudio.hPlay a pattern song
ti_speech_bindaudio.hChoose the phrase bank
ti_speech_busyaudio.hTell if speech plays or waits
ti_speech_numberaudio.hSpeak a number
ti_speech_sayaudio.hSpeak a phrase
ti_speech_stopaudio.hCancel speech
ti_speech_voiceaudio.hPreset, pitch and rate
ti_steps_begintiming.hStart fixed-rate steps
ti_steps_duetiming.hSteps due now
ti_steps_resettiming.hRestart steps from now
ti_stick_readinput.hCalibrated stick directions
ti_stick_recalibrateinput.hMeasure the rest position again
ti_time_begintiming.hStart elapsed and edge observation
ti_time_note_gaptiming.hRecord a display-timing gap
ti_time_polltiming.hSample elapsed ticks and edges

Types and macros

NameHeaderIs
ti_animationgraphics.hA run of animation frames
ti_audio_configaudio.hAudio driver settings
ti_bitmap_fontgraphics.hA banked bitmap font
ti_errortypes.hA result code
ti_gfx_statsgraphics.hPublication statistics
ti_handletypes.hA banked resource
ti_imagescene.hA near sprite image
ti_joystickinput.hRaw paddle readings
ti_music_eventaudio.hOne event-score step
ti_phraseaudio.hPhoneme bytes of a phrase
ti_rectgraphics.hA signed rectangle
ti_scene_configscene.hA scene's area, images and background
TI_SCENE_STORAGEscene.hDefines the sprite list and strip
ti_speech_bankaudio.hPhrases and number words
ti_spritegraphics.hAn image with an optional mask
ti_surfacegraphics.hPacked pixels in a resource
ti_tick_sourcetiming.hA device clock function
ti_tilemapgraphics.hBanked tile numbers
ti_tilesetgraphics.hA tile atlas
ti_time_sampletiming.hElapsed ticks and display edges