new Tesselator()
An interface to the LibTess tesselator.
Methods
-
dispose() <static>
-
Releases the shared polygon tesselator so that it can be garbage collected.
Only call this method if you are sure your application has finished using the tesselator for some time. It is safe to reuse the same tessellator object any number of times, so you should avoid disposing and recreating the tesselator over and over again. If you call the
start()method after calling this method, a new tesselator will be generated and cached. -
start() <static>
-
Initialises a shared polygon tesselator and returns it.
The tesselator is only created once and is then cached. You should therefore try to both start and finish using the returned tesselator within the same function or method call. This will reduce the possibility of it being used concurrently somewhere else in your application.
If your application has finished using the tesselator for some time, you can call the dispose method to release its resources. However, a new one will be generated if you subsequently call the
start()method again.Returns:
A shared polygon tesselation object.
- Type
- libtess.GluTesselator