Package gaiasky.scene.record
Class VirtualTextureComponent
java.lang.Object
gaiasky.scene.record.NamedComponent
gaiasky.scene.record.VirtualTextureComponent
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe indirection buffer texture.The location of the tiles in the file system.intA power of two with a maximum of 1024.Fields inherited from class gaiasky.scene.record.NamedComponent
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddispose()voiddoneLoading(com.badlogic.gdx.assets.AssetManager manager) voidinitialize(String name, IMaterialProvider materialProvider, int indirectionAttributeId) voidsetLocation(String location) voidsetSVTAttributes(com.badlogic.gdx.graphics.Texture cacheBufferTexture) Sets the SVT cache and indirection buffers to the material for this VT.voidsetTileSize(Integer size) voidsetTileSize(Long size) booleanMethods inherited from class gaiasky.scene.record.NamedComponent
createModelParameters, gaussian, gaussian, gaussian, initialize
-
Field Details
-
indirectionBuffer
The indirection buffer texture.TextureExtenables drawing to any mipmap level. -
id
public int id -
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
-
tileSize
public int tileSizeA power of two with a maximum of 1024. -
tree
-
-
Constructor Details
-
VirtualTextureComponent
public VirtualTextureComponent()
-
-
Method Details
-
initialize
-
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
-
setTileSize
-
setTileSize
-
dispose
public void dispose()
-