-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxprim.h
45 lines (29 loc) · 1.18 KB
/
xprim.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
/**
* 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
#define X_PRIM_TEXTURE (1<<0)
#define X_PRIM_NORMAL (1<<1)
#define X_PRIM_NO_CULL (1<<2)
/* all prims use whatever color has been entered in sceGuColor last */
void xPrimTriangle(ScePspFVector3* v0, ScePspFVector3* v1, ScePspFVector3* v2, int attr);
void xPrimPlane(float width, float height, int attr);
void xPrimBox(float x_length, float y_length, float z_length, int attr);
void xPrimCube(float length, int attr);
void xPrimEllipsoid(float x_radius, float y_radius, float z_radius, int slices, int rows, int attr);
void xPrimSphere(float radius, int slices, int rows, int attr);
void xPrimPyramid(float length, float width, float height, int attr);
void xPrimCone(float radius, float height, int slices, int attr);
void xPrimCylinder(float radius, float height, int slices, int attr);
void xPrimTorus(float radius, float thickness, int slices, int rows, int attr);
#ifdef __cplusplus
}
#endif