Open Reality Reference Guide
Loading...
Searching...
No Matches
fbsdk-opengl.h
1
#ifndef _FBSDK_OPENGL_H_
2
#define _FBSDK_OPENGL_H_
3
/**************************************************************************
4
Copyright (c) 1994 - 2008 Autodesk, Inc. and/or its licensors.
5
All Rights Reserved.
6
7
The coded instructions, statements, computer programs, and/or related
8
material (collectively the "Data") in these files contain unpublished
9
information proprietary to Autodesk, Inc. and/or its licensors, which is
10
protected by Canada and United States of America federal copyright law
11
and by international treaties.
12
13
The Data may not be disclosed or distributed to third parties, in whole
14
or in part, without the prior written consent of Autodesk, Inc.
15
("Autodesk").
16
17
THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18
ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19
WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20
ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21
OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22
PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23
WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24
FREE.
25
26
IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27
OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28
EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29
DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30
OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31
DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32
LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33
LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34
DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35
BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36
37
**************************************************************************/
38
#if defined(KARCH_ENV_WIN32)
39
// #include <windows.h> // must include before this include if needed
40
// Now redefining those if not already defined
41
#ifndef WINGDIAPI
42
#define CALLBACK __stdcall
43
#define WINAPI __stdcall
44
#define DECLSPEC_IMPORT __declspec(dllimport)
45
#define WINGDIAPI DECLSPEC_IMPORT
46
#define APIENTRY WINAPI
47
#endif
48
#ifndef _WCHAR_T_DEFINED
49
typedef
unsigned
short
wchar_t;
50
#define _WCHAR_T_DEFINED
51
#endif
52
#else
53
#ifndef CALLBACK
54
#define CALLBACK
55
#endif
56
#endif
57
58
#include <GL/gl.h>
59
#include <GL/glu.h>
60
61
#if defined(KARCH_ENV_WIN32) || defined(KARCH_ENV_WIN64)
62
#ifndef GL_BGR
63
#define GL_BGR GL_BGR_EXT
64
#endif
65
#ifndef GL_BGRA
66
#define GL_BGRA GL_BGRA_EXT
67
#endif
68
69
#ifndef GL_EXT_abgr
70
#define GL_ABGR_EXT 0x8000
71
#define GL_EXT_abgr 1
72
#endif
73
#endif
74
75
#if defined(KARCH_ENV_LINUX)
76
#include <GL/glext.h>
77
#endif
78
79
#ifndef GL_LIGHT_MODEL_COLOR_CONTROL
80
#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
81
#endif
82
83
#ifndef GL_SEPARATE_SPECULAR_COLOR
84
#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
85
#endif
86
87
#ifndef GL_EXT_422_pixels
88
#define GL_422_EXT 0x80cc
89
#endif
90
91
#ifndef GL_CLAMP_TO_EDGE
92
#define GL_CLAMP_TO_EDGE 0x812F
93
#endif
94
95
#endif
/* _FBSDK_OPENGL_H_ */
Components
amKernel
kkernel
fbsdk
include
fbsdk
fbsdk-opengl.h
Generated by
1.9.7