Class ModelCache

Class Documentation

class legion::rendering::ModelCache

Public Static Functions

static std::string get_model_name(id_type id)
static void overwrite_buffer(id_type id, buffer &newBuffer, uint bufferID, bool perInstance = false)
static void buffer_model(id_type id, const buffer &matrixBuffer)
static model_handle create_model(const std::string &name, const fs::view &file, mesh_import_settings settings = default_mesh_settings)
static model_handle create_model(const std::string &name, const fs::view &file, std::vector<material_handle> &materials, mesh_import_settings settings = default_mesh_settings)
static model_handle create_model(const std::string &name)
static model_handle create_model(const std::string &name, id_type meshId)
static model_handle create_model(id_type meshId)
static model_handle create_model(const std::string &name, mesh_handle mesh)
static model_handle create_model(mesh_handle mesh)
static model_handle get_handle(const std::string &name)
static model_handle get_handle(id_type id)
static mesh_handle get_mesh(const std::string &name)
static mesh_handle get_mesh(id_type id)
static void destroy_model(const std::string &name)