Oh yeah, it's all coming together

This commit is contained in:
2021-11-07 10:36:39 -08:00
parent b6cc69eef6
commit 8792ea34a3
13 changed files with 286 additions and 348 deletions

View File

@ -0,0 +1,29 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#include "texture.h"
#define MANAGED_TEXTURE_SCALE_MAX 4
typedef struct {
int16_t width;
int16_t height;
uint8_t scale;
} scaledtexturescale_t;
typedef struct {
uint8_t channels;
char *file;
char *path;
int16_t baseWidth;
int16_t baseHeight;
scaledtexturescale_t scales[MANAGED_TEXTURE_SCALE_MAX];
uint8_t scaleCount;
} scaledtexture_t;