core/encoding/hxa

encoding_hxa

Types

15

Image_Type

Image_Type :: enum u8 { Image_Cube = 0, // 6 sided qube, in the order of: +x, -x, +y, -y, +z, -z. Image_1D = 1, // One dimensional pixel data. Image_2D = 2, // Two dimensional pixel data. Image_3D = 3, // Three dimensional pixel data. }Source

Pixel data is arranged in the following configurations

Layer_Data_Type

Layer_Data_Type :: enum u8 { Uint8 = 0, // 8-bit unsigned integer, Int32 = 1, // 32-bit little-endian signed integer Float = 2, // 32-bit little-endian IEEE 754 floating point value Double = 3, // 64-bit little-endian IEEE 754 floating point value }Source

Node

Node :: struct { meta_data: []Meta, content: union { Node_Geometry, Node_Image, }, }Source

A file consists of an array of nodes, All nodes have meta data. Geometry nodes have geometry, image nodes have pixels

Node_Type

Node_Type :: enum u8 { Meta_Only = 0, // node only containing meta data. Geometry = 1, // node containing a geometry mesh, and meta data. Image = 2, // node containing a 1D, 2D, 3D, or Cube image, and meta data. }Source

Constants

32

CONVENTION_HARD_BASE_VERTEX_LAYER_NAME

CONVENTION_HARD_BASE_VERTEX_LAYER_NAME :: "vertex"Source

Conventions ------------ Much of HxA's use is based on convention. HxA lets users store arbitrary data in its structure that can be parsed but whose semantic meaning does not need to be understood. A few conventions are hard, and some are soft. Hard convention that a user HAS to follow in order to produce a valid file. Hard conventions simplify parsing becaus the parser can make some assumptions. Soft convenbtions are basically recomendations of how to store common data. If you use HxA for something not covered by the conventions but need a convention for your use case. Please let us know so that we can add it! Hard conventions ----------------

Procedures

8

read

read :: proc(data: []u8, filename: untyped string = "<input>", print_error: untyped boolean = false, allocator: mem.Allocator = context.allocator, loc = #caller_location) -> (file: File, err: Read_Error)Source

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.