package core:image/tga

Overview

package tga implements a TGA image writer for 8-bit RGB and RGBA images.

Types

Error ¶

Error :: image.Error

GA_Pixel ¶

GA_Pixel :: [2]u8

Image ¶

Image :: image.Image

Options ¶

Options :: image.Options

RGBA_Pixel ¶

RGBA_Pixel :: [4]u8

RGB_Pixel ¶

RGB_Pixel :: [3]u8

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 "odin" (img: ^image.Image) {…}

load_from_bytes ¶

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

load_from_context ¶

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

load_from_file ¶

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

save_to_file ¶

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

save_to_memory ¶

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

Procedure Groups

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.523670600 +0000 UTC