The Nuclex.Graphics library provides supporting components for advanced graphics code. This currently includes a general-purpose
system and a debugging aid for drawing
into a scene.
When you're drawing lots of small objects consisting of just a few polygons each, calling
hundreds of times is inefficient because today's GPUs are optimized for batch-processing large amounts of data. The classes in the 'Batching' help you collect smaller polygons into larger batches before
sending them to the GPU.
It's often difficult to verify that movement vectors, normals, bounding boxes and other properties involving math-intensive code are right. With the
, you can easily draw debugging overlays into the scene, including wireframe and solid-filled boxes, triangles and arrows.
Automatic Vertex Declaration
class in Nuclex.Graphics can free you from the work of having to maintain a separate
list for your vertex types and counting bytes to determine the offsets of vertex fields. This makes your vertex structures easier to maintain, more readable and eliminates the risk of your vertex element list
going out of sync.