Coder Social home page Coder Social logo

gmh5225 / gameengine-exengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solenum/exengine

0.0 1.0 0.0 50.19 MB

A C99 3D game engine

Home Page: http://exez.in/

License: MIT License

Makefile 0.08% C 98.01% GLSL 0.61% C++ 0.11% Objective-C 0.29% Python 0.90%

gameengine-exengine's Introduction

exengine, a C 3D game engine.

Discuss | Website | TODO

What exactly is exengine?

exengine is a 3d engine that takes a slightly different approach than other libraries and engines do, in that it's a code-base you include directly into your own. Rather than using it as a static/shared library.

This approach allows easy and direct access to the engine back-end should you want to make modifications to suit your specific needs, so think of it as more of a template.

Assuming you don't want to set up your own build system (I can't blame you), you can clone the repo and use the existing build system and file structure as a starting template. It compiles on Linux, BSD, and Windows. It might compile and run on MacOS, but this isn't directly supported any more.

The contents of main.c/game.c are only supplied as examples to showcase how one might use the engine.

What are the features?

  • Simple and small
  • A straight-forward C99 codebase
  • A deferred* and forward renderer
  • Various light casters
  • Smooth shadow mapping
  • Normal & specular mapping
  • Half-kernel SSAO (deferred only)
  • IQM model loading
  • 3D model animation
  • Scene manager
  • Instancing
  • Polygon soup collision detection
  • Smooth collision response
  • Various cameras
  • More to come..

(External) Depends

  • A C99 compiler, preferably gcc. Clang and others should also work
  • OpenGL 3.3+
  • SDL2

Credits

Getting Started

Documentation

The current method of documentation is code comments, every engine header has extensive documentation as to its purpose and how one might use it. Better documentation will come in the near future.

Using & Compiling

Simply clone the repository and install the required libraries and compilers listed below for the OS you are using.

This only applies to those wanting to use the current build system and game code as a starting template, and not those wanting to include exengine into an existing project or build system.


Linux

sudo apt-get update
sudo apt-get install build-essential libsdl2-dev
cd src && make

The resulting binary will be in src/build/


Windows

Download and install Cygwin with the following packages. All required libraries for Windows are included in the codebase.

Alternatively switch to category view and set 'Devel' to install. This method takes up 1-2GB of space

mingw64-x86_64-gcc
make
zip

You can also install the Linux subsystem for Windows 10, after which you just need to run the following.

sudo apt update
sudo apt install mingw-w64 make zip
cd /mnt/c/Users/MyUsername/Desktop/exengine/src

After this compiling is the same as Linux, except for the addition of setting the OS variable.

cd C:\exengine\src (or wherever you've put this)
OS=Windows_NT make

the resulting .exe will be in src/build/


OpenBSD

Make sure you have the correct dependicies installed, the equivalent of linux using pkg_add. For OpenBSD specific you will need the 'gmake' and 'gcc' packages. The gcc package will install a more modern compiler as egcc in your path.

after this the compilation is almost the same as in linux, this time specificly using gmake (stands for GNU make).

cd src && gmake

Stand-alone (recommended)

Alternatively you can drop the exengine/ directory right into your own project and use it with your own build system. This method obviously takes more work and time.


Gallery

scrot scrot scrot scrot scrot scrot

gameengine-exengine's People

Contributors

solenum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.