|
|
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 ] | |
|
| |