package core:image/tga
⌘K
Ctrl+K
or
/
Overview
package tga implements a TGA image writer for 8-bit RGB and RGBA images.
Index
Variables (0)
This section is empty.
Procedures (6)
Types
GA_Pixel ¶
GA_Pixel :: [2]u8
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
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: ^$T, 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
load ¶
load :: proc{ load_from_file, load_from_bytes, load_from_context, }
save ¶
save :: proc{ save_to_buffer, save_to_file, }
Source Files
Generation Information
Generated with odin version dev-2024-11 (vendor "odin") Windows_amd64 @ 2024-11-16 21:10:09.868343500 +0000 UTC