Skip to content

Commit

Permalink
GL: move friend declarations down into class privates.
Browse files Browse the repository at this point in the history
So the header is not horrifying right from the top.
  • Loading branch information
mosra committed Jan 27, 2020
1 parent 86dbd86 commit 26db8f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Magnum/GL/AbstractTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ functions do nothing.
@todo Query for immutable levels (@gl_extension{ARB,ES3_compatibility})
*/
class MAGNUM_GL_EXPORT AbstractTexture: public AbstractObject {
friend Implementation::TextureState;
friend AbstractFramebuffer;
friend CubeMapTexture;

public:
#ifndef MAGNUM_TARGET_GLES2
/**
Expand Down Expand Up @@ -519,6 +515,10 @@ class MAGNUM_GL_EXPORT AbstractTexture: public AbstractObject {
GLenum _target;

private:
friend Implementation::TextureState;
friend AbstractFramebuffer;
friend CubeMapTexture;

#ifndef MAGNUM_TARGET_GLES
static Int MAGNUM_GL_LOCAL compressedBlockDataSizeImplementationDefault(GLenum target, TextureFormat format);
static Int MAGNUM_GL_LOCAL compressedBlockDataSizeImplementationBitsWorkaround(GLenum target, TextureFormat format);
Expand Down
4 changes: 2 additions & 2 deletions src/Magnum/GL/BufferTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ and respective function documentation for more information.
@requires_gles Texture buffers are not available in WebGL.
*/
class MAGNUM_GL_EXPORT BufferTexture: public AbstractTexture {
friend Implementation::TextureState;

public:
/**
* @brief Max supported buffer texture size
Expand Down Expand Up @@ -259,6 +257,8 @@ class MAGNUM_GL_EXPORT BufferTexture: public AbstractTexture {
#endif

private:
friend Implementation::TextureState;

explicit BufferTexture(GLuint id, ObjectFlags flags): AbstractTexture{id, GL_TEXTURE_BUFFER, flags} {}

void MAGNUM_GL_LOCAL setBufferImplementationDefault(BufferTextureFormat internalFormat, Buffer* buffer);
Expand Down

0 comments on commit 26db8f9

Please sign in to comment.