Change naming convention, merge texture/shaders
Reduce the number of files in project by merging texture and shaders into assets/renderer file. It's better to keep code local to where it is rather than splitting them into "self-contained modules". It becomes easier to understand reading top-to-bottom and there's is less jumping around which can increase the difficulty of comprehending the code. Convert names to use more of a <namespace>_<object><Action> format.
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ void memory_arenaInit(MemoryArena_ *arena, void *base, size_t size)
|
||||
arena->tempMemoryCount = 0;
|
||||
}
|
||||
|
||||
TempMemory memory_begin_temporary_region(MemoryArena_ *arena)
|
||||
TempMemory memory_beginTempRegion(MemoryArena_ *arena)
|
||||
{
|
||||
TempMemory result = {0};
|
||||
result.arena = arena;
|
||||
@@ -19,7 +19,7 @@ TempMemory memory_begin_temporary_region(MemoryArena_ *arena)
|
||||
return result;
|
||||
}
|
||||
|
||||
void memory_end_temporary_region(TempMemory tempMemory)
|
||||
void memory_endTempRegion(TempMemory tempMemory)
|
||||
{
|
||||
MemoryArena_ *arena = tempMemory.arena;
|
||||
ASSERT(arena->used > tempMemory.used)
|
||||
|
||||
Reference in New Issue
Block a user