Mini project that I hope I can grow.
Win32 and Make.
- Clone the repo.
- Run the Build.bat. (Only works if you have make and MinGW / g++).
- Glfw, using 64-bit, pre-build.
- Glad, using 4.6, not built.
- ImGui.
#include "Core.h" // Main stuff
#include "Core/Launch.h" // Only once included
class Test : public Core::Application
{
public:
Test(){};
~Test(){};
// Setup configuration
void OnPreInit()
{
this->p_Configuration.StartMaximized = true;
};
void OnInit()
{
// Add layers and other stuff
}
}
// VERY IMPORTANT REPRESENTS THE APPLICATION TO USE, CRASH OCCURS IF NOT DONE RIGHT
Core::Application* Core::CreateApplication() {
return new Test();
};
- Open a Command Prompt.
- cd Into the directory where the Engine Folder and your code lives.
- Create a folder named Bin. (Manually or use "mkdir Bin" with cmd).
- Run: "g++ -DCORE_WINDOWS_PLATFORM -g YOUR_SOURCE_CODE_PATH/*.cpp -IYOUR_SOURCE_CODE_PATH -IEngine/Source -IEngine/Vendor/GLFW/include -IEngine/Vendor/ImGui -LBin -lEngine -lImGui -o Bin/Test"
Including GLFW for the Input system. Using ImGui only if wanted, recommended.
- Build. (Shown above).
- Go in the Bin folder and run the Test.exe (or whatever name you gave it).
How to configure an application: AppConfig
How to add layers to your application: Layer
How to render your first sprite: Sprite
I am 14 years old if anyone cares.