NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
GL.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2016-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
28 #ifndef DWGL_GL_H_
29 #define DWGL_GL_H_
30 
31 #include <dw/core/base/Config.h>
32 
33 // clang-format off
34 #ifdef DW_USE_EGL
35  #include <GLES3/gl3.h>
36  #include <GLES3/gl31.h>
37  #include <GLES3/gl32.h> // needed for glFramebufferTexture()
38  #include <GLES2/gl2ext.h>
39  #define _GLESMODE
40 #else
41  // On non GLES platforms we will use GLEW
42  #ifndef USE_GLEW
43  #define USE_GLEW
44  #endif
45 
46  #ifndef GLEW_STATIC
47  #define GLEW_STATIC // We will always include GLEW as static
48  #endif
49  #include <GL/glew.h>
50  #include <GL/glu.h>
51 #endif
52 // clang-format on
53 
54 #endif // DWGL_GL_H_
55