FLTK logo

[fltk.general] Re: Specific issue with macOS drawRect

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Specific issue with macOS drawRect Manolo Jul 24, 2021  
 

Le jeudi 22 juillet 2021 à 21:00:35 UTC+2, anmol....@gmail.com a écrit :
For my own reference, I get a warning here - 
NSOpenGLContext deprecated. For some odd reason, Xcode is defining __OBJC__

#ifdef __OBJC__

  @class NSOpenGLContext;

  typedef NSOpenGLContext* GLContext;

#elif defined(__cplusplus)

  typedef class NSOpenGLContext* GLContext;

#endif /* __OBJC__ */

This construct allows an include file to detect whether it's being used in an Objective-C/C++
or a C++ source file. The FLTK source code contains a majority of C++ source files, a handful
are Objective-C++ (for the macOS platform only), and a few are C.

Now, macOS has decided to deprecate all of OpenGL a few years ago, most probably in a move to push their Metal.
But there's no connection whatsoever between the warning and __OBJC__ being defined or not.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/f032d44a-2d05-4ad9-92e0-66926534136en%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.