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