|
Core Graphics Library is a library that I made to make OpenGL simple to code in. I'd like to credit GLFW for their library which powers mine. CGL is inspired by Raylib and it's made mostly for Video Game developing, but can be used for other types of Graphics programming. CGL strives to be the best version of itself each and every update, your feedback is appreciated! Join the official CGL Discord Server to follow updates, talk to owners and give feedback. |
Caution
CGL is still in Early Development!
This means that even versions that are marked as "Stable" or aren't in the beta branch have bugs and other issues.
If you have a problem with recent version(s) then please join the official CGL Discord to get help.
Same goes for bug reports and everything of the like.
Warning
Before using CGL you will need to have GLFW installed and ready to go.
We recommend using vcpkg for simplicity if you are using Visual Studio.
Thank you!
CGL was created by two people
The main developer, Owner and Founder: Wacky
The main graphics designer, Co-Owner and Co-Founder: Axov
CGL was made so YOU could have an easy and fun time developing games and other graphics programs/software
CGL was first created on the 11th of November 2025 which was also Axov's birthday.
- One External Dependency. GLFW (This is subject to change in the near future). All other dependencies are included with CGL.
- Supported in atleast: Windows, Linux and MacOS
- All source files are written in plain C++20 Standard.
- CGL has an Input system that includes "IsKeyPressed", "IsKeyReleased", "IsKeyDown", and more. And also has custom Input Binding.
- CGL has a Window system that let's you create and use windows very easily.
- CGL is still in development which means there is Much, much, much more to come
- CGL uses the zlib license. Learn more in LICENSE
- CGL is Free to use and Open Source
Note
CGL Info box:
CGL is a lightweight OpenGL library/wrapper.
CGL uses GLFW to function.
CGL is made to be fun and Easy-To-Use
CGL was made because Wacky was tired of having to code hundreds of lines for a triangle.
CGL is an Object-Oriented Library meaning it uses "objects" to structure software, each object combines data and the functions
- For windows you can download the CGL-Installer.exe from one of the releases.
- Or optionally you can also download the .zip file.
- After CGL has been downloaded you will make a C++ project in Visual Studio.
- In the project you will need to include the lib folder as an additional library directory (In the Linker, Input)
- Do the same for the include folder, but as an additional include directory (In VC++ Directories and C/C++)
- Also make sure you have installed GLFW for this project (unless you used vcpkg, it does that automatically)
- Now you should have CGL installed and ready to use.
- If you need any help join the official CGL Discord
Note
This will be very similiar to the guide above if:
You're using CLion, QT Creator or Code::Blocks
Otherwise you might want to watch a tutorial on how to include additional include directories and libraries.
Remember to have GLFW installed and ready to use for the project.
Again we recommend you to use vcpkg for maximum simplicity if you are using Visual Studio
If you are using Visual Studio you can use the Windows Installing guide above.
Tip
The following guide includes a tutorial for CLion, QT Creator and Code::Blocks
If you are using CLion proceed to the guide that is after this text (guide still in development)
If you are using QT Creator proceed to the guide that is after the CLion guide.
If you are using Code::Blocks proceed to the last guide.
If you are using Visual Studio then back up and follow the Windows installation. (Just download the .zip instead of the installer)
- Download the latest .zip file from releases.
- After CGL has downloaded you will make a project in QT Creator.
- Right click your project and then click "Add Library"
- It will ask for a path to the .lib file in which you will put your path to the CGL folder and then in there the "lib" folder
- It will also ask for a path to the "include" directory in which you will put your path to the CGL folder and then in there the "include" folder
- Remember to make sure you have GLFW installed for this project
- Now you should have CGL installed and ready to use.
- If you need any help join the official CGL Discord
- Download the latest .zip file from releases.
- After CGL has downloaded you will make a project in Code::Blocks.
- In Code::Blocks will go to Project, Build Options and Select your project on the left.
- Then select the compiler tab, click add and then choose the path to where CGL is downloaded and in there select the "include" folder.
- Then go to the linker tab, click add and select the path to where CGL is downloaded and in there select the "lib" folder.
- After that go to linker settings, click Add and select the .lib file inside of the "lib" folder of CGL.
- Now you should have CGL installed and ready to use.
- If you need any help join the official CGL Discord
