NCBI C++ ToolKit
opengl.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI___OPENGL__HPP
2 #define GUI___OPENGL__HPP
3 
4 /* $Id: opengl.h 47614 2023-11-28 22:49:54Z ucko $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Mike DiCuccio
30  *
31  * File Description:
32  * Standard mechanism to include OpenGL headers for all platforms.
33  */
34 
35 /**
36  * @file opengl.h
37  *
38  * Standard mechanism to include OpenGL headers for all platforms.
39  *
40  */
41 
42 #include <ncbiconf.h>
43 #include <gui/gui_export.h>
44 
45 /*
46  * gl.h
47  * Darwin places theirs in a non-standard location
48  *
49  */
50 
51 #ifdef HAVE_LIBGLEW
52 # include <GL/glew.h>
53 #endif
54 
55 #ifdef GLEW_MX
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 // FYI: GLEW fails to define this (sigh...)
62 NCBI_GUIOPENGL_EXPORT GLEWContext* glewGetContext();
63 
64 #ifdef __cplusplus
65 };
66 #endif
67 
68 #endif
69 
70 /*
71  * glu.h
72  * Darwin places theirs in a non-standard location
73  */
74 
75 #if defined(NCBI_OS_DARWIN)
76 # include <OpenGL/glu.h>
77 # include <gui/osx_api.h>
78 #else
79 # include <GL/glu.h>
80 #endif
81 
82 
83 #endif /* GUI___OPENGL__HPP */
#define NCBI_GUIOPENGL_EXPORT
Definition: gui_export.h:514
Defines to provide correct exporting from DLLs in Windows.
Front end for a platform-specific configuration summary.
Modified on Fri Sep 20 14:57:23 2024 by modify_doxy.py rev. 669887