⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gl.h

📁 OPENGL2.0用于ARM11 3D处理
💻 H
📖 第 1 页 / 共 3 页
字号:
#ifndef __gl_h_#define __gl_h_#ifdef __cplusplusextern "C" {#endif#ifdef WINCE_DLL	#include "GL_ioctl.h"#endif/*** License Applicability. Except to the extent portions of this file are** made subject to an alternative license as permitted in the SGI Free** Software License B, Version 1.0 (the "License"), the contents of this** file are subject only to the provisions of the License. You may not use** this file except in compliance with the License. You may obtain a copy** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:**** http://oss.sgi.com/projects/FreeB**** Note that, as provided in the License, the Software is distributed on an** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.**** Original Code. The Original Code is: OpenGL Sample Implementation,** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.** Copyright in any portions created by third parties is as indicated** elsewhere herein. All Rights Reserved.**** Additional Notice Provisions: The application programming interfaces** established by SGI in conjunction with the Original Code are The** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X** Window System(R) (Version 1.3), released October 19, 1998. This software** was created using the OpenGL(R) version 1.2.1 Sample Implementation** published by SGI, but has not been independently verified as being** compliant with the OpenGL(R) version 1.2.1 Specification.*/#ifdef FIMG_GLES_11	#include "OGL2Func.h"#endif#define EN_EXT_ALPHA_TEST_EXP#define EN_EXT_VARYING_INTERPOLATION_EXP#define EN_EXT_LOGIC_OP_EXP#  define GL_API extern#define GL_APIENTRY #ifndef GLAPI#	define GLAPI GL_API#endif// GLenums #defines made into real enums for easier debugging while developmenttypedef unsigned int    GLenum;typedef unsigned char   GLboolean;typedef unsigned int    GLbitfield;typedef signed char     GLbyte;typedef short           GLshort;typedef int             GLint;typedef int             GLsizei;typedef unsigned char   GLubyte;typedef unsigned short  GLushort;typedef unsigned int    GLuint;typedef float           GLfloat;typedef float           GLclampf;typedef int             GLfixed;typedef int             GLclampx;typedef int             GLintptr;typedef int             GLsizeiptr;/* OpenGL ES core versions */#define GL_OES_VERSION_2_0                1// GLenums #defines made into real enums for easier debugging while development/* ClearBufferMask */#define GL_DEPTH_BUFFER_BIT               0x00000100#define GL_STENCIL_BUFFER_BIT             0x00000400#define GL_COLOR_BUFFER_BIT               0x00004000/* Boolean */#define GL_FALSE                          0#define GL_TRUE                           1/* BeginMode */#define GL_POINTS                         0x0000#define GL_LINES                          0x0001#define GL_LINE_LOOP                      0x0002#define GL_LINE_STRIP                     0x0003#define GL_TRIANGLES                      0x0004#define GL_TRIANGLE_STRIP                 0x0005#define GL_TRIANGLE_FAN                   0x0006/* AlphaFunction */#define GL_NEVER                          0x0200#define GL_LESS                           0x0201#define GL_EQUAL                          0x0202#define GL_LEQUAL                         0x0203#define GL_GREATER                        0x0204#define GL_NOTEQUAL                       0x0205#define GL_GEQUAL                         0x0206#define GL_ALWAYS                         0x0207/* BlendingFactorDest */#define GL_ZERO                           0#define GL_ONE                            1#define GL_SRC_COLOR                      0x0300#define GL_ONE_MINUS_SRC_COLOR            0x0301#define GL_SRC_ALPHA                      0x0302#define GL_ONE_MINUS_SRC_ALPHA            0x0303#define GL_DST_ALPHA                      0x0304#define GL_ONE_MINUS_DST_ALPHA            0x0305/* BlendingFactorSrc *//*      GL_ZERO *//*      GL_ONE */#define GL_DST_COLOR                      0x0306#define GL_ONE_MINUS_DST_COLOR            0x0307#define GL_SRC_ALPHA_SATURATE             0x0308/*      GL_SRC_ALPHA *//*      GL_ONE_MINUS_SRC_ALPHA *//*      GL_DST_ALPHA *//*      GL_ONE_MINUS_DST_ALPHA *//* BlendEquationSeperate */#define GL_FUNC_ADD                        0x8006#define GL_BLEND_EQUATION                  0x8009#define GL_BLEND_EQUATION_RGB              0x8009	/* same as BLEND_EQUATION */#define GL_BLEND_EQUATION_ALPHA            0x883D/* BlendSubtract */#define GL_FUNC_SUBTRACT                   0x800A#define GL_FUNC_REVERSE_SUBTRACT           0x800B/* Separate Blend Functions i.e. GL_OES_blend_func_seperate */#define GL_BLEND_DST_RGB                   0x80C8#define GL_BLEND_SRC_RGB                   0x80C9#define GL_BLEND_DST_ALPHA                 0x80CA#define GL_BLEND_SRC_ALPHA                 0x80CB#define GL_CONSTANT_COLOR                  0x8001#define GL_ONE_MINUS_CONSTANT_COLOR        0x8002#define GL_CONSTANT_ALPHA                  0x8003#define GL_ONE_MINUS_CONSTANT_ALPHA        0x8004#define GL_BLEND_COLOR                     0x8005/* Buffer Objects */#define GL_ARRAY_BUFFER                   0x8892#define GL_ELEMENT_ARRAY_BUFFER           0x8893#define GL_ARRAY_BUFFER_BINDING           0x8894#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895#define GL_STATIC_DRAW                    0x88E4#define GL_DYNAMIC_DRAW                   0x88E8#define GL_STREAM_DRAW                    0x88E0#define GL_WRITE_ONLY                     0x88B9#define GL_BUFFER_SIZE                    0x8764#define GL_BUFFER_USAGE                   0x8765#define GL_BUFFER_ACCESS                  0x88BB#define GL_CURRENT_VERTEX_ATTRIB          0x8626/* CullFaceMode */#define GL_FRONT                          0x0404#define GL_BACK                           0x0405#define GL_FRONT_AND_BACK                 0x0408/* DepthFunction *//*      GL_NEVER *//*      GL_LESS *//*      GL_EQUAL *//*      GL_LEQUAL *//*      GL_GREATER *//*      GL_NOTEQUAL *//*      GL_GEQUAL *//*      GL_ALWAYS *//* EnableCap */#define GL_TEXTURE_2D                     0x0DE1#define GL_TEXTURE_3D                     0x806F#define GL_CULL_FACE                      0x0B44#define GL_BLEND                          0x0BE2#define GL_COLOR_LOGIC_OP                 0x0BF2#define GL_DITHER                         0x0BD0#define GL_STENCIL_TEST                   0x0B90#define GL_DEPTH_TEST                     0x0B71#define GL_SCISSOR_TEST                   0x0C11#define GL_POLYGON_OFFSET_FILL            0x8037#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E#define GL_SAMPLE_COVERAGE                0x80A0/* ErrorCode */#define GL_NO_ERROR                       0#define GL_INVALID_ENUM                   0x0500#define GL_INVALID_VALUE                  0x0501#define GL_INVALID_OPERATION              0x0502#define GL_STACK_OVERFLOW                 0x0503#define GL_STACK_UNDERFLOW                0x0504#define GL_OUT_OF_MEMORY                  0x0505/* FrontFaceDirection */#define GL_CW                             0x0900#define GL_CCW                            0x0901/* GetPName */#define GL_POINT_SIZE                     0x0B11#define GL_POINT_SIZE_MIN                 0x8126#define GL_POINT_SIZE_MAX                 0x8127#define GL_LINE_WIDTH                     0x0B21#define GL_ALIASED_POINT_SIZE_RANGE       0x846D#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E#define GL_CULL_FACE_MODE                 0x0B45#define GL_FRONT_FACE                     0x0B46#define GL_SHADE_MODEL                    0x0B54#define GL_DEPTH_RANGE                    0x0B70#define GL_DEPTH_WRITEMASK                0x0B72#define GL_DEPTH_CLEAR_VALUE              0x0B73#define GL_DEPTH_FUNC                     0x0B74#define GL_STENCIL_CLEAR_VALUE            0x0B91#define GL_STENCIL_FUNC                   0x0B92#define GL_STENCIL_FAIL                   0x0B94#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96#define GL_STENCIL_REF                    0x0B97#define GL_STENCIL_VALUE_MASK             0x0B93#define GL_STENCIL_WRITEMASK              0x0B98#define GL_STENCIL_BACK_FUNC              0x8800#define GL_STENCIL_BACK_FAIL              0x8801#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803#define GL_STENCIL_BACK_REF               0x8CA3#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4#define GL_STENCIL_BACK_WRITEMASK         0x8CA5#define GL_VIEWPORT                       0x0BA2#define GL_BLEND_DST                      0x0BE0#define GL_BLEND_SRC                      0x0BE1#define GL_LOGIC_OP_MODE                  0x0BF0#define GL_SCISSOR_BOX                    0x0C10#define GL_SCISSOR_TEST                   0x0C11#define GL_COLOR_CLEAR_VALUE              0x0C22#define GL_COLOR_WRITEMASK                0x0C23#define GL_UNPACK_ALIGNMENT               0x0CF5#define GL_PACK_ALIGNMENT                 0x0D05#define GL_MAX_TEXTURE_SIZE               0x0D33#define GL_MAX_VIEWPORT_DIMS              0x0D3A#define GL_MAX_ELEMENTS_VERTICES          0x80E8#define GL_MAX_ELEMENTS_INDICES           0x80E9#define GL_MAX_TEXTURE_UNITS              0x84E2#define GL_SUBPIXEL_BITS                  0x0D50#define GL_RED_BITS                       0x0D52#define GL_GREEN_BITS                     0x0D53#define GL_BLUE_BITS                      0x0D54#define GL_ALPHA_BITS                     0x0D55#define GL_DEPTH_BITS                     0x0D56#define GL_STENCIL_BITS                   0x0D57#define GL_POLYGON_OFFSET_UNITS           0x2A00#define GL_POLYGON_OFFSET_FILL            0x8037#define GL_POLYGON_OFFSET_FACTOR          0x8038#define GL_TEXTURE_BINDING_2D             0x8069#define GL_TEXTURE_BINDING_3D             0x806A#define GL_SAMPLE_BUFFERS                 0x80A8#define GL_SAMPLES                        0x80A9#define GL_SAMPLE_COVERAGE_VALUE          0x80AA#define GL_SAMPLE_COVERAGE_INVERT         0x80AB/* GetTextureParameter *//*      GL_TEXTURE_MAG_FILTER *//*      GL_TEXTURE_MIN_FILTER *//*      GL_TEXTURE_WRAP_S *//*      GL_TEXTURE_WRAP_T */#define GL_NUM_COMPRESSED_TEXTURE_FORMATS       0x86A2#define GL_COMPRESSED_TEXTURE_FORMATS           0x86A3/* HintMode */#define GL_DONT_CARE                      0x1100#define GL_FASTEST                        0x1101#define GL_NICEST                         0x1102/* HintTarget */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -