- First compile the resource file.
set root=%CD%
cd resources
rc.exe /V resource.rc
cd %root%
- Now compile the program with resource file
- The
Sphere.lib
andSphere.dll
is provided by Sir and is not included with this source. You can draw any other shape. - As we are using x86 version of
Sphere.lib
andSphere.dll
, we have to use x86 version of all other dll's and lib's.
cl.exe /EHsc /DUNICODE /Zi /I %SPHERE_PATH% perVertexLight.cpp /link resources\resource.res /LIBPATH:%SPHERE_PATH% user32.lib kernel32.lib gdi32.lib d3d11.lib D3dcompiler.lib Sphere.lib
- Press
Esc
key to quit. - Press
f
key to toggle fullscreen mode. - Press
l
key to enable lighting.