Git Product home page Git Product logo

3denginecpp's Introduction

3DEngineCpp

It's like the 3D Game Engine, except in C++

##Build Dependencies##

###NOTES for Dependencies### On Unix/Linux/Mac you can likely install CMAKE, GLEW, SDL2 and ASSIMP with your package manager

# On ubuntu just run
sudo apt-get install cmake libglew-dev libsdl2-dev libassimp-dev

# On Mac with HomeBrew just run
brew install cmake glew sdl2 assimp

##Simple Build Instructions## ###Mac OSX/Linux/Unix###

  • Open a Terminal and run:
# install dependencies

./Unix-Build.sh [Build Target, Debug or Release (Optional)] [Any arguments for CMake (Optional)]

#For instance, you can use the CMake argument -G "Xcode" to generate an Xcode project during build,
#or you can use -G "CodeBlocks - Unix Makefiles" to generate a CodeBlocks Project.
#See http://www.cmake.org/ for more details about CMake arguments
  • If this fails for any reason, try using the Manual Build Instructions below.

###Windows###

  • Make sure CMake is both installed and added to the system PATH.
  • Run "Windows-GenVisualStudioProject.bat" If this fails for any reason, try using the Manual Build Instructions below.
  • Go to the build folder, and open 3DEngineCpp.sln with Visual Studio 2012 or newer (For older versions of Visual Studio, use manual build instructions)
  • Right click on the 3DEngineCpp project, and select "Set as start up project"
  • Build and Run

##Manual Build Instructions## ###Linux/Unix###

  • Open a Terminal and run:
# install dependencies
cd build
cmake ../
make

###Mac OSX###

  • Open a Terminal and run:
# install dependencies
cd build
cmake ../
make

###Windows/MinGW###

  • Make sure CMake is both installed and added to the system PATH.
  • Open a Terminal and run:
# install dependencies
# Install GLEW in %PROGRAMFILES%/GLEW or SET %GLEW_ROOT_DIR% to where GLEW is on your machine (Example: D:\PATH_TO_GLEW)
# Install SDL2 in %PROGRAMFILES%/SDL2 or SET %SDL2_ROOT_DIR% to where SDL2 is on your machine (Example: D:\PATH_TO_SDL2)
# Install ASSIMP in %PROGRAMFILES%/ASSIMP or SET %ASSIMP_ROOT_DIR% to where ASSIMP is on your machine (Example: D:\PATH_TO_ASSIMP)
cd build
# REPLACE "Visual Studio 12" with your preferred build toolchain (Maybe you want "Codeblocks - MinGW Makefiles")
# BTW VS 10 is VS 2010, VS 11 is VS 2012 and VS 12 is VS 2013, BLAME MicroSoft for the naming! LOL! 
cmake -G "Visual Studio 12" ../
# open the generated SLN file (or cbp file if using CodeBlocks) and build!
  • Copy the DLLs in /lib/_bin/ to /build/Debug/ and /build/Release/
  • In Visual Studio, set the Startup project to 3DEngineCpp
  • Move the res folder into the build folder
  • Run

##Additional Credits##

  • Etay Meiri, for http://ogldev.atspace.co.uk/ which inspired the base code for this repository.
  • @mxaddict for setting up the awesome CMake build system
  • Everyone who's created or contributed to issues and pull requests, which make the project better!

3denginecpp's People

Contributors

bennyqbd avatar mxaddict avatar pseudosoftware avatar spaarmann avatar

Watchers

 avatar  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.