typedef & PascalCase for ALL structs and enums
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user