1.resource_types.h
#pragma once
#include "math/math_types.h"
typedef struct texture
{
u32 id;
u32 width;
u32 height;
u8 channel_count;
b8 has_transparency;
u32 generation;
void* internal_data;
}texture;
2.entry.h
#include "core/application.h"
#include "core/logger.h"
#include "game_types.h"
//#include "core/kmemory.h"
extern b8 create_game(game* out_game);
int main(void)
{
game game_inst;
if(!create_game(&game_inst)){
KFATAL("Could not create game!");
return -1;
}
if(!application_create(&game_inst))
{
KINFO("Application failed to create!");
return 1;
}
//begin the game loop
if(!application_run()){
KINFO("Application did not shutdown gracefully\n");
return 2;
}
//application_config config;
// config.start_pos_x = 100;
// config.start_pos_y = 100;
//config.start_width = 1280;
//config.start_height = 720;
// config.name= "apophis engine testbed";
return 0;
}