MercuryDisplayTypes.h

Go to the documentation of this file.
00001 #ifndef MERCURYDISPLAYTYPES_H
00002 #define MERCURYDISPLAYTYPES_H
00003 
00005 enum DRAWTYPES
00006 {
00007     MGL_TRIANGLE = 0,
00008     MGL_QUAD,
00009     MGL_POINT,
00010     MGL_STRIP,
00011     MGL_FAN,
00012     MGL_INVALID
00013 };
00014 
00016 enum MATRIXMODE
00017 {
00018     MODELVIEW = 0,
00019     PROJECTION,
00020     TEXTURE
00021 };
00022 
00023 struct DisplayDimensions
00024 {
00025     float width;
00026     float height;
00027 };
00028 
00030 enum PROJECTIONTYPE
00031 {
00032     DO_NOT_CHANGE = 0,
00033     PERSPECTIVE,
00034     ORTHOGRAPHIC,
00035 };
00036 
00037 enum STENCILOPS
00038 {
00039     SO_KEEP,
00040     S0_ZERO,
00041     S0_REPLACE,
00042     SO_INCR,
00043     SO_DECR,
00044     SO_INVERT
00045 };
00046 
00047 enum TFUNCT
00048 {
00049     TF_NEVER,
00050     TF_LESS,
00051     TF_LEQUAL,
00052     TF_GREATER,
00053     TF_GEQUAL,
00054     TF_EQUAL,
00055     TF_NOTEQUAL,
00056     TF_ALWAYS
00057 };
00058 
00059 struct Capabilities
00060 {
00061     Capabilities()
00062         :multittexture(false), glsl(true), pointsprite(false), vbo(false), vsync(false)
00063     {}
00064 
00065     bool multittexture;
00066     bool glsl;
00067     bool pointsprite;
00068     bool vbo;
00069     bool vsync;
00070 };
00071 
00072 #endif
00073 
00074 /* 
00075  * Copyright (c) 2005-2006, Joshua Allen
00076  * All rights reserved.
00077  *
00078  * Redistribution and use in source and binary forms, with or
00079  * without modification, are permitted provided that the following
00080  * conditions are met:
00081  *  -   Redistributions of source code must retain the above
00082  *      copyright notice, this list of conditions and the following disclaimer.
00083  *  -   Redistributions in binary form must reproduce the above copyright
00084  *      notice, this list of conditions and the following disclaimer in
00085  *      the documentation and/or other materials provided with the distribution.
00086  *  -   Neither the name of the Mercury Engine nor the names of its
00087  *      contributors may be used to endorse or promote products derived from
00088  *      this software without specific prior written permission.
00089  *
00090  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00091  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00092  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00093  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
00094  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00095  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00096  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00097  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00098  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00099  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00100  */
00101 
00102 

Hosted by SourceForge.net Logo