typedef & PascalCase for ALL structs and enums

This commit is contained in:
2024-09-23 14:43:16 -03:00
parent e093a6d492
commit 73bf92e706
43 changed files with 795 additions and 793 deletions

View File

@ -3,19 +3,19 @@
#include <stdbool.h>
typedef GLuint gpu_texture;
typedef GLuint GPUTexture;
enum texture_filter {
typedef enum TextureFilter {
TEXTURE_FILTER_NEAREAST,
TEXTURE_FILTER_LINEAR,
};
} TextureFilter;
gpu_texture create_gpu_texture(enum texture_filter filter, bool generate_mipmaps);
GPUTexture create_gpu_texture(TextureFilter filter, bool generate_mipmaps);
void delete_gpu_texture(gpu_texture texture);
void delete_gpu_texture(GPUTexture texture);
void upload_gpu_texture(gpu_texture texture, void *pixels, int channels, int width, int height);
void upload_gpu_texture(GPUTexture texture, void *pixels, int channels, int width, int height);
void bind_gpu_texture(gpu_texture texture);
void bind_gpu_texture(GPUTexture texture);
#endif