diff --git a/src/Magnum/AbstractFramebuffer.h b/src/Magnum/AbstractFramebuffer.h index 8904ebb5f..c6f45c396 100644 --- a/src/Magnum/AbstractFramebuffer.h +++ b/src/Magnum/AbstractFramebuffer.h @@ -147,7 +147,7 @@ protected from buffer overflow. @todo @extension{ARB,viewport_array} (and `GL_MAX_VIEWPORTS`) */ class MAGNUM_EXPORT AbstractFramebuffer { - friend class Implementation::FramebufferState; + friend struct Implementation::FramebufferState; public: /** @todo `GL_IMPLEMENTATION_COLOR_READ_FORMAT`, `GL_IMPLEMENTATION_COLOR_READ_TYPE`, seems to be depending on currently bound FB (aargh) (@extension{ARB,ES2_compatibility}). */ diff --git a/src/Magnum/AbstractShaderProgram.h b/src/Magnum/AbstractShaderProgram.h index b27ae04c3..5cdb6a3ba 100644 --- a/src/Magnum/AbstractShaderProgram.h +++ b/src/Magnum/AbstractShaderProgram.h @@ -39,7 +39,7 @@ namespace Magnum { namespace Implementation { template struct Attribute; - class ShaderProgramState; + struct ShaderProgramState; } /** @@ -323,7 +323,7 @@ comes in handy. @todo `GL_NUM_{PROGRAM,SHADER}_BINARY_FORMATS` + `GL_{PROGRAM,SHADER}_BINARY_FORMATS` (vector), (@extension{ARB,ES2_compatibility}) */ class MAGNUM_EXPORT AbstractShaderProgram: public AbstractObject { - friend class Implementation::ShaderProgramState; + friend struct Implementation::ShaderProgramState; public: template class Attribute; diff --git a/src/Magnum/AbstractTexture.h b/src/Magnum/AbstractTexture.h index 17a5e2815..a234e6887 100644 --- a/src/Magnum/AbstractTexture.h +++ b/src/Magnum/AbstractTexture.h @@ -101,7 +101,7 @@ nothing. @todo Query for immutable levels (@extension{ARB,ES3_compatibility}) */ class MAGNUM_EXPORT AbstractTexture: public AbstractObject { - friend class Implementation::TextureState; + friend struct Implementation::TextureState; public: /** diff --git a/src/Magnum/Buffer.h b/src/Magnum/Buffer.h index 386f682bf..29a85d0f0 100644 --- a/src/Magnum/Buffer.h +++ b/src/Magnum/Buffer.h @@ -114,7 +114,7 @@ enum class BufferUsage: GLenum { #endif }; -namespace Implementation { class BufferState; } +namespace Implementation { struct BufferState; } /** @brief %Buffer @@ -192,7 +192,7 @@ nothing. @todo BindBufferRange/BindBufferOffset/BindBufferBase for transform feedback (3.0, @extension{EXT,transform_feedback}) */ class MAGNUM_EXPORT Buffer: public AbstractObject { - friend class Implementation::BufferState; + friend struct Implementation::BufferState; public: /** diff --git a/src/Magnum/BufferTexture.h b/src/Magnum/BufferTexture.h index 20a0a1ae6..d30e4f4c0 100644 --- a/src/Magnum/BufferTexture.h +++ b/src/Magnum/BufferTexture.h @@ -200,7 +200,7 @@ and respective function documentation for more information. @requires_gl Texture buffers are not available in OpenGL ES. */ class MAGNUM_EXPORT BufferTexture: private AbstractTexture { - friend class Implementation::TextureState; + friend struct Implementation::TextureState; public: /** @copydoc AbstractTexture::maxLabelLength() */ diff --git a/src/Magnum/Framebuffer.h b/src/Magnum/Framebuffer.h index ed984ab45..20fbc65ae 100644 --- a/src/Magnum/Framebuffer.h +++ b/src/Magnum/Framebuffer.h @@ -102,7 +102,7 @@ See their respective documentation for more information. @todo `MAX_COLOR_ATTACHMENTS` */ class MAGNUM_EXPORT Framebuffer: public AbstractFramebuffer, public AbstractObject { - friend class Implementation::FramebufferState; + friend struct Implementation::FramebufferState; public: /** diff --git a/src/Magnum/Mesh.h b/src/Magnum/Mesh.h index 06055855f..bb6158b2a 100644 --- a/src/Magnum/Mesh.h +++ b/src/Magnum/Mesh.h @@ -115,7 +115,7 @@ enum class MeshPrimitive: GLenum { #endif }; -namespace Implementation { class MeshState; } +namespace Implementation { struct MeshState; } /** @brief %Mesh @@ -315,8 +315,8 @@ drawing commands are used on desktop OpenGL and OpenGL ES 3.0. See also @todo How to glDrawElementsBaseVertex()/vertex offset -- in draw()? */ class MAGNUM_EXPORT Mesh: public AbstractObject { - friend class Implementation::MeshState; friend class MeshView; + friend struct Implementation::MeshState; public: #ifdef MAGNUM_BUILD_DEPRECATED diff --git a/src/Magnum/Renderbuffer.h b/src/Magnum/Renderbuffer.h index 6bf754d1f..c7be10d5c 100644 --- a/src/Magnum/Renderbuffer.h +++ b/src/Magnum/Renderbuffer.h @@ -56,7 +56,7 @@ See its documentation for more information. @requires_gl30 %Extension @extension{ARB,framebuffer_object} */ class MAGNUM_EXPORT Renderbuffer: public AbstractObject { - friend class Implementation::FramebufferState; + friend struct Implementation::FramebufferState; public: /** diff --git a/src/Magnum/Renderer.h b/src/Magnum/Renderer.h index 9040c6411..439fdd626 100644 --- a/src/Magnum/Renderer.h +++ b/src/Magnum/Renderer.h @@ -48,8 +48,8 @@ namespace Implementation { struct RendererState; } @todo `GL_MAX_CLIP_DISTANCES`... */ class MAGNUM_EXPORT Renderer { - friend class Implementation::RendererState; friend class Context; + friend struct Implementation::RendererState; public: Renderer() = delete;