Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:58

0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 /*============================================================================*/
0015 /*==== Title: Aspect_RenderingContext.hxx                                     */
0016 /*==== Role: The header file of primitive type "RenderingContext" from package*/
0017 /*==== "V3d"                                                                  */
0018 /*==== Implementation:  This is a primitive type implemented with typedef     */
0019 /*============================================================================*/
0020 // To manage 2D or 3D graphic context
0021 
0022 #ifndef _Aspect_RenderingContext_HeaderFile
0023 #define _Aspect_RenderingContext_HeaderFile
0024 
0025 #include <Standard_Macro.hxx>
0026 
0027 #if defined(__APPLE__) && !defined(HAVE_XLIB)
0028   #import <TargetConditionals.h>
0029   #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
0030     #ifdef __OBJC__
0031       @class EAGLContext;
0032     #else
0033       struct EAGLContext;
0034     #endif
0035     typedef EAGLContext* Aspect_RenderingContext;
0036   #else
0037     #ifdef __OBJC__
0038       @class NSOpenGLContext;
0039     #else
0040       struct NSOpenGLContext;
0041     #endif
0042     Standard_DISABLE_DEPRECATION_WARNINGS
0043     typedef NSOpenGLContext* Aspect_RenderingContext;
0044     Standard_ENABLE_DEPRECATION_WARNINGS
0045   #endif
0046 #else
0047   typedef void* Aspect_RenderingContext; // GLXContext under UNIX
0048 #endif
0049 
0050 #endif /* _Aspect_RenderingContext_HeaderFile */