- Changed CMake file to use C++ instead of C and also to use the project name as the target name.

- Changed the macro-constants to constexpr constants and removed void as the parameter to main.
This commit is contained in:
Luca Sas 2021-03-31 19:00:44 +01:00
parent 310e32006f
commit bdab2b8a6e
2 changed files with 9 additions and 9 deletions

View file

@ -1,9 +1,9 @@
#include "raylib.h"
#define SCREEN_WIDTH (800)
#define SCREEN_HEIGHT (450)
constexpr auto SCREEN_WIDTH = 800;
constexpr auto SCREEN_HEIGHT = 450;
int main(void)
int main()
{
InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Window title");
SetTargetFPS(60);