style: switch to east const across the codebase

- const T* -> T const* in all headers and implementations
- const T& -> T const& for copy constructor/operator= deletes
- update AGENTS.md to document east const convention
This commit is contained in:
2026-05-05 22:10:00 +02:00
parent 3f098faa88
commit 9114eaabc6
10 changed files with 25 additions and 24 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ shader& shader::operator=(shader&& other) noexcept {
return *this;
}
auto shader::compile_vertex(const char* source) -> bool {
auto shader::compile_vertex(char const* source) -> bool {
auto vert = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vert, 1, &source, nullptr);
glCompileShader(vert);
@@ -55,7 +55,7 @@ auto shader::compile_vertex(const char* source) -> bool {
return true;
}
auto shader::compile_fragment(const char* source) -> bool {
auto shader::compile_fragment(char const* source) -> bool {
auto frag = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(frag, 1, &source, nullptr);
glCompileShader(frag);