zMol
A viewer for molecular data using OpenGL and ambient occlusion
opengl3.hpp
1 /****************************************************************************
2 
3 Copyright (c) 2012 Carlos Rafael Giani ( email: dv xxx AT pseudoterminal xxx DOT xxx org , remove the xxx )
4 
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8 
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12 
13  1. The origin of this software must not be misrepresented; you must not
14  claim that you wrote the original software. If you use this software
15  in a product, an acknowledgment in the product documentation would be
16  appreciated but is not required.
17 
18  2. Altered source versions must be plainly marked as such, and must not be
19  misrepresented as being the original software.
20 
21  3. This notice may not be removed or altered from any source
22  distribution.
23 
24 ****************************************************************************/
25 
26 
27 
28 #ifndef ZMOL_OPENGL3_HPP
29 #define ZMOL_OPENGL3_HPP
30 
31 
32 #include "GL3/gl3w.h"
33 
34 
35 #ifndef GL_EXT_texture_compression_s3tc
36 #define GL_EXT_texture_compression_s3tc 1
37 
38 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
39 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
40 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
41 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
42 
43 #define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
44 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
45 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
46 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
47 
48 #endif /* GL_EXT_texture_compression_s3tc */
49 
50 
51 // TODO: wrap gl3wInit() in another init call which parses the extension strings
52 // and for example set a GL_EXT_texture_compression_s3tc flag which indicates whether or not this extension
53 // is supported (missing S3TC support is rare though, mostly Mesa3D, however it is very
54 // difficult to detect that without knowing the supported extensions)
55 
56 
57 #endif
58