-
Notifications
You must be signed in to change notification settings - Fork 2
/
xvertex.h
59 lines (35 loc) · 1.34 KB
/
xvertex.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* 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 <psptypes.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Vertex */
int texture_bits(int vtype);
int color_bits(int vtype);
int normal_bits(int vtype);
int vertex_bits(int vtype);
int texture_offset(int vtype);
int color_offset(int vtype);
int normal_offset(int vtype);
int vertex_offset(int vtype);
int total_offset(int vtype);
void xVertSoftNormals(int vtype, int count, void* vertices);
void xVertHardNormals(int prim, int vtype, int count, void* vertices);
void xVertTranslate(int vtype, int count, void* vertices, ScePspFVector3* translate);
void xVertRotateX(int vtype, int count, void* vertices, float radians);
void xVertRotateY(int vtype, int count, void* vertices, float radians);
void xVertRotateZ(int vtype, int count, void* vertices, float radians);
void* xVertNewTranslated(int vtype, int count, void* vertices, ScePspFVector3* translate);
void* xVertNewRotatedX(int vtype, int count, void* vertices, float radians);
void* xVertNewRotatedY(int vtype, int count, void* vertices, float radians);
void* xVertNewRotatedZ(int vtype, int count, void* vertices, float radians);
#ifdef __cplusplus
}
#endif