2017-02-19 09:54:58 +00:00
|
|
|
#include "loaders/model.h"
|
2017-03-11 22:13:49 +00:00
|
|
|
#include "graphics/mesh.h"
|
2016-11-19 09:28:01 +00:00
|
|
|
#include "graphics/texture.h"
|
2017-01-21 03:55:54 +00:00
|
|
|
#include "math/math.h"
|
2016-11-19 09:28:01 +00:00
|
|
|
#include "glfw.h"
|
2016-11-19 07:41:23 +00:00
|
|
|
#include "util.h"
|
2016-07-09 05:27:34 +00:00
|
|
|
|
2017-01-26 10:20:30 +00:00
|
|
|
#pragma once
|
2016-11-26 07:15:04 +00:00
|
|
|
|
2016-10-04 04:54:27 +00:00
|
|
|
typedef struct {
|
2016-11-19 07:41:23 +00:00
|
|
|
Ref ref;
|
2016-10-04 04:54:27 +00:00
|
|
|
ModelData* modelData;
|
2017-03-11 22:13:49 +00:00
|
|
|
Mesh* mesh;
|
2016-11-08 22:51:58 +00:00
|
|
|
Texture* texture;
|
2016-10-04 04:54:27 +00:00
|
|
|
} Model;
|
2016-11-26 07:15:04 +00:00
|
|
|
|
2016-11-25 08:49:19 +00:00
|
|
|
Model* lovrModelCreate(ModelData* modelData);
|
2016-11-19 07:41:23 +00:00
|
|
|
void lovrModelDestroy(const Ref* ref);
|
2017-01-20 03:11:42 +00:00
|
|
|
void lovrModelDraw(Model* model, mat4 transform);
|
2016-11-08 22:51:58 +00:00
|
|
|
Texture* lovrModelGetTexture(Model* model);
|
|
|
|
void lovrModelSetTexture(Model* model, Texture* texture);
|