Created
June 16, 2022 22:40
-
-
Save tonetheman/a362ad5ac761c0dd354a485d6c4605b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "raylib.h" | |
int main(void) { | |
std::cout << "howdy" << std::endl; | |
// Initialization | |
//-------------------------------------------------------------------------------------- | |
const int screenWidth = 800; | |
const int screenHeight = 450; | |
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); | |
SetTargetFPS(60); // Set our game to run at 60 frames-per-second | |
//-------------------------------------------------------------------------------------- | |
// Main game loop | |
while (!WindowShouldClose()) // Detect window close button | |
{ | |
BeginDrawing(); | |
ClearBackground(RAYWHITE); | |
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); | |
EndDrawing(); | |
} | |
CloseWindow(); // Close window and OpenGL context | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all : junk junk2 | |
junk : junk.cpp | |
gcc -o junk junk.cpp -lraylib -lopengl32 -lgdi32 -lwinmm -lstdc++ | |
junk2 : junk.cpp | |
g++ -o junk2 junk.cpp -lraylib -lopengl32 -lgdi32 -lwinmm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment