1 /* 2 ******************************************************************************************* 3 * Dgame (a D game framework) - Copyright (c) Randy Schütt 4 * 5 * This software is provided 'as-is', without any express or implied warranty. 6 * In no event will the authors be held liable for any damages arising from 7 * the use of this software. 8 * 9 * Permission is granted to anyone to use this software for any purpose, 10 * including commercial applications, and to alter it and redistribute it 11 * freely, subject to the following restrictions: 12 * 13 * 1. The origin of this software must not be misrepresented; you must not claim 14 * that you wrote the original software. If you use this software in a product, 15 * an acknowledgment in the product documentation would be appreciated but is 16 * not required. 17 * 18 * 2. Altered source versions must be plainly marked as such, and must not be 19 * misrepresented as being the original software. 20 * 21 * 3. This notice may not be removed or altered from any source distribution. 22 ******************************************************************************************* 23 */ 24 module Dgame.Math.Geometry; 25 26 private: 27 28 import derelict.opengl3.deprecatedConstants; 29 import derelict.opengl3.constants; 30 31 public: 32 33 /** 34 * Geometry describes different geometric representations. 35 */ 36 enum Geometry { 37 Quads = GL_QUADS, /// Declare that the stored vertices are Quads. 38 QuadStrip = GL_QUAD_STRIP, /// Declare that the stored vertices are Quad Strips 39 Triangles = GL_TRIANGLES, /// Declare that the stored vertices are Triangles. 40 TriangleStrip = GL_TRIANGLE_STRIP, /// Declare that the stored vertices are Triangles Strips 41 TriangleFan = GL_TRIANGLE_FAN, /// Declare that the stored vertices are Triangles Fans. 42 Lines = GL_LINES, /// Declare that the stored vertices are Lines. 43 LineStrip = GL_LINE_STRIP, /// Declare that the stored vertices are Line Strips. 44 LineLoop = GL_LINE_LOOP, /// Declare that the stored vertices are Line Loops. 45 Polygon = GL_POLYGON, /// Declare that the stored vertices are Polygons. 46 }