Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample shell for macOS needs an upgrade #193

Closed
paulocoutinhox opened this issue Jun 4, 2021 · 3 comments
Closed

Sample shell for macOS needs an upgrade #193

paulocoutinhox opened this issue Jun 4, 2021 · 3 comments
Labels
help wanted Extra attention is needed samples
Milestone

Comments

@paulocoutinhox
Copy link

paulocoutinhox commented Jun 4, 2021

Hi,

Im trying build for macOS but get this error:

Error log
In file included from /Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:30:
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/include/ShellRenderInterfaceOpenGL.h:93:2: warning: 'AGLContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        AGLContext gl_context;
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:54:39: note: 'AGLContext' has been explicitly marked deprecated here
typedef struct __AGLContextRec       *AGLContext OPENGL_DEPRECATED(10_0, 10_9);
                                      ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/InputMacOSX.cpp:90:60: error: use of undeclared identifier 'typeLongInteger'; did you mean 'cLongInteger'?
                                                GetEventParameter(event, kEventParamMouseWheelDelta, typeLongInteger, nullptr, sizeof(SInt32), nullptr, &delta) == noErr)
                                                                                                     ^~~~~~~~~~~~~~~
                                                                                                     cLongInteger
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AERegistry.h:71:3: note: 'cLongInteger' declared here
  cLongInteger                  = 'long', /*  0x6c6f6e67  */
  ^
In file included from /Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:30:
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/include/ShellRenderInterfaceOpenGL.h:93:2: warning: 'AGLContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        AGLContext gl_context;
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:54:39: note: 'AGLContext' has been explicitly marked deprecated here
typedef struct __AGLContextRec       *AGLContext OPENGL_DEPRECATED(10_0, 10_9);
                                      ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:48:2: warning: 'glPushMatrix' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glPushMatrix();
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2625:13: note: 'glPushMatrix' has been explicitly marked deprecated here
extern void glPushMatrix (void) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:49:2: warning: 'glTranslatef' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTranslatef(translation.x, translation.y, 0);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2729:13: note: 'glTranslatef' has been explicitly marked deprecated here
extern void glTranslatef (GLfloat x, GLfloat y, GLfloat z) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:51:2: warning: 'glVertexPointer' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glVertexPointer(2, GL_FLOAT, sizeof(Rml::Vertex), &vertices[0].position);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2754:13: note: 'glVertexPointer' has been explicitly marked deprecated here
extern void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:52:2: warning: 'glEnableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glEnableClientState(GL_COLOR_ARRAY);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2473:13: note: 'glEnableClientState' has been explicitly marked deprecated here
extern void glEnableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:53:2: warning: 'glColorPointer' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Rml::Vertex), &vertices[0].colour);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2435:13: note: 'glColorPointer' has been explicitly marked deprecated here
extern void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:57:3: warning: 'glDisable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDisable(GL_TEXTURE_2D);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2462:13: note: 'glDisable' has been explicitly marked deprecated here
extern void glDisable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:58:3: warning: 'glDisableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDisableClientState(GL_TEXTURE_COORD_ARRAY);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2463:13: note: 'glDisableClientState' has been explicitly marked deprecated here
extern void glDisableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:62:3: warning: 'glEnable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glEnable(GL_TEXTURE_2D);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2472:13: note: 'glEnable' has been explicitly marked deprecated here
extern void glEnable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:63:3: warning: 'glBindTexture' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glBindTexture(GL_TEXTURE_2D, (GLuint) texture);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2386:13: note: 'glBindTexture' has been explicitly marked deprecated here
extern void glBindTexture (GLenum target, GLuint texture) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:64:3: warning: 'glEnableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glEnableClientState(GL_TEXTURE_COORD_ARRAY);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2473:13: note: 'glEnableClientState' has been explicitly marked deprecated here
extern void glEnableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/InputMacOSX.cpp:59:92: warning: unused parameter 'p' [-Wunused-parameter]
OSStatus InputMacOSX::EventHandler(EventHandlerCallRef next_handler, EventRef event, void* p)
                                                                                           ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:65:3: warning: 'glTexCoordPointer' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glTexCoordPointer(2, GL_FLOAT, sizeof(Rml::Vertex), &vertices[0].tex_coord);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2707:13: note: 'glTexCoordPointer' has been explicitly marked deprecated here
