Format like smack-a-brother, and write comments as sentences

Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
This commit is contained in:
shweet committed 2026-11-22 17:30:03 -05:00
1 parent 40f6b554b5
commit 7afdf709c3
176 files changed
+20500 -19048

No files matched your search

+8 -8
View File
@@ -3,14 +3,14 @@
#include <glad/glad.h>
#include <glm/glm.hpp>
class Framebuffer
{
public:
class Framebuffer
{
public:
enum class Type
{
UNDERLAY,
LAYER,
OVERLAY,
UNDERLAY,
LAYER,
OVERLAY,
};
GLuint fbo = 0;
@@ -18,7 +18,7 @@
GLuint texture = 0;
glm::vec2 size{};
glm::vec2 previousSize{};
GLint filter = GL_LINEAR; // how the texture is sampled when drawn scaled; takes effect on the next resize
GLint filter = GL_LINEAR; // how the texture is sampled when drawn scaled. Takes effect on the next resize
Framebuffer();
~Framebuffer();
@@ -32,4 +32,4 @@
bool is_valid() const;
void bind() const;
void unbind() const;
};
};