Class texture

Class Documentation

class legion::rendering::texture

Struct containing all the data needed for rendering.

Public Functions

math::ivec2 size() const
void resize(math::ivec2 size) const

Public Members

std::string name
app::gl_id textureId = invalid_id
std::string path
texture_components channels
texture_type type
texture_format format
channel_format fileFormat

Public Static Functions

static void to_resource(fs::basic_resource *resource, const texture &value)
static void from_resource(texture *value, const fs::basic_resource &resource)