Class WindingOrderDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.essentials.WindingOrderDemo

public class WindingOrderDemo extends Object
Demo to test winding order and backface culling documentation.

Creates one triangle with CCW winding (front face) following the docs:

  • upper-center → lower-left → lower-right
  • Backface culling enabled

Expected: green triangle visible (CCW = front face).

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new WindingOrderDemo instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    buildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera)
    Builds the demo scene: one CCW-wound green triangle with backface culling enabled, camera pulled back to see it.
    static void
    main(String[] args)
    Entry point for the winding order demo.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WindingOrderDemo

      public WindingOrderDemo()
      Creates a new WindingOrderDemo instance.
  • Method Details

    • buildScene

      public static void buildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera)
      Builds the demo scene: one CCW-wound green triangle with backface culling enabled, camera pulled back to see it. Called by both main(String[]) and the golden-image harness — must stay deterministic (no time, no unseeded randomness).
      Parameters:
      shapes - scene to add shapes to
      lighting - lighting to configure (unused here)
      camera - camera to position
    • main

      public static void main(String[] args)
      Entry point for the winding order demo.
      Parameters:
      args - command line arguments (ignored)