-
Notifications
You must be signed in to change notification settings - Fork 6
Current Adapters and their Configs
Gabe Rundlett edited this page Feb 15, 2023
·
3 revisions
typedef struct {
uint8_t const *data;
size_t size;
} GvoxByteBufferInputAdapterConfig;
typedef struct {
char const *filepath;
size_t byte_offset;
} GvoxFileInputAdapterConfig;
typedef struct {
size_t *out_size;
uint8_t **out_byte_buffer_ptr;
void *(*allocate)(size_t size);
} GvoxByteBufferOutputAdapterConfig;
typedef struct {
char const *filepath;
} GvoxFileOutputAdapterConfig;
// This adapter has no config
// This adapter has no config
// This adapter has no config
// This adapter has no config
typedef struct {
// If the config is null, or the value is -1, the default will be used.
// By default, the size of the map is 1024x1024x256
uint32_t size_x;
uint32_t size_y;
uint32_t size_z;
// This determines whether to make the insides of the map hollow or solid
// By default, this is set to 1.
uint8_t make_solid;
// This designates whether the data should be parsed as Ace of Spades,
// since Ace of Spades maps have no file header.
// By default, this is set to 0.
uint8_t is_ace_of_spades;
} GvoxVoxlapParseAdapterConfig;
typedef enum {
GVOX_COLORED_TEXT_SERIALIZE_ADAPTER_DOWNSCALE_MODE_NEAREST,
GVOX_COLORED_TEXT_SERIALIZE_ADAPTER_DOWNSCALE_MODE_LINEAR,
} GvoxColoredTextSerializeAdapterDownscaleMode;
typedef struct {
// By default, this should be 1.
// If set to n, then each 'pixel' will represent n*n*n voxels
uint32_t downscale_factor;
// By default, this is ..._NEAREST.
GvoxColoredTextSerializeAdapterDownscaleMode downscale_mode;
// Doesn't make sense to have a default for this, when the default channel is color data
uint32_t non_color_max_value;
} GvoxColoredTextSerializeAdapterConfig;
// This adapter has no config
// This adapter has no config