mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
60 lines
2.0 KiB
C++
60 lines
2.0 KiB
C++
// Created on: 2012-03-06
|
|
// Created by: Kirill GAVRILOV
|
|
// Copyright (c) -1999 Matra Datavision
|
|
// Copyright (c) 2012-2012 OPEN CASCADE SAS
|
|
//
|
|
// The content of this file is subject to the Open CASCADE Technology Public
|
|
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
// except in compliance with the License. Please obtain a copy of the License
|
|
// at http://www.opencascade.org and read it completely before using this file.
|
|
//
|
|
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
//
|
|
// The Original Code and all software distributed under the License is
|
|
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
// Initial Developer hereby disclaims all such warranties, including without
|
|
// limitation, any warranties of merchantability, fitness for a particular
|
|
// purpose or non-infringement. Please see the License for the specific terms
|
|
// and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
#ifndef _OpenGl_GlCore11_H__
|
|
#define _OpenGl_GlCore11_H__
|
|
|
|
// required for correct APIENTRY definition
|
|
#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
#ifndef APIENTRY
|
|
#define APIENTRY
|
|
#endif
|
|
#ifndef APIENTRYP
|
|
#define APIENTRYP APIENTRY *
|
|
#endif
|
|
#ifndef GLAPI
|
|
#define GLAPI extern
|
|
#endif
|
|
|
|
// current TKOpenGl implementation is incompatible with native OpenGL on MacOS X
|
|
#define MACOSX_USE_GLX
|
|
|
|
// exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
|
|
#define GL_GLEXT_LEGACY
|
|
|
|
// include main OpenGL header provided with system
|
|
#if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
|
|
#include <OpenGL/OpenGL.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#include <GL/glu.h>
|
|
#endif
|
|
|
|
#include <InterfaceGraphic.hxx>
|
|
#include <InterfaceGraphic_tgl_all.hxx>
|
|
#include <InterfaceGraphic_telem.hxx>
|
|
|
|
#endif // _OpenGl_GlCore11_H__
|