MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
mgdl-opengl_util.h
1#pragma once
2
3#include <mgdl/mgdl-opengl.h>
4#include <mgdl/mgdl-vector.h>
5#include <mgdl/mgdl-color.h>
6
7#ifdef __cplusplus
8extern "C"
9{
10#endif
16 void mgdl_glClear(GLbitfield flags);
17
18 // NOTE: This exists just to make it easier
19 // to init correctly, because Wii needs more setup than PC
20 // platforms to get the same result
21 void mgdl_InitPerspectiveProjection(float fovy, float nearZ, float farZ);
22 void mgdl_InitOrthoProjection(void);
23
24 // Helper functions to do common OpenGL things
25 void mgdl_glSetTransparency(bool enabled);
26 void mgdl_glSetAlphaTest(bool enabled);
27
28 void mgdl_glColor3f(Color4f* color);
29 void mgdl_glColor4f(Color4f* color);
30 void mgdl_glColor4fa(Color4f* color, float alpha);
31 void mgdl_glClearColor4f(Color4f* color);
32
33 void mgdl_glVertexV3F(V3f);
34 void mgdl_glVertexV3F_xy(V3f);
35
36 void mgdl_glTriangleV3F(V3f a, V3f b, V3f c);
37 void mgdl_glTriangleV3F_xy(V3f a, V3f b, V3f c);
38
39 void mgdl_SetFaceCulling(bool enabled);
40
41 void mgdl_SetDepthTest(bool enabled);
42
43
44 // Light status
45 void mgdl_SetLightingEnabled(bool enabled);
46 bool mgdl_GetLightingEnabled(void);
47 GLint mgdl_EnableLightGetIndex(void);
48 void mgdl_DisableLightIndex(GLint index);
49
55void mgdl_InitCamera(V3f cameraPos, V3f cameraTarget, V3f cameraUp);
56
57#ifdef __cplusplus
58}
59#endif
Color struct and functions.
Definition mgdl-color.h:54