#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 TextureList; bool process_textures(const world_t* world, TextureList& outTextures);