switching to cmake; alyson setup
This commit is contained in:
parent
9504620227
commit
23a40216de
20 changed files with 307 additions and 125300 deletions
27
src/main.c
27
src/main.c
|
@ -1,27 +0,0 @@
|
|||
#include <colysis.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
SetTargetFPS(60);
|
||||
|
||||
InitWindow(900, 500, "Colysis");
|
||||
|
||||
ecs_world_t *world = ecs_init();
|
||||
ecs_entity_t ray = ecs_entity(world, { .name = "raysan5" });
|
||||
|
||||
puts(ecs_get_name(world, ray));
|
||||
Texture2D logo = LoadTexture("assets/Raylib_logo.png");
|
||||
|
||||
while (!WindowShouldClose()) {
|
||||
BeginDrawing();
|
||||
DrawTexture(logo, GetScreenWidth() / 2 - logo.width / 2, GetScreenHeight() / 2 - logo.height / 2, WHITE);
|
||||
DrawText(ecs_get_name(world, ray), GetScreenWidth() / 2 - 25 * 3.5f, GetScreenHeight() - 50, 50, BLACK);
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
EndDrawing();
|
||||
}
|
||||
|
||||
UnloadTexture(logo);
|
||||
CloseWindow();
|
||||
return ecs_fini(world);
|
||||
}
|
16
src/main.cpp
Normal file
16
src/main.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <colysis.h>
|
||||
#include <iostream>
|
||||
#include <alyson.hpp>
|
||||
|
||||
int init() {
|
||||
std::cout << "colysis: init" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void update(float dt) {
|
||||
|
||||
}
|
||||
|
||||
void render(float dt) {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue