taisei/src/resource/model.h
2021-08-31 23:34:46 +03:00

26 lines
629 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#pragma once
#include "taisei.h"
#include "resource.h"
#include "renderer/api.h"
struct Model {
VertexArray *vertex_array;
size_t num_vertices;
size_t num_indices;
size_t offset;
Primitive primitive;
};
DEFINE_RESOURCE_GETTER(Model, res_model, RES_MODEL)
DEFINE_OPTIONAL_RESOURCE_GETTER(Model, res_model_optional, RES_MODEL)
extern ResourceHandler model_res_handler;