July 2017
Beginner to intermediate
390 pages
10h 53m
English
We leave our HoloCursor class alone for a while now. We have created the class; it is about time we used it.
If you have a look at the GazeSampleDirectxMain class, if you have used the same name as I did, you will find a lot of references to the SpinningCubeRenderer class. We will have a closer look at what is going on this class, but for now we will simply duplicate most of the calls to the SpinningCubeRenderer class and rename that to our HoloCursor class. I have included the original calls to SpinningCubeRenderer in the code samples below, so you can easily find where I am adding the new code.
We will add a new private field:
private SpinningCubeRenderer spinningCubeRenderer; private HoloCursor _holoCursor;
In the ...
Read now
Unlock full access