Class GPUInstancer<D extends InstanceData>

java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstancer<D>
com.jozufozu.flywheel.backend.instancing.instancing.GPUInstancer<D>
All Implemented Interfaces:
Instancer<D>

public class GPUInstancer<D extends InstanceData> extends AbstractInstancer<D>
  • Field Details

    • anyToUpdate

      protected boolean anyToUpdate
  • Constructor Details

  • Method Details

    • notifyDirty

      public void notifyDirty()
      Description copied from interface: Instancer
      Notify the Instancer that some of its data needs updating.

      This might be ignored, depending on the implementation. For the GPUInstancer, this triggers a scan of all instances.

    • render

      public void render()
    • init

      public void init(ModelAllocator modelAllocator)
    • isInitialized

      public boolean isInitialized()
    • isEmpty

      public boolean isEmpty()
    • delete

      public void delete()
      Free acquired resources. All other Instancer methods are undefined behavior after calling delete.
    • renderSetup

      protected void renderSetup()