Added GetOS example

This commit is contained in:
Rabia Alhaffar 2020-06-11 22:58:06 +03:00 committed by GitHub
parent e68b0d42b5
commit 2d7e3a8cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,17 @@
// Written by Rabia Alhaffar in 11/June/2020
// Example to check current operating system used
#include <raylib.h>
int main(void) {
InitWindow(0,0,"Check OS");
SetTargetFPS(60);
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText(GetOS(),10,10,32,BLACK);
EndDrawing();
}
CloseWindow();
return 0;
}