]> git.lizzy.rs Git - shadowclad.git/blobdiff - level.c
Refactor code style
[shadowclad.git] / level.c
diff --git a/level.c b/level.c
index 29bee2ca62f4b95251a47161639331b5c74194ad..0b344fe1965bea8033b5ce13ba25f3e8ef1a84cc 100644 (file)
--- a/level.c
+++ b/level.c
 const Block BLOCK_EMPTY = 0;
 const Block BLOCK_WALL01 = 1;
 
-TGAimage* level_image = NULL;
+TgaImage* levelImage = NULL;
 
-Block get_block(GLushort x, GLushort y) {
-       if (level_image == NULL) {
+Block getBlock(GLushort x, GLushort y) {
+       if (levelImage == NULL) {
                return BLOCK_EMPTY;
        }
-       return ((Block*) (*level_image).bytes)[x * (*level_image).header.image_width + y];
+       return ((Block*) (*levelImage).bytes)[x * (*levelImage).header.imageWidth + y];
 }
 
-void set_image(TGAimage* image) {
-       level_image = image;
+void setImage(TgaImage* image) {
+       levelImage = image;
 }
 
-const struct aiScene* import_model(const char* path) {
+const struct aiScene* importModel(const char* path) {
        const struct aiScene* scene = aiImportFile(path, 0u);
        if (scene == NULL) {
                fprintf(stderr, "Asset import failed at file %s\n", path); // TODO factor logging the heck outta here