package core:image/tga

⌘K
Ctrl+K
or
/

    Overview

    Reader and writer for 8-bit RGB and RGBA TGA images.

    Types

    Error ¶

    Error :: image.Error

    Related Procedures With Returns

    Image ¶

    Image :: image.Image

    Related Procedures With Parameters

    Related Procedures With Returns

    Options ¶

    Options :: image.Options

    Related Procedures With Parameters

    Constants

    IMAGE_DESCRIPTOR_INTERLEAVING_MASK ¶

    IMAGE_DESCRIPTOR_INTERLEAVING_MASK :: (1 << 6) | (1 << 7)

    IMAGE_DESCRIPTOR_RIGHT_MASK ¶

    IMAGE_DESCRIPTOR_RIGHT_MASK :: 1 << 4

    IMAGE_DESCRIPTOR_TOP_MASK ¶

    IMAGE_DESCRIPTOR_TOP_MASK :: 1 << 5

    Variables

    This section is empty.

    Procedures

    destroy ¶

    destroy :: proc(img: ^image.Image) {…}

    load_from_bytes ¶

    load_from_bytes :: proc(
    	data:      []u8, 
    	options:   image.Options = Options{}, 
    	allocator := context.allocator, 
    ) -> (img: ^image.Image, err: image.Error) {…}

    load_from_context ¶

    load_from_context :: proc(
    	ctx:       ^$C, 
    	options:   image.Options = Options{}, 
    	allocator := context.allocator, 
    ) -> (img: ^image.Image, err: image.Error) {…}

    load_from_file ¶

    load_from_file :: proc(
    	filename:  string, 
    	options:   image.Options = Options{}, 
    	allocator := context.allocator, 
    ) -> (img: ^image.Image, err: image.Error) {…}

    save_to_buffer ¶

    save_to_buffer :: proc(
    	output:    ^bytes.Buffer, 
    	img:       ^image.Image, 
    	options:   image.Options = Options{}, 
    	allocator := context.allocator, 
    ) -> (err: image.Error) {…}

    save_to_file ¶

    save_to_file :: proc(
    	output:    string, 
    	img:       ^image.Image, 
    	options:   image.Options = Options{}, 
    	allocator := context.allocator, 
    ) -> (err: image.Error) {…}

    Procedure Groups

    Source Files

    Generation Information

    Generated with odin version dev-2026-10 (vendor "odin") Windows_amd64 @ 2026-10-12 23:46:18.383355400 +0000 UTC