Tools for preprocessing data files from Quake to make them suitable for use on PS1 hardware
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
529 B

#pragma once
struct Color
{
union
{
struct
{
unsigned char a, r, g, b;
} rgb;
unsigned int value;
unsigned char channel[4];
};
};
struct TextureDescriptor
{
ps1bsp_texture_t ps1tex;
unsigned char w, h; // Width and height of the selected texture mip level
unsigned char uoffs, voffs; // Texture coordinate offset within the texture page
Color averageColor;
Color medianColor;
};
typedef std::vector<TextureDescriptor> TextureList;
bool process_textures(const world_t* world, TextureList& outTextures);