Graphics samples for john-chapman.github.io.
This project also serves as an example for using the GfxSampleFramework as a basis for your own demo/sample projects.
Currently only supporting Visual Studio/Windows.
-
Install Git LFS.
-
Clone the repo. Don't forget to recursively clone the submodules (GfxSampleFramework and ApplicationTools):
git clone --recursive https://github.com/john-chapman/GfxSamples.git
- Run
BuildVS.bat
and enter the target to generate a solution for Visual Studio:
You can also run the build/premake.lua
script directly (requires premake5).
- Open
build/vs*/GfxSamples.sln
, build the projects.
- Run
New2dProject.bat
orNew3dProject.bat
and give your project a name:
This will set up a new empty project with skeleton .h
and .cpp
files and rebuild the VS2017 solution. Each project also has it's own data dir e.g. data/MyProject/
where you should put the per-project shaders, textures, etc.
Note that 3d projects derive from frm::AppSample3d
which provides a default 3d camera and scene instance.
- Open
build/vs*/GfxSamples.sln
. Take a look at the tutorial project for a quick start guide.
Submodule dependencies: