https://github.com/corentin-mzr/pongl
Pong with OpenGL
https://github.com/corentin-mzr/pongl
2d 2d-game cpp game game-engine-2d mvc-architecture opengl pong pong-game
Last synced: 4 months ago
JSON representation
Pong with OpenGL
- Host: GitHub
- URL: https://github.com/corentin-mzr/pongl
- Owner: Corentin-Mzr
- License: mit
- Created: 2025-01-09T16:33:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-09T15:02:53.000Z (10 months ago)
- Last Synced: 2025-09-09T15:35:16.975Z (10 months ago)
- Topics: 2d, 2d-game, cpp, game, game-engine-2d, mvc-architecture, opengl, pong, pong-game
- Language: C
- Homepage:
- Size: 6.73 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PonGL: "Simple" Pong implementation with OpenGL and C++

## Description
This project is an implementation of the Pong game in C++/C using OpenGL.
- This project uses a MVC (Model - View - Controller) architecture
- Git submodules are used
## Installation
### Prerequisites
- C/C++ Compiler
- CMake >=3.28
- OpenGL
On linux, run the following commands:
```sh
sudo apt-get update
sudo apt-get install -y build-essential cmake
sudo apt-get install -y mesa-utils mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
sudo apt-get install -y wayland-protocols \
libwayland-dev \
libxkbcommon-dev \
libwayland-client0 \
libwayland-cursor0 \
libwayland-egl1-mesa
sudo apt-get install -y libx11-dev \
libxrandr-dev \
libxcursor-dev \
libxinerama-dev \
libxcomposite-dev \
libxi-dev \
libudev-dev \
libfreetype6-dev \
libjpeg-dev \
libopenal-dev \
libflac-dev \
libvorbis-dev \
libxcb1-dev \
libxcb-image0-dev \
libxcb-randr0-dev \
libxcb-xtest0-dev
```
### Clone the projet
```sh
git clone --recursive https://github.com/Corentin-Mzr/PonGL
```
### Build the project
From the root folder, execute the following commands:
```sh
cmake -B build
cmake --build build --parallel
```
### Run the program
To run the program, launch it from the build folder:
```sh
cd build
./PonGL
```
## Libraries
The following libraries have been installed for this program:
- [**GLFW**](https://github.com/glfw/glfw)
- [**GLM**](https://github.com/g-truc/glm)
- [**GLAD**](https://github.com/Dav1dde/glad)
- [**FreeType**](https://github.com/freetype/freetype)
- [**Assimp**](https://github.com/assimp/assimp) (**not used**)
- [**Stb_image**](https://github.com/nothings/stb) (**not used**)
## License
This program is under the [**MIT License**](LICENSE.md)