All functions
This page lists all public functions in alphabetical order. Include libtini.h for all functions, or one header from include/libtini/.
| Function | Header | Does |
|---|---|---|
ti_amem_available | amem.h | Tell if AMEM acceleration is active |
ti_amem_disable | amem.h | Return to CPU transfers |
ti_amem_enable | amem.h | Identify and enable AMEM acceleration |
ti_amem_last_error | amem.h | Last AMEM controller error byte |
ti_audio_clock_valid | audio.h | Tell if the device clock runs without a gap |
ti_audio_effect | audio.h | Play a prioritized tone on an effect voice |
ti_audio_effect_voice | audio.h | The nth voice left to effects |
ti_audio_envelope | audio.h | Start the AY envelope on music voices |
ti_audio_envelope_stop | audio.h | Return voices to score volume |
ti_audio_init | audio.h | Take the slot-4 card and start the clock |
ti_audio_mark_gap | audio.h | Pause audio before work that blocks |
ti_audio_reserve | audio.h | Choose the music voices |
ti_audio_resume_clock | audio.h | Resume after a gap |
ti_audio_shutdown | audio.h | Silence and release the card |
ti_audio_source_hz | audio.h | The assumed VIA clock rate |
ti_audio_tick_divisor | audio.h | VIA clocks per tick |
ti_audio_ticks | audio.h | The device tick count |
ti_audio_update | audio.h | Advance music, effects and speech |
ti_audio_voices | audio.h | Voices the driver serves |
ti_digits | graphics.h | Zero-padded decimal text |
ti_error_clear | types.h | Forget the kept error |
ti_error_first | types.h | The first kept error |
ti_error_keep | types.h | Keep a result if it is the first failure |
ti_file_last_error | storage.h | The last ProDOS error code |
ti_file_read | storage.h | Read a whole file into near memory |
ti_file_write | storage.h | Create or replace a file |
ti_gfx_animation_frame | graphics.h | Frame number for elapsed ticks |
ti_gfx_begin | graphics.h | Take the screen and set the palette |
ti_gfx_blit | graphics.h | Copy a rectangle between surfaces |
ti_gfx_budget | graphics.h | Limit and time publications |
ti_gfx_clear | graphics.h | Fill a surface |
ti_gfx_end | graphics.h | Restore the screen |
ti_gfx_line | graphics.h | Draw a line |
ti_gfx_map | graphics.h | Draw a tile map that scrolls |
ti_gfx_palette | graphics.h | Replace the sixteen colours |
ti_gfx_present | graphics.h | Publish a surface rectangle |
ti_gfx_present_rows | graphics.h | Publish packed rows from near memory |
ti_gfx_rect | graphics.h | Fill a rectangle |
ti_gfx_sprite | graphics.h | Draw a masked or keyed sprite |
ti_gfx_surface_create | graphics.h | Allocate a surface |
ti_gfx_surface_free | graphics.h | Free a surface |
ti_gfx_text | graphics.h | Text in the built-in font |
ti_gfx_text_font | graphics.h | Text in a bitmap font |
ti_gfx_text_opaque | graphics.h | Text over filled cells |
ti_init | memory.h | Grant RamWorks banks |
ti_input_buttons | input.h | The three button bits |
ti_input_held | input.h | The key held down now |
ti_input_key | input.h | Take a queued character |
ti_input_poll | input.h | Queue a waiting keypress |
ti_input_reset | input.h | Empty the key queue |
ti_joystick_read | input.h | Raw paddle readings |
ti_mouse_read | input.h | Reserved; unavailable |
ti_music_start | audio.h | Play an event score |
ti_music_stop | audio.h | Stop music |
ti_near_fill | memory.h | Checked fill in near memory |
ti_near_move | memory.h | Checked move in near memory |
ti_pack_load | storage.h | Load a pack entry into a resource |
ti_res_alloc | memory.h | Allocate a banked resource |
ti_res_copy | memory.h | Copy between or within resources |
ti_res_fill | memory.h | Fill part of a resource |
ti_res_free | memory.h | Free a resource |
ti_res_read | memory.h | Resource to near memory |
ti_res_write | memory.h | Near memory to resource |
ti_scene_add | scene.h | List a sprite |
ti_scene_begin | scene.h | Start a sprite scene |
ti_scene_draw | scene.h | Redraw and publish changed blocks |
ti_scene_forget | scene.h | The area shows only background now |
ti_scene_frame | scene.h | Start a new sprite list |
ti_scene_invalidate | scene.h | Redraw the whole area next time |
ti_shutdown | memory.h | Release all library resources |
ti_song_start | audio.h | Play a pattern song |
ti_speech_bind | audio.h | Choose the phrase bank |
ti_speech_busy | audio.h | Tell if speech plays or waits |
ti_speech_number | audio.h | Speak a number |
ti_speech_say | audio.h | Speak a phrase |
ti_speech_stop | audio.h | Cancel speech |
ti_speech_voice | audio.h | Preset, pitch and rate |
ti_steps_begin | timing.h | Start fixed-rate steps |
ti_steps_due | timing.h | Steps due now |
ti_steps_reset | timing.h | Restart steps from now |
ti_stick_read | input.h | Calibrated stick directions |
ti_stick_recalibrate | input.h | Measure the rest position again |
ti_time_begin | timing.h | Start elapsed and edge observation |
ti_time_note_gap | timing.h | Record a display-timing gap |
ti_time_poll | timing.h | Sample elapsed ticks and edges |
Types and macros
| Name | Header | Is |
|---|---|---|
ti_animation | graphics.h | A run of animation frames |
ti_audio_config | audio.h | Audio driver settings |
ti_bitmap_font | graphics.h | A banked bitmap font |
ti_error | types.h | A result code |
ti_gfx_stats | graphics.h | Publication statistics |
ti_handle | types.h | A banked resource |
ti_image | scene.h | A near sprite image |
ti_joystick | input.h | Raw paddle readings |
ti_music_event | audio.h | One event-score step |
ti_phrase | audio.h | Phoneme bytes of a phrase |
ti_rect | graphics.h | A signed rectangle |
ti_scene_config | scene.h | A scene's area, images and background |
TI_SCENE_STORAGE | scene.h | Defines the sprite list and strip |
ti_speech_bank | audio.h | Phrases and number words |
ti_sprite | graphics.h | An image with an optional mask |
ti_surface | graphics.h | Packed pixels in a resource |
ti_tick_source | timing.h | A device clock function |
ti_tilemap | graphics.h | Banked tile numbers |
ti_tileset | graphics.h | A tile atlas |
ti_time_sample | timing.h | Elapsed ticks and display edges |