cleared boilerplate
This commit is contained in:
parent
03fac3e692
commit
735b373c78
2 changed files with 1 additions and 27 deletions
|
|
@ -4,10 +4,6 @@ project(lithops LANGUAGES C VERSION 0.0.1)
|
|||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
set(ARCHEUS_WINDOW_BACKEND "SDL3" CACHE STRING "use sdl3 window")
|
||||
set(ARCHEUS_INPUT_BACKEND "SDL3" CACHE STRING "use sdl3 input")
|
||||
set(ARCHEUS_GRAPHICS_BACKEND "SDL3" CACHE STRING "use sdl3 input")
|
||||
|
||||
#TODO: add "-Wpedantic"
|
||||
add_compile_options(
|
||||
"-Wall" "-Werror" "-fexceptions"
|
||||
|
|
|
|||
24
src/main.c
24
src/main.c
|
|
@ -1,28 +1,6 @@
|
|||
#include <archeus.h>
|
||||
|
||||
void TEMP_State_UpdateFn(void *data){
|
||||
}
|
||||
|
||||
void TEMP_State_RenderFn(void *data){
|
||||
}
|
||||
|
||||
int main(){
|
||||
ARC_Point windowSize = { 1920, 1080 };
|
||||
ARC_EngineData *data;
|
||||
ARC_EngineData_Create(&data, windowSize);
|
||||
|
||||
ARC_State *state = (ARC_State *)malloc(sizeof(ARC_State));
|
||||
*state = (ARC_State){
|
||||
TEMP_State_UpdateFn,
|
||||
TEMP_State_RenderFn,
|
||||
data,
|
||||
NULL
|
||||
};
|
||||
|
||||
ARC_Handler_Add(data->state, state);
|
||||
|
||||
ARC_Engine_RunUncapped(data);
|
||||
|
||||
ARC_EngineData_Destroy(data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue