-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxobj.h
More file actions
37 lines (28 loc) · 647 Bytes
/
xobj.h
File metadata and controls
37 lines (28 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* This file belongs to the 'xlab' game engine.
* Copyright 2009 xfacter
* Copyright 2016 wickles
* This work is licensed under the LGPLv3
* subject to all terms as reproduced in the included LICENSE file.
*/
#pragma once
#include "xconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct xObj {
int type;
int vtype;
ScePspFVector3 bbox[8];
ScePspFVector3 scale;
ScePspFVector3 pos;
int num_verts;
void* vertices;
} xObj;
xObj* xObjLoad(char* filename, int optimize);
void xObjFree(xObj* object);
void xObjTranslate(xObj* object);
void xObjDraw(xObj* object, int reverse_frontface);
#ifdef __cplusplus
}
#endif