extern void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:68:2: warning: 'glDrawElements' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glDrawElements(GL_TRIANGLES, num_indices, GL_UNSIGNED_INT, indices);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2466:13: note: 'glDrawElements' has been explicitly marked deprecated here
extern void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:70:2: warning: 'glPopMatrix' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glPopMatrix();
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2620:13: note: 'glPopMatrix' has been explicitly marked deprecated here
extern void glPopMatrix (void) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:103:4: warning: 'glEnable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glEnable(GL_SCISSOR_TEST);
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2472:13: note: 'glEnable' has been explicitly marked deprecated here
extern void glEnable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:104:4: warning: 'glDisable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glDisable(GL_STENCIL_TEST);
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2462:13: note: 'glDisable' has been explicitly marked deprecated here
extern void glDisable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:106:4: warning: 'glDisable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glDisable(GL_SCISSOR_TEST);
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2462:13: note: 'glDisable' has been explicitly marked deprecated here
extern void glDisable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:107:4: warning: 'glEnable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glEnable(GL_STENCIL_TEST);
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2472:13: note: 'glEnable' has been explicitly marked deprecated here
extern void glEnable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:110:3: warning: 'glDisable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDisable(GL_SCISSOR_TEST);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2462:13: note: 'glDisable' has been explicitly marked deprecated here
extern void glDisable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:111:3: warning: 'glDisable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDisable(GL_STENCIL_TEST);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2462:13: note: 'glDisable' has been explicitly marked deprecated here
extern void glDisable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:119:3: warning: 'glScissor' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glScissor(x, m_height - (y + height), width, height);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2668:13: note: 'glScissor' has been explicitly marked deprecated here
extern void glScissor (GLint x, GLint y, GLsizei width, GLsizei height) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:122:3: warning: 'glStencilMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glStencilMask(GLuint(-1));
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2673:13: note: 'glStencilMask' has been explicitly marked deprecated here
extern void glStencilMask (GLuint mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:123:3: warning: 'glClear' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glClear(GL_STENCIL_BUFFER_BIT);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note: 'glClear' has been explicitly marked deprecated here
extern void glClear (GLbitfield mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:126:3: warning: 'glColorMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2433:13: note: 'glColorMask' has been explicitly marked deprecated here
extern void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:127:3: warning: 'glDepthMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDepthMask(GL_FALSE);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2460:13: note: 'glDepthMask' has been explicitly marked deprecated here
extern void glDepthMask (GLboolean flag) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:128:3: warning: 'glStencilFunc' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glStencilFunc(GL_NEVER, 1, GLuint(-1));
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2672:13: note: 'glStencilFunc' has been explicitly marked deprecated here
extern void glStencilFunc (GLenum func, GLint ref, GLuint mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:129:3: warning: 'glStencilOp' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glStencilOp(GL_REPLACE, GL_KEEP, GL_KEEP);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2674:13: note: 'glStencilOp' has been explicitly marked deprecated here
extern void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:143:3: warning: 'glDisableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDisableClientState(GL_COLOR_ARRAY);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2463:13: note: 'glDisableClientState' has been explicitly marked deprecated here
extern void glDisableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:144:3: warning: 'glVertexPointer' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glVertexPointer(3, GL_FLOAT, 0, vertices);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2754:13: note: 'glVertexPointer' has been explicitly marked deprecated here
extern void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:146:3: warning: 'glDrawElements' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDrawElements(GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_SHORT, indices);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2466:13: note: 'glDrawElements' has been explicitly marked deprecated here
extern void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:147:3: warning: 'glEnableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glEnableClientState(GL_COLOR_ARRAY);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2473:13: note: 'glEnableClientState' has been explicitly marked deprecated here
extern void glEnableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:150:3: warning: 'glColorMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2433:13: note: 'glColorMask' has been explicitly marked deprecated here
extern void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:151:3: warning: 'glDepthMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glDepthMask(GL_TRUE);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2460:13: note: 'glDepthMask' has been explicitly marked deprecated here
extern void glDepthMask (GLboolean flag) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:152:3: warning: 'glStencilMask' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glStencilMask(0);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2673:13: note: 'glStencilMask' has been explicitly marked deprecated here
extern void glStencilMask (GLuint mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:153:3: warning: 'glStencilFunc' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/InputMacOSX.cpp:185:57: warning: 'size' argument to memset is '0'; did you mean to transpose the last two arguments? [-Wmemset-transposed-args]
        memset(key_identifier_map, sizeof(key_identifier_map), 0);
                                                               ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/InputMacOSX.cpp:185:57: note: parenthesize the third argument to silence
                glStencilFunc(GL_EQUAL, 1, GLuint(-1));
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:43:3: warning: 'glViewport' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glViewport(0, 0, width, height);
                ^
:2672/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2755:13: note: 'glViewport' has been explicitly marked deprecated here
extern void glViewport (GLint x, GLint y, GLsizei width, GLsizei height) OPENGL_DEPRECATED(10.0, 10.14);
            ^
:13: /Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:45:3: warning: 'glMatrixMode' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glMatrixMode(GL_PROJECTION);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2588:13: note: 'glMatrixMode' has been explicitly marked deprecated here
extern void glMatrixMode (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:46:3: error: no matching function for call to 'glLoadMatrixf'
                glLoadMatrixf(projection);
                ^~~~~~~~~~~~~
note: 'glStencilFunc' has been explicitly marked deprecated here
extern void glStencilFunc (GLenum func, GLint ref, GLuint mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:259:2: warning: 'glGenTextures' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glGenTextures(1, &texture_id);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2498:13: note: 'glGenTextures' has been explicitly marked deprecated here
extern void glGenTextures (GLsizei n, GLuint *textures) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:266:2: warning: 'glBindTexture' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glBindTexture(GL_TEXTURE_2D, texture_id);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2386:13: note: 'glBindTexture' has been explicitly marked deprecated here
extern void glBindTexture (GLenum target, GLuint texture) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:268:2: warning: 'glTexImage2D' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, source_dimensions.x, source_dimensions.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, source);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2719:13: note: 'glTexImage2D' has been explicitly marked deprecated here
extern void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:269:2: warning: 'glTexParameteri' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2723:13: note: 'glTexParameteri' has been explicitly marked deprecated here
extern void glTexParameteri (GLenum target, GLenum pname, GLint param) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:270:2: warning: 'glTexParameteri' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2723:13: note: 'glTexParameteri' has been explicitly marked deprecated here
extern void glTexParameteri (GLenum target, GLenum pname, GLint param) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:272:2: warning: 'glTexParameteri' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2723:13: note: 'glTexParameteri' has been explicitly marked deprecated here
extern void glTexParameteri (GLenum target, GLenum pname, GLint param) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:273:2: warning: 'glTexParameteri' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2723:13: note: 'glTexParameteri' has been explicitly marked deprecated here
extern void glTexParameteri (GLenum target, GLenum pname, GLint param) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:283:2: warning: 'glDeleteTextures' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glDeleteTextures(1, (GLuint*) &texture_handle);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2458:13: note: 'glDeleteTextures' has been explicitly marked deprecated here
extern void glDeleteTextures (GLsizei n, const GLuint *textures) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:294:4: warning: 'glLoadMatrixf' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glLoadMatrixf(transform->data());
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2573:13: note: 'glLoadMatrixf' has been explicitly marked deprecated here
extern void glLoadMatrixf (const GLfloat *m) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:296:4: warning: 'glLoadMatrixf' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                        glLoadMatrixf(transform->Transpose().data());
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2573:13: note: 'glLoadMatrixf' has been explicitly marked deprecated here
extern void glLoadMatrixf (const GLfloat *m) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:299:3: warning: 'glLoadIdentity' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glLoadIdentity();
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2571:13: note: 'glLoadIdentity' has been explicitly marked deprecated here
extern void glLoadIdentity (void) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2573:13: note: candidate function not viable: no known conversion from 'Rml::Matrix4f' (aka 'Matrix4<float>') to 'const GLfloat *' (aka 'const float *') for 1st argument
extern void glLoadMatrixf (const GLfloat *m) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:48:3: warning: 'glMatrixMode' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                glMatrixMode(GL_MODELVIEW);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2588:13: note: 'glMatrixMode' has been explicitly marked deprecated here
extern void glMatrixMode (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:49:3: error: no matching function for call to 'glLoadMatrixf'
                glLoadMatrixf(view);
                ^~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2573:13: note: candidate function not viable: no known conversion from 'Rml::Matrix4f' (aka 'Matrix4<float>') to 'const GLfloat *' (aka 'const float *') for 1st argument
extern void glLoadMatrixf (const GLfloat *m) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:51:3: warning: 'aglUpdateContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
                aglUpdateContext(gl_context);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:298:18: note: 'aglUpdateContext' has been explicitly marked deprecated here
extern GLboolean aglUpdateContext(AGLContext ctx) OPENGL_DEPRECATED(10_0, 10_9);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:69:2: warning: 'AGLPixelFormat' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        AGLPixelFormat pixel_format = aglChoosePixelFormat(nullptr, 0, attributes);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:53:39: note: 'AGLPixelFormat' has been explicitly marked deprecated here
typedef struct __AGLPixelFormatRec   *AGLPixelFormat OPENGL_DEPRECATED(10_0, 10_9);
                                      ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:69:32: warning: 'aglChoosePixelFormat' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        AGLPixelFormat pixel_format = aglChoosePixelFormat(nullptr, 0, attributes);
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:271:23: note: 'aglChoosePixelFormat' has been explicitly marked deprecated here
extern AGLPixelFormat aglChoosePixelFormat(const void *gdevs, GLint ndev, const GLint *attribs) OPENGL_DEPRECATED(10_0, 10_9);
                      ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:313:2: warning: 'glReadPixels' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glReadPixels(0, 0, image.width, image.height, GL_RGB, GL_UNSIGNED_BYTE, image.data.get());
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2652:13: note: 'glReadPixels' has been explicitly marked deprecated here
extern void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/ShellRenderInterfaceOpenGL.cpp:317:16: warning: 'glGetError' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        while ((err = glGetError()) != GL_NO_ERROR)
                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2508:15: note: 'glGetError' has been explicitly marked deprecated here
extern GLenum glGetError (void) OPENGL_DEPRECATED(10.0, 10.14);
              ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:73:25: error: use of undeclared identifier 'GetWindowPort'
        CGrafPtr window_port = GetWindowPort(window);
                               ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:77:21: warning: 'aglCreateContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        this->gl_context = aglCreateContext(pixel_format, nullptr);
                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:295:19: note: 'aglCreateContext' has been explicitly marked deprecated here
extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share) OPENGL_DEPRECATED(10_0, 10_9);
                  ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:81:2: warning: 'aglSetDrawable' is deprecated: first deprecated in macOS 10.5 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglSetDrawable(this->gl_context, window_port);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:312:18: note: 'aglSetDrawable' has been explicitly marked deprecated here
extern GLboolean aglSetDrawable(AGLContext ctx, AGLDrawable draw) OPENGL_DEPRECATED(10_0, 10_5);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:82:2: warning: 'aglSetCurrentContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglSetCurrentContext(this->gl_context);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note: 'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(10_0, 10_9);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:84:2: warning: 'aglDestroyPixelFormat' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglDestroyPixelFormat(pixel_format);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:273:13: note: 'aglDestroyPixelFormat' has been explicitly marked deprecated here
extern void aglDestroyPixelFormat(AGLPixelFormat pix) OPENGL_DEPRECATED(10_0, 10_9);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:87:2: warning: 'glClearColor' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glClearColor(0, 0, 0, 1);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2396:13: note: 'glClearColor' has been explicitly marked deprecated here
extern void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:88:2: warning: 'glEnableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glEnableClientState(GL_VERTEX_ARRAY);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2473:13: note: 'glEnableClientState' has been explicitly marked deprecated here
extern void glEnableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:89:2: warning: 'glEnableClientState' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glEnableClientState(GL_COLOR_ARRAY);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2473:13: note: 'glEnableClientState' has been explicitly marked deprecated here
extern void glEnableClientState (GLenum array) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:91:2: warning: 'glEnable' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glEnable(GL_BLEND);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2472:13: note: 'glEnable' has been explicitly marked deprecated here
extern void glEnable (GLenum cap) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:92:2: warning: 'glBlendFunc' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2391:13: note: 'glBlendFunc' has been explicitly marked deprecated here
extern void glBlendFunc (GLenum sfactor, GLenum dfactor) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:94:2: warning: 'glMatrixMode' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glMatrixMode(GL_PROJECTION);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2588:13: note: 'glMatrixMode' has been explicitly marked deprecated here
extern void glMatrixMode (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:95:2: warning: 'glLoadIdentity' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glLoadIdentity();
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2571:13: note: 'glLoadIdentity' has been explicitly marked deprecated here
extern void glLoadIdentity (void) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:97:2: error: use of undeclared identifier 'GetWindowBounds'
        GetWindowBounds(window, kWindowContentRgn, &crect);
        ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:98:2: warning: 'glOrtho' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glOrtho(0, (crect.right - crect.left), (crect.bottom - crect.top), 0, -1, 1);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2604:13: note: 'glOrtho' has been explicitly marked deprecated here
extern void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:100:2: warning: 'glMatrixMode' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glMatrixMode(GL_MODELVIEW);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2588:13: note: 'glMatrixMode' has been explicitly marked deprecated here
extern void glMatrixMode (GLenum mode) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:101:2: warning: 'glLoadIdentity' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glLoadIdentity();
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2571:13: note: 'glLoadIdentity' has been explicitly marked deprecated here
extern void glLoadIdentity (void) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:107:2: warning: 'aglSetCurrentContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglSetCurrentContext(nullptr);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note: 'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(10_0, 10_9);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:108:2: warning: 'aglSetDrawable' is deprecated: first deprecated in macOS 10.5 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglSetDrawable(this->gl_context, nullptr);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:312:18: note: 'aglSetDrawable' has been explicitly marked deprecated here
extern GLboolean aglSetDrawable(AGLContext ctx, AGLDrawable draw) OPENGL_DEPRECATED(10_0, 10_5);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:109:2: warning: 'aglDestroyContext' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglDestroyContext(this->gl_context);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:296:18: note: 'aglDestroyContext' has been explicitly marked deprecated here
extern GLboolean aglDestroyContext(AGLContext ctx) OPENGL_DEPRECATED(10_0, 10_9);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:114:2: warning: 'glClear' is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        glClear(GL_COLOR_BUFFER_BIT);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note: 'glClear' has been explicitly marked deprecated here
extern void glClear (GLbitfield mask) OPENGL_DEPRECATED(10.0, 10.14);
            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp:120:2: warning: 'aglSwapBuffers' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]
        aglSwapBuffers(this->gl_context);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:356:13: note: 'aglSwapBuffers' has been explicitly marked deprecated here
extern void aglSwapBuffers(AGLContext ctx) OPENGL_DEPRECATED(10_0, 10_9);
            ^
26 warnings and 4 errors generated.
make[2]: *** [CMakeFiles/shell.dir/Samples/shell/src/macosx/ShellRenderInterfaceExtensionsOpenGL_MacOSX.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
2 warnings and 1 error generated.
make[2]: *** [CMakeFiles/shell.dir/Samples/shell/src/macosx/InputMacOSX.cpp.o] Error 1
48 warnings generated.
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:58:8: error: no template named 'UniquePtr'; did you mean 'Rml::UniquePtr'?
static UniquePtr<ShellFileInterface> file_interface;
       ^~~~~~~~~
       Rml::UniquePtr
/Users/paulo/Developer/workspaces/cpp/RmlUi/Include/RmlUi/Core/../Config/Config.h:130:1: note: 'Rml::UniquePtr' declared here
using UniquePtr = std::unique_ptr<T>;
^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:126:34: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'short' in initializer list [-Wc++11-narrowing]
        Rect content_bounds = { 60, 20, 60 + height, 20 + width };
                                        ^~~~~~~~~~~
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:126:34: note: insert an explicit cast to silence this issue
        Rect content_bounds = { 60, 20, 60 + height, 20 + width };
                                        ^~~~~~~~~~~
                                        static_cast<short>( )
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:126:47: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'short' in initializer list [-Wc++11-narrowing]
        Rect content_bounds = { 60, 20, 60 + height, 20 + width };
                                                     ^~~~~~~~~~
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:126:47: note: insert an explicit cast to silence this issue
        Rect content_bounds = { 60, 20, 60 + height, 20 + width };
                                                     ^~~~~~~~~~
                                                     static_cast<short>( )
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:130:20: error: use of undeclared identifier 'CreateNewWindow'
        OSStatus result = CreateNewWindow(kDocumentWindowClass,
                          ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:142:11: error: use of undeclared identifier 'SetWindowTitleWithCFString'
        result = SetWindowTitleWithCFString(window, window_title);
                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:151:2: error: use of undeclared identifier 'ShowWindow'
        ShowWindow(window);
        ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:166:2: error: use of undeclared identifier 'HideWindow'
        HideWindow(window);
        ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:167:2: error: use of undeclared identifier 'ReleaseWindow'
        ReleaseWindow(window);
        ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:181:10: error: use of undeclared identifier 'GetWindowEventTarget'
        error = InstallWindowEventHandler(window,
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEvents.h:15104:29: note: expanded from macro 'InstallWindowEventHandler'
       InstallEventHandler( GetWindowEventTarget( target ), (handler), (numTypes), (list), (userData), (outHandlerRef) )
                            ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:191:10: error: use of undeclared identifier 'InstallEventLoopIdleTimer'; did you mean 'InstallEventLoopTimer'?
        error = InstallEventLoopIdleTimer(GetMainEventLoop(),                                                   // inEventLoop
                ^~~~~~~~~~~~~~~~~~~~~~~~~
                InstallEventLoopTimer
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:2279:1: note: 'InstallEventLoopTimer' declared here
InstallEventLoopTimer(
^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:194:12: error: cannot initialize a parameter of type 'EventLoopTimerUPP' (aka 'void (*)(__EventLoopTimer *, void *)') with an rvalue of type 'EventLoopIdleTimerUPP' (aka 'void (*)(__EventLoopTimer *, unsigned short, void *)'): different number of parameters (2 vs 3)
                                                                          NewEventLoopIdleTimerUPP(IdleTimerCallback),  // inTimerProc
                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEventsCore.h:2283:24: note: passing argument to parameter 'inTimerProc' here
  EventLoopTimerUPP    inTimerProc,
                       ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:201:2: error: use of undeclared identifier 'RunApplicationEventLoop'
        RunApplicationEventLoop();
        ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:271:47: warning: unused parameter 'cursor_name' [-Wunused-parameter]
void Shell::SetMouseCursor(const Rml::String& cursor_name)
                                              ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:294:49: warning: unused parameter 'timer' [-Wunused-parameter]
static void IdleTimerCallback(EventLoopTimerRef timer, EventLoopIdleTimerMessage inState, void* p)
                                                ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:294:82: warning: unused parameter 'inState' [-Wunused-parameter]
static void IdleTimerCallback(EventLoopTimerRef timer, EventLoopIdleTimerMessage inState, void* p)
                                                                                 ^
/Users/paulo/Developer/workspaces/cpp/RmlUi/Samples/shell/src/macosx/ShellMacOSX.cpp:300:86: warning: unused parameter 'p' [-Wunused-parameter]
static OSStatus EventHandler(EventHandlerCallRef next_handler, EventRef event, void* p)
                                                                                     ^
4 warnings and 12 errors generated.
make[2]: *** [CMakeFiles/shell.dir/Samples/shell/src/macosx/ShellMacOSX.cpp.o] Error 1
make[1]: *** [CMakeFiles/shell.dir/all] Error 2
make: *** [all] Error 2

Steps:

git clone https://github.com/mikke89/RmlUi.git
mkdir build
cd build
cmake ../ -DBUILD_SAMPLES=ON
make -j 8

Can you help me?

@mikke89
Copy link
Owner

mikke89 commented Jun 5, 2021

Hi and welcome. Thanks for testing.

The sample shell for macOS is quite out of date. It needs some rework to bring it up to speed with new APIs, and probably a Metal rendering backend. I don't have a mac to test it on, so hopefully somebody out there in the community could help and implement the necessary changes.

@mikke89 mikke89 added the help wanted Extra attention is needed label Jun 5, 2021
@mikke89 mikke89 changed the title Problem when build for macOS Sample shell for macOS needs an upgrade Jun 5, 2021
@aquawicket
Copy link
Contributor

aquawicket commented Nov 20, 2021

I ran into this today on macOS Big Sur 11.5.2 They removed Carbon 32bit API a bit ago and no direct replacement. However, I was able to use the AGL Framework, which is also deprecated. Including Framworks OpenGL, AGL, and building GLEW for MacOs has me pretty close. Only missing functions now are GetWindowPort and GetWindowBounds from the old Carbon. I think we can replace GetWindowBounds with CoreGraphics CGDisplayBounds. But that would only be a temporary fix because Apple has labeled OpenGL deprecated in favor of their Metal API. I'm looking this direction now. Migrating OpenGL Code to Metal

@mikke89 mikke89 added this to the 5.0 milestone Apr 2, 2022
@mikke89 mikke89 modified the milestone: 5.0 Dec 11, 2022
@mikke89
Copy link
Owner

mikke89 commented Dec 11, 2022

I'm closing this now that the legacy macOS shell has been removed in RmlUi 5.0. Instead, it should be possible now to build the samples using one of the cross-platform windowing libraries like SDL or GLFW. There is still a reliance on OpenGL (deprecated) for the most common use cases, although there is also the SDLrenderer which can replace it but does not have all the same features.

While this issue specifically is considered done, there are still improvements to be made for macOS, in particular:

  • Metal renderer support.
  • macOS native windowing support.

I'd be happy to see contributions for these features.

@mikke89 mikke89 closed this as completed Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed samples
Projects
None yet
Development

No branches or pull requests

3 participants