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

📄 gles.h

📁 OPENGL2.0用于ARM11 3D处理
💻 H
📖 第 1 页 / 共 3 页
字号:
#ifndef __gles_h_#define __gles_h_#ifdef __cplusplusextern "C" {#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.*/#if defined(AEE_SIMULATOR)#define __GL_EXPORTS#endif#define __GL_EXPORTS#ifdef _WIN32#   ifdef __GL_EXPORTS#       define GL_API __declspec(dllexport)#   else#       define GL_API __declspec(dllimport)#   endif#else#   ifdef __GL_EXPORTS#       define GL_API#   else#       define GL_API extern#   endif#endif#define GL_APIENTRY#ifndef GLAPI#	define GLAPI GL_API#endif#ifndef APIENTRY#	define APIENTRY #endiftypedef 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 void            GLvoid;typedef int             GLfixed;typedef int             GLclampx;typedef int             GLintptr;typedef int             GLsizeiptr;/*************************************************************//* OpenGL ES core versions */#define GL_OES_VERSION_1_0                1//#define GL_OES_VERSION_1_1                1/* Extensions */#define GL_OES_byte_coordinates           1#define GL_OES_compressed_paletted_texture 1#define GL_OES_draw_texture               1#define GL_OES_fixed_point                1#define GL_OES_matrix_get                 1#define GL_OES_matrix_palette             1#define GL_OES_point_size_array           1#define  GL_OES_point_sprite            1   #define GL_OES_read_format                1#define GL_OES_single_precision           1/* 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 *//* ClipPlaneName */#define GL_CLIP_PLANE0                    0x3000#define GL_CLIP_PLANE1                    0x3001#define GL_CLIP_PLANE2                    0x3002#define GL_CLIP_PLANE3                    0x3003#define GL_CLIP_PLANE4                    0x3004#define GL_CLIP_PLANE5                    0x3005/* ColorMaterialFace *//*      GL_FRONT_AND_BACK *//* ColorMaterialParameter *//*      GL_AMBIENT_AND_DIFFUSE *//* ColorPointerType *//*      GL_UNSIGNED_BYTE *//*      GL_FLOAT *//*      GL_FIXED *//* 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_FOG                            0x0B60#define GL_LIGHTING                       0x0B50#define GL_TEXTURE_2D                     0x0DE1#define GL_CULL_FACE                      0x0B44#define GL_ALPHA_TEST                     0x0BC0#define GL_BLEND                          0x0BE2#define GL_COLOR_LOGIC_OP                 0x0BF2#define GL_DITHER                         0x0BD0#define GL_STENCIL_TEST                   0x0B90#define GL_DEPTH_TEST                     0x0B71/*      GL_LIGHT0 *//*      GL_LIGHT1 *//*      GL_LIGHT2 *//*      GL_LIGHT3 *//*      GL_LIGHT4 *//*      GL_LIGHT5 *//*      GL_LIGHT6 *//*      GL_LIGHT7 */#define GL_POINT_SMOOTH                   0x0B10#define GL_LINE_SMOOTH                    0x0B20#define GL_SCISSOR_TEST                   0x0C11#define GL_COLOR_MATERIAL                 0x0B57#define GL_NORMALIZE                      0x0BA1#define GL_RESCALE_NORMAL                 0x803A#define GL_POLYGON_OFFSET_FILL            0x8037#define GL_VERTEX_ARRAY                   0x8074#define GL_NORMAL_ARRAY                   0x8075#define GL_COLOR_ARRAY                    0x8076#define GL_TEXTURE_COORD_ARRAY            0x8078#define GL_MULTISAMPLE                    0x809D#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E#define GL_SAMPLE_ALPHA_TO_ONE            0x809F#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/* FogMode *//*      GL_LINEAR */#define GL_EXP                            0x0800#define GL_EXP2                           0x0801/* FogParameter */#define GL_FOG_DENSITY                    0x0B62#define GL_FOG_START                      0x0B63#define GL_FOG_END                        0x0B64#define GL_FOG_MODE                       0x0B65#define GL_FOG_COLOR                      0x0B66/* FrontFaceDirection */#define GL_CW                             0x0900#define GL_CCW                            0x0901/* GetPName */#define GL_CURRENT_COLOR                  0x0B00#define GL_CURRENT_NORMAL                 0x0B02#define GL_CURRENT_TEXTURE_COORDS         0x0B03#define GL_POINT_SIZE                     0x0B11#define GL_POINT_SIZE_MIN                 0x8126#define GL_POINT_SIZE_MAX                 0x8127#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128#define GL_POINT_DISTANCE_ATTENUATION     0x8129#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12#define GL_LINE_WIDTH                     0x0B21#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22#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_VALUE_MASK             0x0B93#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_WRITEMASK              0x0B98#define GL_MATRIX_MODE                    0x0BA0#define GL_VIEWPORT                       0x0BA2#define GL_MODELVIEW_STACK_DEPTH          0x0BA3#define GL_PROJECTION_STACK_DEPTH         0x0BA4#define GL_TEXTURE_STACK_DEPTH            0x0BA5#define GL_MODELVIEW_MATRIX               0x0BA6#define GL_PROJECTION_MATRIX              0x0BA7#define GL_TEXTURE_MATRIX                 0x0BA8#define GL_ALPHA_TEST_FUNC                0x0BC1#define GL_ALPHA_TEST_REF                 0x0BC2#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_LIGHTS                     0x0D31#define GL_MAX_CLIP_PLANES                0x0D32#define GL_MAX_TEXTURE_SIZE               0x0D33#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39#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

⌨️ 快捷键说明

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