| 1 | // SPDX-FileCopyrightText: 2011 Torsten Dreyer |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <string> |
| 7 | |
| 8 | #if defined (SG_MAC) |
| 9 | #include <OpenGL/gl.h> |
| 10 | #elif defined (_GLES2) |
| 11 | #include <GLES2/gl2.h> |
| 12 | #else |
| 13 | #include <GL/glew.h> // Must be included before <GL/gl.h> |
| 14 | #include <GL/gl.h> |
| 15 | #endif |
| 16 | |
| 17 | #include <simgear/compiler.h> |
| 18 | |
| 19 | |
| 20 | class FGTextureLoaderInterface { |
| 21 | public: |
| 22 | virtual GLuint loadTexture (const std::string &filename) = 0; |
| 23 | }; |