/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
/** @file SDL_opengl.h
* This is a simple file to encapsulate the OpenGL API headers
*/
#include "SDL_config.h"
#ifdef __WIN32__
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX /* Don't defined min() and max() */
#endif
#include <windows.h>
#endif
#ifndef NO_SDL_GLEXT
#define __glext_h_ /* Don't let gl.h include glext.h */
#endif
#if defined(__MACOSX__)
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */
#include <OpenGL/glu.h> /* Header File For The GLU Library */
#elif defined(__MACOS__)
#include <gl.h> /* Header File For The OpenGL Library */
#include <glu.h> /* Header File For The GLU Library */
#else
#include <GL/gl.h> /* Header File For The OpenGL Library */
#include <GL/glu.h> /* Header File For The GLU Library */
#endif
#ifndef NO_SDL_GLEXT
#undef __glext_h_
#endif
/** @name GLext.h
* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
* It is included here because glext.h is not available on some systems.
* If you don't want this version included, simply define "NO_SDL_GLEXT"
*/
/*@{*/
#ifndef NO_SDL_GLEXT
#if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY)
#define __glext_h_
#ifdef __cplusplus
extern "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.1 (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-2004 Silicon Graphics, Inc.
** Copyright in any portions created by third parties is as indicated
** elsewhere herein. All Rights Reserved.
**
** Additional Notice Provisions: 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(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif
#ifndef APIENTRY
#define APIENTRY
#endif
#ifndef APIENTRYP
#define APIENTRYP APIENTRY *
#endif
#ifndef GLAPI
#define GLAPI extern
#endif
/*************************************************************/
/* Header file version number, required by OpenGL ABI for Linux */
/* glext.h last updated 2005/06/20 */
/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
#define GL_GLEXT_VERSION 29
#ifndef GL_VERSION_1_2
#define GL_UNSIGNED_BYTE_3_3_2 0x8032
#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
#define GL_UNSIGNED_INT_8_8_8_8 0x8035
#define GL_UNSIGNED_INT_10_10_10_2 0x8036
#define GL_RESCALE_NORMAL 0x803A
#define GL_TEXTURE_BINDING_3D 0x806A
#define GL_PACK_SKIP_IMAGES 0x806B
#define GL_PACK_IMAGE_HEIGHT 0x806C
#define GL_UNPACK_SKIP_IMAGES 0x806D
#define GL_UNPACK_IMAGE_HEIGHT 0x806E
#define GL_TEXTURE_3D 0x806F
#define GL_PROXY_TEXTURE_3D 0x8070
#define GL_TEXTURE_DEPTH 0x8071
#define GL_TEXTURE_WRAP_R 0x8072
#define GL_MAX_3D_TEXTURE_SIZE 0x8073
#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
#define GL_BGR 0x80E0
#define GL_BGRA 0x80E1
#define GL_MAX_ELEMENTS_VERTICES 0x80E8
#define GL_MAX_ELEMENTS_INDICES 0x80E9
#define GL_CLAMP_TO_EDGE 0x812F
#define GL_TEXTURE_MIN_LOD 0x813A
#define GL_TEXTURE_MAX_LOD 0x813B
#define GL_TEXTURE_BASE_LEVEL 0x813C
#define GL_TEXTURE_MAX_LEVEL 0x813D
#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
#define GL_SINGLE_COLOR 0x81F9
#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
#endif
#ifndef GL_ARB_imaging
#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
#define GL_FUNC_ADD 0x8006
#define GL_MIN 0x8007
#define GL_MAX 0x8008
#define GL_BLEND_EQUATION 0x8009
#define GL_FUNC_SUBTRACT 0x800A
#define GL_FUNC_REVERSE_SUBTRACT 0x800B
#define GL_CONVOLUTION_1D 0x8010
#define GL_CONVOLUTION_2D 0x8011
#define GL_SEPARABLE_2D 0x8012
#define GL_CONVOLUTION_BORDER_MODE 0x8013
#define GL_CONVOLUTION_FILTER_SCALE 0x8014
#define GL_CONVOLUTION_FILTER_BIAS 0x8015
#define GL_REDUCE 0x8016
#define GL_CONVOLUTION_FORMAT 0x8017
#define GL_CONVOLUTION_WIDTH 0x8018
#define GL_CONVOLUTION_HEIGHT 0x8019
#define GL_MAX_CONVOLUTION_WIDTH 0x801A
#define GL_MAX_CONVOLUTION_HEIGHT 0x801B
#define GL_POST_CONVOLUTION_RED_SCALE 0x801C
#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
#define GL_HISTOGRAM 0x8024
#define GL_PROXY_HISTOGRAM 0x8025
#define GL_HISTOGRAM_WIDTH 0x8026
#define GL_HISTOGRAM_FORMAT 0x8027
#define GL_HISTOGRAM_RED_SIZE 0x8028
#define GL_HISTOGRAM_GREEN_SIZE 0x8029
#defi
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SDL移植所有的库,一直到arm上 (432个子文件)
libSDL-1.2.so.0 891KB
libjpeg.so.7.0.0 844KB
libpng15.so.15.10.0 476KB
libSDL_mixer-1.2.so.0 360KB
libSDL_mixer-1.2.so.0.12.0 360KB
libSDL_gfx.so.13.9.0 238KB
libSDL_image-1.2.so.0 138KB
libSDL_ttf-2.0.so.0.10.0 68KB
libSDL_ttf-2.0.so.0 68KB
libcharset.so.1.0.0 28KB
libiconv.so.2.5.1 1.14MB
libcharset.so.1 28KB
cjpeg.1 11KB
jpegtran.1 8KB
djpeg.1 7KB
iconv.1 4KB
wrjpgcom.1 3KB
rdjpgcom.1 2KB
libSDL_gfx.so.13 238KB
libpng15.so.15 476KB
libiconv.so.2 1.14MB
libSDL_image-1.2.so.0.8.2 138KB
libSDL-1.2.so.0.11.3 891KB
libpng.3 236KB
SDLKey.3 6KB
SDL_Event.3 5KB
SDL_OpenAudio.3 5KB
iconv_open.3 5KB
SDL_PixelFormat.3 4KB
iconv.3 4KB
SDL_SetAlpha.3 4KB
SDL_SetVideoMode.3 4KB
SDL_CreateRGBSurface.3 3KB
SDL_CreateCursor.3 3KB
SDL_ConvertAudio.3 3KB
SDL_SetPalette.3 3KB
SDL_AudioCVT.3 3KB
SDL_Surface.3 3KB
SDL_AudioSpec.3 3KB
SDL_BlitSurface.3 3KB
SDL_SetColors.3 2KB
iconvctl.3 2KB
SDL_AddTimer.3 2KB
SDL_LockSurface.3 2KB
SDL_keysym.3 2KB
SDL_Overlay.3 2KB
SDL_ListModes.3 2KB
iconv_open_into.3 2KB
SDL_SetTimer.3 2KB
SDL_SemWaitTimeout.3 2KB
SDL_SetEventFilter.3 2KB
SDL_VideoInfo.3 2KB
SDL_MouseMotionEvent.3 2KB
SDL_JoyHatEvent.3 2KB
SDL_SetColorKey.3 2KB
SDL_ActiveEvent.3 2KB
SDL_SemTryWait.3 1KB
SDL_CDPlayTracks.3 1KB
SDL_CDOpen.3 1KB
SDL_GLattr.3 1KB
SDL_LoadWAV.3 1KB
SDL_WasInit.3 1KB
SDL_CDStatus.3 1KB
SDL_CD.3 1KB
SDL_MouseButtonEvent.3 1KB
SDL_GL_SetAttribute.3 1KB
SDL_KeyboardEvent.3 1KB
SDL_VideoModeOK.3 1KB
SDL_JoyBallEvent.3 1KB
SDL_JoyButtonEvent.3 1KB
SDL_CreateSemaphore.3 1KB
SDL_FillRect.3 1KB
SDL_UserEvent.3 1KB
SDL_BuildAudioCVT.3 1KB
SDL_GL_GetProcAddress.3 1KB
SDL_DisplayFormatAlpha.3 1KB
SDL_SemWait.3 1KB
SDL_PeepEvents.3 1KB
SDL_EnableUNICODE.3 1KB
SDL_JoystickOpen.3 1KB
SDL_JoystickGetAxis.3 1KB
SDL_PollEvent.3 1KB
SDL_MapRGBA.3 1KB
SDL_UpdateRects.3 1KB
SDL_MixAudio.3 1KB
SDL_JoyAxisEvent.3 1KB
SDL_MapRGB.3 1KB
SDL_GetModState.3 1KB
SDL_SetGammaRamp.3 1KB
SDL_SysWMEvent.3 1KB
SDL_CreateRGBSurfaceFrom.3 1KB
SDL_Init.3 1KB
SDL_QuitEvent.3 1KB
SDL_InitSubSystem.3 1KB
SDL_ResizeEvent.3 1KB
SDL_PumpEvents.3 1KB
SDL_SemPost.3 1KB
SDL_JoystickEventState.3 1KB
SDL_DisplayFormat.3 1KB
iconv_close.3 1KB
共 432 条
- 1
- 2
- 3
- 4
- 5
资源评论
guoqianqian5812
- 粉丝: 112
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功