| 12345678910111213141516171819202122232425262728 |
- #include <raylib.h>
- #include <string.h>
- int main(void)
- {
- const int screenWidth = 800;
- const int screenHeight = 600;
- InitWindow(screenWidth, screenHeight,
- "Vinora Engine");
- SetTargetFPS(60);
-
- char *text = "Hello, World!";
- while (!WindowShouldClose())
- {
- BeginDrawing();
- ClearBackground(RAYWHITE);
- DrawText(text, screenWidth/2 - (strlen(text)*40/2)/2,
- screenHeight/2 - 40, 40, GRAY);
- EndDrawing();
- }
- CloseWindow();
- return 0;
- }
|