summaryrefslogtreecommitdiff
path: root/include/glu3.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/glu3.h')
-rw-r--r--include/glu3.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/glu3.h b/include/glu3.h
index 1c31c15..c8ac9dc 100644
--- a/include/glu3.h
+++ b/include/glu3.h
@@ -583,6 +583,31 @@ void gluTranspose4m(GLUmat4 *result, const GLUmat4 *m);
*/
extern const GLUmat4 gluIdentityMatrix;
+/**
+ * Load a text file from disk
+ *
+ * \param file_name Name of the file to be loaded
+ *
+ * Loads data from a named text file and returns a pointer to that data to the
+ * caller. This may be useful, for example, for loading shader code from flies
+ * on disk.
+ *
+ * The pointer returned by this function should later be released by calling
+ * \c gluUnloadTextFile.
+ *
+ * \note
+ * The data pointed to by the return value if this function really is
+ * constant. On some systems this function may be implemented by creating a
+ * read-only mapping of the file. Writes to such data will result in program
+ * termination.
+ */
+extern const GLchar *gluLoadTextFile(const char *file_name);
+
+/**
+ * Release data previously loaded with gluLoadTextFile.
+ */
+extern void gluUnloadTextFile(const GLchar *text);
+
#ifdef __cplusplus
};
#endif