This is a graphics project written in C++ that utilizes SDL2 and OpenGL using GLEW and GLM libraries to create graphical applications. The project aims to provide a starting point for learning graphics programming in C++. The pong game has been moved to https://github.com/chadthecoder/NetworkPongGame as it is now its own project to work on using what I have learned while experimenting in this repo.
Here are two drawings I made to show how the cube should be rendered using my current plan.
Before you begin, ensure you have the following dependencies installed on your system:
-
SDL2
-
OpenGL
-
GLEW
-
GLM
-
Makefile (for building)
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/graphics-project.git cd graphics-project
-
Build the project using CMake:
cd pingPong make lin (make win for Windows)
-
Run the compiled executable:
make runLin (make runWin for Windows)
-
Clean the compiled executable (If needed):
make cleanLin (make cleanWin for Windows)
-
asioGraphicsNetwork/
: Contains a simple UDP file for multiplayer game later. -
2dgameengine/
: Contains header files for your project. -
imageTest/
: Contains imageTest for SDL2. -
sdlGlewTest/
: Contains test of using SDL2 and GLEW together for learning. -
webgl/
: Contains webgl test for learning.
-
linux/
: Contains linux .o files and binaries. -
windows/
: Contains windows .o files and .exe files.
Here are some resources to help you learn more about the libraries used in this project:
If you'd like to contribute to this project, feel free to submit pull requests or open issues.
Replace "https://github.com/yourusername/graphics-project.git"
with the actual URL of your project's repository.