Skip to content

simstim-star/Sendai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sendai Engine

A game engine based on DirectX12 in pure C. This is a working in progress project that I created for educational purposes, in order to learn better about COM and DirectX.

Also check my ports of the official DirectX12 samples to pure C: https://github.com/simstim-star/DirectX-Graphics-Samples-in-C

And my port of DirectX Math to pure C: https://github.com/simstim-star/DirectXMath-in-C

Currently it is very rudimentary, only allowing very basic gltf loading: image

How to build (MSVC)

Get DirectXMath-in-C and install it with:

cmake -S . -B build-install
cmake --build build-install --target INSTALL

This will generate the folder xmathc, probably in C:/. This will allow us to use xmathc in other projects.

We can build this project with CMake:

cmake -S . -B build --debug-find-pkg=xmathc --fresh
cmake --build build

This will already link xmathc if it is installed.

We can also build with nmake. Open x64 Native Tools Command Prompt for VS 2022 and run nmake on this folder to generate the release build on the folder build_nmake.

This will also already link xmathc if it is installed.

Some other commands that may be useful:

  • nmake clean: clean all folders generated by our Makefile. Important to clean precompiled headers.
  • nmake DEBUG=1: generate debug build.
  • nmake debug: generate debug build and opens Visual Studio to run it.