https://github.com/claudemuller/3d-renderer.c
A software 3D renderer written in C and SDL
https://github.com/claudemuller/3d-renderer.c
3d c sdl2 software-rendering
Last synced: 10 months ago
JSON representation
A software 3D renderer written in C and SDL
- Host: GitHub
- URL: https://github.com/claudemuller/3d-renderer.c
- Owner: claudemuller
- Created: 2023-11-11T06:17:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T17:36:25.000Z (about 2 years ago)
- Last Synced: 2025-04-08T23:31:35.503Z (10 months ago)
- Topics: 3d, c, sdl2, software-rendering
- Language: C
- Homepage:
- Size: 2.25 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 3d-renderer
[](https://github.com/claudemuller/3d-renderer/actions/workflows/c.yml)
A software 3D renderer written in C and SDL using the left-handed co-ordinate system.

## Requirements
- [gcc](https://gcc.gnu.org/)
- or [clang](https://clang.llvm.org/)
- [make](https://www.gnu.org/software/make/)
- [SDL2](https://www.libsdl.org/)
- (Optional) [Bear](https://github.com/rizsotto/Bear) - for auto-completion (in the editor)
## Generate Compilation Database (for auto-completion)
```bash
make gen-compilation-db
```
## Building
```bash
make build
```
## Running
```bash
make run
```
## Build a Debug Binary
```bash
make debug-build
```
## Start `lldb` or `gdb` With Debug Binary
```bash
make debug
```
## Cleaning the Project
```bash
make clean
```
---
> References
>
> Code produced as part of the course [3D Graphics Programming from Scratch](https://courses.pikuma.com/courses/take/learn-computer-graphics-programming).