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
531 B
27 lines
531 B
#pragma once
|
|
|
|
struct Color
|
|
{
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
unsigned char r, g, b, a;
|
|
} 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 dominantColor;
|
|
};
|
|
|
|
typedef std::vector<TextureDescriptor> TextureList;
|
|
|
|
bool process_textures(const world_t* world, TextureList& outTextures);
|