diff options
Diffstat (limited to 'gfx/gl')
| -rw-r--r-- | gfx/gl/glBuffer.h | 3 | ||||
| -rw-r--r-- | gfx/gl/glVertexArray.h | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/gfx/gl/glBuffer.h b/gfx/gl/glBuffer.h index f43c223..275276f 100644 --- a/gfx/gl/glBuffer.h +++ b/gfx/gl/glBuffer.h @@ -3,7 +3,6 @@ #include "glArrays.h" namespace Impl { - // NOLINTNEXTLINE(readability-identifier-naming) struct glBuffer : Detail::glNamed { void storage(const std::ranges::contiguous_range auto & data, GLenum flags) @@ -21,7 +20,5 @@ namespace Impl { }; } -// NOLINTBEGIN(readability-identifier-naming) template<size_t N> using glBuffers = glManagedArray<Impl::glBuffer, N, &glCreateBuffers, &glDeleteBuffers>; using glBuffer = glManagedSingle<Impl::glBuffer, &glCreateBuffers, &glDeleteBuffers>; -// NOLINTEND(readability-identifier-naming) diff --git a/gfx/gl/glVertexArray.h b/gfx/gl/glVertexArray.h index 3790863..dbe930f 100644 --- a/gfx/gl/glVertexArray.h +++ b/gfx/gl/glVertexArray.h @@ -108,7 +108,6 @@ namespace Impl { GLuint attrib = 0; }; - // NOLINTNEXTLINE(readability-identifier-naming) struct glVertexArray : Detail::glNamed { VertexArrayConfigurator configure() @@ -116,21 +115,19 @@ namespace Impl { return VertexArrayConfigurator {name}; } - template<typename GlAllocated> + template<typename glAllocated> void - useBuffer(GLuint binding, const GlAllocated & buffer) const + useBuffer(GLuint binding, const glAllocated & buffer) const requires requires { { buffer.bufferName() } -> std::same_as<GLuint>; } { - using T = typename GlAllocated::value_type; + using T = typename glAllocated::value_type; glVertexArrayVertexBuffer(name, binding, buffer.bufferName(), 0, sizeof(T)); } }; } -// NOLINTBEGIN(readability-identifier-naming) template<size_t N> using glVertexArrays = glManagedArray<Impl::glVertexArray, N, &glCreateVertexArrays, &glDeleteVertexArrays>; using glVertexArray = glManagedSingle<Impl::glVertexArray, &glCreateVertexArrays, &glDeleteVertexArrays>; -// NOLINTEND(readability-identifier-naming) |
