From cb954445a219f55c35e73aa350dbfe31286af353 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sat, 30 Aug 2025 18:05:53 +0200 Subject: [PATCH] remove vendor folder from gitignore --- .gitignore | 2 +- Makefile | 2 +- src/main.cpp | 17 ++++++----------- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index c76a9df..3213207 100644 --- a/.gitignore +++ b/.gitignore @@ -42,5 +42,5 @@ # Dependency files docs -vendor include +bin diff --git a/Makefile b/Makefile index 5b83bfa..35a124f 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ platformpth = $(subst /,$(PATHSEP),$1) # Set global macros buildDir := bin -executable := app +executable := FactoryBuilder target := $(buildDir)/$(executable) sources := $(call rwildcard,src/,*.cpp) objects := $(patsubst src/%, $(buildDir)/%, $(patsubst %.cpp, %.o, $(sources))) diff --git a/src/main.cpp b/src/main.cpp index 6722d44..deb1d40 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,11 @@ -#include +#include "../include/raylib-cpp.hpp" +#include int main() { - int screenWidth = 800; - int screenHeight = 450; + int screenWidth = 1920; + int screenHeight = 1080; raylib::Window window(screenWidth, screenHeight, "raylib-cpp - basic window"); - raylib::Texture logo("raylib_logo.png"); SetTargetFPS(60); @@ -13,14 +13,9 @@ int main() { { BeginDrawing(); - window.ClearBackground(RAYWHITE); + window.ClearBackground(BLACK); - DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); - - // Object methods. - logo.Draw( - screenWidth / 2 - logo.GetWidth() / 2, - screenHeight / 2 - logo.GetHeight() / 2); + DrawText("Congrats! You created your first window!", 190, 200, 20, WHITE); EndDrawing(); }