From bab0824608498d1079d4e9522f3014d3d538aabe Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 27 Apr 2018 20:56:00 +0100 Subject: Implement basic model loading of FMD format. The FMD (Faqe Model Data) format is a format designed for faqe. It stores vertex, element and material information and mesh information. This patch provides the basic implementation and use of this format. This patch also implements perspective projection, depth testing and view and model matrices. An example fmd file is provided. --- gl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gl.h') diff --git a/gl.h b/gl.h index 30e7862..112fc82 100644 --- a/gl.h +++ b/gl.h @@ -31,6 +31,11 @@ typedef float GLclampf; typedef double GLdouble; typedef double GLclampd; +enum { + GL_DEPTH_BUFFER_BIT = 0x100, + GL_COLOR_BUFFER_BIT = 0x4000, +}; + enum { GL_NO_ERROR = 0, GL_FALSE = 0, @@ -45,10 +50,10 @@ enum { GL_OUT_OF_MEMORY = 0x0505, GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506, GL_CONTEXT_LOST = 0x0507, + GL_DEPTH_TEST = 0x0b71, GL_UNSIGNED_INT = 0x1405, GL_FLOAT = 0x1406, GL_LINE = 0x1B01, - GL_COLOR_BUFFER_BIT = 0x4000, GL_ARRAY_BUFFER = 0x8892, GL_ELEMENT_ARRAY_BUFFER = 0x8893, GL_STREAM_DRAW = 0x88e0, -- cgit v1.2.3-54-g00ecf