This project is a cross-platform OpenGL implementation that supports multiple operating systems, including Windows, Linux, and macOS.
- CMake version 3.15 or higher
- A C++ compiler supporting:
- MSVC (for Windows).
- Clang (optional for Linux/macOS).
- OpenGL version 3.3 or higher.
- libx11 (Linux) or XQuartz (macOS).
- (Planned) Native Cocoa Objective-C runtime for macOS.
Crossplatform-OpenGLS
│
├── .gitignore
├── CMakeLists.txt
├── CMakePresets.json
└── OGL
├── CMakeFiles
└── platform
├── Cocoa
├── Win32
│ ├── context
│ ├── core
│ ├── input
│ └── window
└── X11
├── context
├── core
├── input
└── window- Hot Reload support for MSVC compiler
- Optimized Debug Information Format
- Cross-platform: Windows / Linux / macOS
- Auto-configured build and output directories
-
Generate the Visual Studio project:
cmake -B build -G "Visual Studio 17 2022"
-
Run the application:
out/build/x64-debug/OGL/Crossplatform-OpenGLS.exe
-
Create a build directory:
cmake -B build . -
Navigate into it:
cd build -
Run the application:
./Crossplatform-OpenGLS
Support for macOS using Cocoa and XQuartz is planned. The build process will include:
-
CMake generation with Xcode:
cmake -B build -G "Xcode" -
Linking with Cocoa and OpenGL frameworks
-
Running via native Objective-C integration
- Windows build output is placed in
build/Debug/orout/build/x64-debug/OGL/ - Linux build output is placed in
build/by default - macOS output location and instructions will be added soon
Feel free to open issues or contribute to improving cross-platform support!