Interface IDhApiCullingFrustum

All Superinterfaces:
IBindable, IDhApiOverrideable
All Known Subinterfaces:
IDhApiShadowCullingFrustum

public interface IDhApiCullingFrustum extends IDhApiOverrideable
Used to determine if a LOD should be rendered or is outside the user's field of view.
Since:
API 2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    intersects(int lodBlockPosMinX, int lodBlockPosMinZ, int lodBlockWidth, int lodDetailLevel)
    returns true if the LOD bounds intersect this frustum
    void
    update(int worldMinBlockY, int worldMaxBlockY, DhApiMat4f worldViewProjection)
    Called before a render pass is done.

    Methods inherited from interface com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindable

    finishDelayedSetup, getDelayedSetupComplete

    Methods inherited from interface com.seibel.distanthorizons.api.interfaces.override.IDhApiOverrideable

    getPriority
  • Method Details

    • update

      void update(int worldMinBlockY, int worldMaxBlockY, DhApiMat4f worldViewProjection)
      Called before a render pass is done.
      Parameters:
      worldMinBlockY - the lowest block position this level allows.
      worldMaxBlockY - the highest block position this level allows.
      worldViewProjection - the projection matrix used in this render pass.
    • intersects

      boolean intersects(int lodBlockPosMinX, int lodBlockPosMinZ, int lodBlockWidth, int lodDetailLevel)
      returns true if the LOD bounds intersect this frustum
      Parameters:
      lodBlockPosMinX - this LOD's starting block X position closest to negative infinity
      lodBlockPosMinZ - this LOD's starting block Z position closest to negative infinity
      lodBlockWidth - this LOD's width in blocks
      lodDetailLevel - this LOD's detail level
      See Also: