July 2017
Beginner to intermediate
390 pages
10h 53m
English
We will create a new C# file in the folder Content. This file will contain all code needed to render the circle, so I decided to call the class HoloCursor. I have called my project GazeSampleDirectX, so my resulting file looks like this:
using GazeSampleDirectX.Common; namespace GazeSampleDirectX.Content { internal class HoloCursor : Disposer { private readonly DeviceResources _deviceResources; public HoloCursor(DeviceResources deviceResources) { _deviceResources = deviceResources; } }
We need to derive our class from the Disposer class in order to be sure we are cleaning up after ourselves. Since DirectX uses a lot of COM calls, we need to remove all references. Disposer is a class that is part of the ...
Read now
Unlock full access