https://github.com/naakinn/3d-engine
Basic 3D engine in C, OpenGL spec
https://github.com/naakinn/3d-engine
3d 3d-graphics 3dengine c glad opengl opengl4 opengl46 sdl sdl2
Last synced: 2 months ago
JSON representation
Basic 3D engine in C, OpenGL spec
- Host: GitHub
- URL: https://github.com/naakinn/3d-engine
- Owner: Naakinn
- Created: 2024-08-28T16:57:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T16:09:41.000Z (2 months ago)
- Last Synced: 2025-02-23T17:23:38.769Z (2 months ago)
- Topics: 3d, 3d-graphics, 3dengine, c, glad, opengl, opengl4, opengl46, sdl, sdl2
- Language: C
- Homepage:
- Size: 2.25 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> [!WARNING]
> Highly beta, PRs are welcome.
# Hvat?
This is a basic 3D engine implemented in C. It works with [OpenGL Graphics API](https://learnopengl.com/Getting-started/OpenGL) and uses [Glad](https://glad.dav1d.de/) loader.How does it create a window? [SDL2 library](https://www.libsdl.org/).
# Dependencies
- [SDL2](https://wiki.libsdl.org/SDL2/Installation#supported_platforms)# Build
Firstly, clone the repository and initialize submodules(dependencies, like [cglm](https://github.com/recp/cglm)).
```
$ git clone --recurse-submodules https://github.com/Naakinn/3D-Engine
```Then build and run.
```
$ make
$./engine
```### Build in debug mode or in release mode
```
$ make
# or
$ make release
```
# Features1. Add textures, example texture can be found [here](textures/texture.jpg).
> [!warning]
> This feature is not implemented yet))) coming soon.
```
$ ./engine -t texture.jpg
```
# Contributing
1. You may want to create a .tar.gz binary using `make package`.
2. You can format entire progect(except src/glad.c file, which is [autogenerated](https://glad.dav1d.de/)) with `make format`