2016-11-19 09:28:01 +00:00
|
|
|
#include "graphics/buffer.h"
|
|
|
|
#include "graphics/texture.h"
|
|
|
|
#include "model/modelData.h"
|
|
|
|
#include "glfw.h"
|
2016-11-19 07:41:23 +00:00
|
|
|
#include "util.h"
|
2016-07-09 05:27:34 +00:00
|
|
|
|
2016-08-10 06:28:17 +00:00
|
|
|
#ifndef LOVR_MODEL_TYPES
|
|
|
|
#define LOVR_MODEL_TYPES
|
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;
|
2016-10-31 20:54:32 +00:00
|
|
|
Buffer* buffer;
|
2016-11-08 22:51:58 +00:00
|
|
|
Texture* texture;
|
2016-10-04 04:54:27 +00:00
|
|
|
} Model;
|
2016-08-10 06:28:17 +00:00
|
|
|
#endif
|
2016-10-04 04:54:27 +00:00
|
|
|
|
2016-11-05 22:56:58 +00:00
|
|
|
Model* lovrModelCreate(void* data, int size);
|
2016-11-19 07:41:23 +00:00
|
|
|
void lovrModelDestroy(const Ref* ref);
|
2016-11-02 03:56:29 +00:00
|
|
|
void lovrModelDraw(Model* model, float x, float y, float z, float scale, float angle, float ax, float ay, float az);
|
2016-11-08 22:51:58 +00:00
|
|
|
Texture* lovrModelGetTexture(Model* model);
|
|
|
|
void lovrModelSetTexture(Model* model, Texture* texture);
|