Enable rendering
This commit is contained in:
		
							
								
								
									
										4
									
								
								dod.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dod.c
									
									
									
									
									
								
							@@ -92,7 +92,7 @@ int main(void) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  SetTraceLogLevel(LOG_NONE);
 | 
					  SetTraceLogLevel(LOG_NONE);
 | 
				
			||||||
  InitWindow(WIDTH, HEIGHT, "DOD test");
 | 
					  InitWindow(WIDTH, HEIGHT, "DOD test");
 | 
				
			||||||
  // SetTargetFPS(target_fps);
 | 
					  SetTargetFPS(target_fps);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Allocator arena = wapp_mem_arena_allocator_init(MB(20));
 | 
					  Allocator arena = wapp_mem_arena_allocator_init(MB(20));
 | 
				
			||||||
  assert(!wapp_mem_allocator_invalid(&arena));
 | 
					  assert(!wapp_mem_allocator_invalid(&arena));
 | 
				
			||||||
@@ -134,7 +134,7 @@ int main(void) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ClearBackground(BG_COLOR);
 | 
					    ClearBackground(BG_COLOR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // render_entities(manager.tags, manager.rects, manager.count);
 | 
					    render_entities(manager.tags, manager.rects, manager.count);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DrawFPS(10, 10);
 | 
					    DrawFPS(10, 10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										16
									
								
								no_dod.c
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								no_dod.c
									
									
									
									
									
								
							@@ -50,7 +50,7 @@ f32 get_random_float(XOR256State *state);
 | 
				
			|||||||
int main(void) {
 | 
					int main(void) {
 | 
				
			||||||
  SetTraceLogLevel(LOG_NONE);
 | 
					  SetTraceLogLevel(LOG_NONE);
 | 
				
			||||||
  InitWindow(WIDTH, HEIGHT, "No-DOD test");
 | 
					  InitWindow(WIDTH, HEIGHT, "No-DOD test");
 | 
				
			||||||
  // SetTargetFPS(120);
 | 
					  SetTargetFPS(120);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Allocator arena       = wapp_mem_arena_allocator_init(MB(20));
 | 
					  Allocator arena       = wapp_mem_arena_allocator_init(MB(20));
 | 
				
			||||||
  XOR256State state     = wapp_prng_xorshift_init_state();
 | 
					  XOR256State state     = wapp_prng_xorshift_init_state();
 | 
				
			||||||
@@ -84,13 +84,13 @@ int main(void) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ClearBackground(BG_COLOR);
 | 
					    ClearBackground(BG_COLOR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // for (u64 i = 0; i < ZONE_COUNT; ++i) {
 | 
					    for (u64 i = 0; i < ZONE_COUNT; ++i) {
 | 
				
			||||||
    //   render_slow_zone(&(zones[i]));
 | 
					      render_slow_zone(&(zones[i]));
 | 
				
			||||||
    // }
 | 
					    }
 | 
				
			||||||
    //
 | 
					
 | 
				
			||||||
    // for (u64 i = 0; i < WANDERER_COUNT; ++i) {
 | 
					    for (u64 i = 0; i < WANDERER_COUNT; ++i) {
 | 
				
			||||||
    //   render_wanderer(&(wanderers[i]));
 | 
					      render_wanderer(&(wanderers[i]));
 | 
				
			||||||
    // }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DrawFPS(10, 10);
 | 
					    DrawFPS(10, 10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user