#include #include #include #include #include #include #include /* #include "../converted_model.h" */ int main(int argc, char **argv) { gastro_ctx ctx; u32 width = 256, height = 256; gastro_color *pixels = calloc(width * height, sizeof(gastro_color)); gastro_fix *depth = calloc(width * height, sizeof(gastro_fix)); gastro_ctx_init(&ctx, width, height, pixels, depth); gastro_test_create(); InitWindow(800, 600, "test"); { Image im; Texture2D tex; im.data = ctx.pixels; im.width = (int) ctx.width; im.height = (int) ctx.height; im.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; im.mipmaps = 1; tex = LoadTextureFromImage(im); SetTargetFPS(300); while (!WindowShouldClose()) { Vector2 pos; pos.x = 10; pos.y = 10; gastro_test_render(&ctx); BeginDrawing(); ClearBackground(RED); UpdateTexture(tex, ctx.pixels); DrawTextureEx(tex, pos, 0.0, 4.0, WHITE); DrawFPS(10, 10); EndDrawing(); } } CloseWindow(); (void) argc; (void) argv; return 0; }