Class VirtualTextureComponent

java.lang.Object
gaiasky.scene.record.NamedComponent
gaiasky.scene.record.VirtualTextureComponent
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IComponent

public class VirtualTextureComponent extends NamedComponent
  • Field Details

    • indirectionBuffer

      public TextureExt indirectionBuffer
      The indirection buffer texture. TextureExt enables drawing to any mipmap level.
    • id

      public int id
    • location

      public String location
      The location of the tiles in the file system. This directory should contain a list of directories, one for each level, following the naming convention "level[LEVEL_NUMBER]", starting at "level0". The files should be named "tx_[COL]_[ROW].ext".
    • locationUnpacked

      public String locationUnpacked
    • tileSize

      public int tileSize
      A power of two with a maximum of 1024.
    • tree

      public SVTQuadtree<Path> tree
  • Constructor Details

    • VirtualTextureComponent

      public VirtualTextureComponent()
  • Method Details

    • initialize

      public void initialize(String name, IMaterialProvider materialProvider, int indirectionAttributeId)
    • doneLoading

      public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
    • buildIndirectionBuffer

      public void buildIndirectionBuffer()
    • buildTree

      public void buildTree()
    • setSVTAttributes

      public void setSVTAttributes(com.badlogic.gdx.graphics.Texture cacheBufferTexture)
      Sets the SVT cache and indirection buffers to the material for this VT.
      Parameters:
      cacheBufferTexture - The cache buffer, which is global.
    • svtAttributesSet

      public boolean svtAttributesSet()
    • setLocation

      public void setLocation(String location)
    • setTileSize

      public void setTileSize(Integer size)
    • setTileSize

      public void setTileSize(Long size)
    • dispose

      public void dispose()