- 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:
parent
310e32006f
commit
bdab2b8a6e
2 changed files with 9 additions and 9 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue