Skip to content

thumsl/C3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C3D

C3D is a OpenGL 3D Game Engine, written in C, as a learning exercise.

YouTube videos showcasing features


Features


  • helper functions for setting up OpenGL and SDL2 windows
  • can load, compile and attach GLSL shaders
  • rudimentary font and text display system
  • Assimp for model loading
  • bad AABB collision detection
  • can display AABB wireframe
  • point lights, ambient light
  • FPS-style camera
  • bullets

FAQ


Q. Do you know that your code is not very pretty?

A. Yes.

Q. How do I use it?

A. Why would you do that?

clone this repository

cd C3D

cp examples/basic.c ./main.c

make

./game.out

You will need OpenGL 3.3+ capable drivers and hardware, SDL2, SDL2_image, Assimp and GLEW. Check the examples directory for samples.


TODO:

  • not abandon the project after the first week
  • decent OBJLoader (Assimp!)
  • UI
  • shadows
  • weapon.h
  • terrain generator
  • shut memory leaks
  • more lighting stuff
  • finish a game with it