Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/Graphics/Legacy/v4/Scene3DLegacyv4.hpp
1188 views
1
2
namespace Legacy
3
{
4
5
namespace v4
6
{
7
8
#define LEGACY_v4_VERTEXBUFFER_SIZE (0x1000)
9
#define LEGACY_v4_FACEBUFFER_SIZE (0x400)
10
11
extern Face faceBuffer[LEGACY_v4_FACEBUFFER_SIZE];
12
extern Vertex vertexBuffer[LEGACY_v4_VERTEXBUFFER_SIZE];
13
extern Vertex vertexBufferT[LEGACY_v4_VERTEXBUFFER_SIZE];
14
15
extern DrawListEntry3D drawList3D[LEGACY_v4_FACEBUFFER_SIZE];
16
17
extern int32 fogColor;
18
extern int32 fogStrength;
19
20
void SetIdentityMatrix(Matrix *matrix);
21
void MatrixMultiply(Matrix *matrixA, Matrix *matrixB);
22
void MatrixTranslateXYZ(Matrix *Matrix, int32 x, int32 y, int32 z);
23
void MatrixScaleXYZ(Matrix *matrix, int32 scaleX, int32 scaleY, int32 scaleZ);
24
void MatrixRotateX(Matrix *matrix, int32 rotationX);
25
void MatrixRotateY(Matrix *matrix, int32 rotationY);
26
void MatrixRotateZ(Matrix *matrix, int32 rotationZ);
27
void MatrixRotateXYZ(Matrix *matrix, int16 rotationX, int16 rotationY, int16 rotationZ);
28
void MatrixInverse(Matrix *matrix);
29
void TransformVertexBuffer();
30
void TransformVertices(Matrix *matrix, int32 startIndex, int32 endIndex);
31
void Sort3DDrawList();
32
void Draw3DScene(int32 spriteSheetID);
33
34
} // namespace v4
35
36
} // namespace Legacy
37