PathEngine home | previous: | next: |
The test application runs as a main loop, and must call
For this tutorial we'll use a very basic update loop that exits when the escape key is pressed:
while(!testbed->getKeyState("_ESCAPE")) { testbed->setColourRGB(0.0f, 0.0f, 0.85f); testbed->drawMesh(); testbed->setColour("blue"); testbed->drawMeshEdges(); } |
In this case, if the escape key is down then the loop terminates.
See
Note that the currently selected mesh doesnt get drawn automatically.
We have to specifically ask for the mesh to be drawn.
This makes it easier to see what is going when one part of the mesh occludes another.
There are string based and RGB based versions of the set colour function because
the string based version is easier to read, but the RGB based version is more flexible.
See
Camera control will be performed by the testbed within the call to
See
Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEngine | next: |