add raylib and test window
This commit is contained in:
16
main.c
16
main.c
@@ -9,6 +9,8 @@
|
||||
* @license GNU GPL v3
|
||||
*/
|
||||
|
||||
#include "raylib.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -41,5 +43,19 @@ int main(int argc, char* argv[])
|
||||
|
||||
print_datapoint_list(head);
|
||||
|
||||
// Raylib test window
|
||||
SetTraceLogLevel(4);
|
||||
const int screenWidth = 800;
|
||||
const int screenHeight = 600;
|
||||
InitWindow(screenWidth, screenHeight, "Raylib basic window");
|
||||
SetTargetFPS(60);
|
||||
while (!WindowShouldClose()) {
|
||||
BeginDrawing();
|
||||
ClearBackground(RAYWHITE);
|
||||
DrawText("It works!", 20, 20, 20, BLACK);
|
||||
EndDrawing();
|
||||
}
|
||||
CloseWindow();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user