root/tags/Release_0_1/DerelictGL/gleeTypes.d

Revision 21, 3.0 kB (checked in by aldacron, 5 years ago)

* updated the GLee files to Joel's new version, which fixes a severe bug when compiling GLee with optimizations

Line 
1 module gleeTypes;
2
3 ///////////////////////////////////
4 //
5 // GLeeTypes.h ;
6 // OpenGL Easy Extension library       
7 // Version : 3.0;
8 //
9 // Copyright (c)2004  Ben Woodhouse  All rights reserved.;
10 //
11 // Redistribution and use _in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer as
16 // the first lines of this file unmodified.
17 // 2. Redistributions _in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer _in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // THIS SOFTWARE IS PROVIDED BY BEN WOODHOUSE ``AS IS'' AND ANY EXPRESS OR
22 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 // IN NO EVENT SHALL BEN WOODHOUSE BE LIABLE FOR ANY DIRECT, INDIRECT,
25 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE,
27 // DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 //
32 // This licence includes and incorporates the SGI FREE SOFTWARE LICENSE B
33 // (Version 1.1 [02/22/2000]) full details of which can be found at
34 // http://oss.sgi.com/projects/FreeB
35 //
36 // For the avoidance of doubt, this work falls within the definition of a
37 // 'Larger Work' within that licence, since it incorporates parts of SGI's
38 // glExt.h, wglExt.h and glxExt.h header files, which form part of SGI's
39 // OpenGL Sample Implementation.
40 // Web: http://elf-stone.com
41 //
42 // [This file was automatically generated by GLeeGen]
43 //
44 // Then it was ported manually by Joel Anderson to D (1\21\2004)
45 //
46 // And then it was modified by Mike Parker and included in the Derelict project
47 // on May 25, 2004
48 ///////////////////////////////////
49
50 private 
51 { 
52     import std.c.windows.windows;
53     import glConstants;
54     import gleeTypes;
55 }
56
57 extern (C)
58 {
59    
60     alias int BOOLEAN;
61     alias int INT32;
62     alias long INT64;
63        
64     //Additional types needed for extensions
65     extern (Windows) int errno;
66     alias int ptrdiff_t;
67     alias uint size_t;
68     alias ushort wchar_t;
69     alias ptrdiff_t GLintptr;
70     alias ptrdiff_t GLsizeiptr;
71     // GL_NV_half_float;
72     alias ushort GLhalfNV;
73    
74     // GL_ARB_vertex_buffer_object;
75     alias ptrdiff_t GLintptrARB;
76     alias ptrdiff_t GLsizeiptrARB;
77    
78     // GL_ARB_shader_objects;
79     alias int GLhandleARB;
80     alias char GLcharARB;
81    
82     //platform specific :;
83    
84     version(Windows)
85     {
86     //#ifndef WGL_ARB_pbuffer;
87     alias HANDLE HPBUFFERARB ;
88     //#ifndef WGL_EXT_pbuffer;
89     alias HANDLE HPBUFFEREXT ;
90     } // version(Windows)
91 }
Note: See TracBrowser for help on using the browser.