Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naakinn/3d-engine
3D engine written in C/C++ on OpenGL
https://github.com/naakinn/3d-engine
3d 3d-graphics 3dengine c glad opengl opengl4 opengl46 sdl sdl2
Last synced: 27 days ago
JSON representation
3D engine written in C/C++ on OpenGL
- Host: GitHub
- URL: https://github.com/naakinn/3d-engine
- Owner: Naakinn
- Created: 2024-08-28T16:57:57.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T16:57:08.000Z (3 months ago)
- Last Synced: 2024-11-19T17:49:59.007Z (3 months ago)
- Topics: 3d, 3d-graphics, 3dengine, c, glad, opengl, opengl4, opengl46, sdl, sdl2
- Language: C
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](images/preview2.png)
# Hvat?
This is a basic 3D engine implemented in C and C++. It works with [OpenGL Graphics API](https://learnopengl.com/Getting-started/OpenGL) and uses [Glad](https://glad.dav1d.de/) loader.System API(creating windows, etc.) comes with [SDL2 library](https://www.libsdl.org/).
# Why?
For educational purpose. Also I found myself fond of 3D graphics and think I will be working in this subject later.# Dependencies
- [GLM](https://github.com/g-truc/glm)
- System wide [here](https://github.com/g-truc/glm?tab=readme-ov-file#build-and-install)
Or
- Locally
Just clone git repository of [glm](https://github.com/g-truc/glm) and put `glm` directory inside engine's `include` directory
```
cd path/to/glm
mv glm path/to/project/include
```
- [SDL2](https://wiki.libsdl.org/SDL2/Installation#supported_platforms)
# Build
```
$ cmake -B build
$ cmake --build build
```
### Build in debug mode
```
$ cmake -B build -DDEBUG=ON
$ cmake --build build
```
# Run
```
$ ./engine
```