mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 11:25:45 +01:00
apply new formatting rules to the whole project
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
void key_callback(GLFWwindow* win, int key, int scancode, int action, int mods) {
|
||||
void key_callback(GLFWwindow *win, int key, int scancode, int action, int mods) {
|
||||
(void)win, (void)key, (void)scancode, (void)action, (void)mods; // make the compiler shut up as this is fine
|
||||
#ifndef NDEBUG
|
||||
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
void key_callback(GLFWwindow* win, int key, int scancode, int action, int mods);
|
||||
void key_callback(GLFWwindow *win, int key, int scancode, int action, int mods);
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
int render_init(void);
|
||||
void render_update(GLFWwindow* win);
|
||||
void render_update(GLFWwindow *win);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#define NAM_E(name) _binary_res_##name##_end // name of an end variable
|
||||
|
||||
// macro for generating the variable declarations
|
||||
#define DEF_GLSL(name) \
|
||||
#define DEF_GLSL(name) \
|
||||
extern char const NAM_S(name)[]; \
|
||||
extern char const NAM_E(name)[]
|
||||
|
||||
@@ -24,7 +24,7 @@ DEF_GLSL(sh_geom_glsl);
|
||||
// NOLINTEND
|
||||
|
||||
/* compile a shader */
|
||||
static GLuint shader_compile(GLenum type, char const* src, size_t len) {
|
||||
static GLuint shader_compile(GLenum type, const char *src, size_t len) {
|
||||
int ilen = len;
|
||||
GLuint shader = glCreateShader(type);
|
||||
glShaderSource(shader, 1, &src, &ilen);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define WIN_DEFAULT_WIDTH 640
|
||||
#define WIN_DEFAULT_HEIGHT 480
|
||||
|
||||
static GLFWwindow* win = NULL;
|
||||
static GLFWwindow *win = NULL;
|
||||
|
||||
int window_init(void) {
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user