summary refs log tree commit diff
path: root/src/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index a6b5e6b..4e68f90 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -52,6 +52,13 @@ struct Scores {
 	bool completed;
 };
 
+struct Fog {
+	GLfloat color[4];
+	GLfloat density;
+	GLfloat start;
+	GLfloat end;
+};
+
 #ifdef __cplusplus
 extern "C" {
 #endif // __cplusplus
@@ -66,6 +73,10 @@ extern "C" {
 	float randFloat();
 	int32_t randInt(int32_t at_least, int32_t at_most);
 	uint32_t randUint(uint32_t less_than);
+	void setFog(struct Fog*, GLfloat, GLfloat, GLfloat,
+	            GLfloat, GLfloat, GLfloat);
+	void tempFog(struct Fog*, GLfloat, GLfloat, GLfloat);
+	void resetFog(struct Fog*);
 #ifdef __cplusplus
 } // extern "C"
 #endif // __cplusplus