• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class AssetStore

Inheritance
java.lang.Object
AssetStore
Syntax
public class AssetStore

Constructors

AssetStore()

Declaration
public AssetStore()

Fields

assets

The type of asset mapped to the list of suffix' mapped to their associate reference counted containers.

Declaration
public Map<Class, HashMap<String, AssetContainer>> assets
Field Value
Type Description
Map<Class, HashMap<String, AssetContainer>>

assetTypes

Declaration
public HashMap<String, Class> assetTypes
Field Value
Type Description
HashMap<String, Class>

Methods

addAsset(Class type, String name, T asset)

This adds the asset to the static list. It also protects from duplicates since there can be only one type. And when loading ModelScenes There can be many assets there.

Declaration
public synchronized<T> void addAsset(Class type, String name, T asset)
Parameters
Type Name Description
Class type
String name
T asset
Returns
Type Description
synchronized<T> void

contains(Class type, String assetName)

Declaration
public boolean contains(Class type, String assetName)
Parameters
Type Name Description
Class type
String assetName
Returns
Type Description
boolean

contains(String assetName)

Declaration
public synchronized boolean contains(String assetName)
Parameters
Type Name Description
String assetName
Returns
Type Description
synchronized boolean

get(Class type)

Declaration
public synchronized HashMap<String, AssetContainer> get(Class type)
Parameters
Type Name Description
Class type
Returns
Type Description
synchronized HashMap<String, AssetContainer>

get(Class<T> type, String assetName)

Gets the asset from the store using the name, either the file's name or the asset name defined in the file. i.e. Model uses the ModelSceneLoader wich loads all assets from the file which there can be multiple of. So the loader assigns the names as keys to find them.

Declaration
public synchronized<T> T get(Class<T> type, String assetName)
Parameters
Type Name Description
Class<T> type
String assetName
Returns
Type Description
synchronized<T> T

get(String fileName)

Declaration
public synchronized<T> T get(String fileName)
Parameters
Type Name Description
String fileName
Returns
Type Description
synchronized<T> T

getAll(Class<T> type)

Declaration
public synchronized<T> ArrayList<T> getAll(Class<T> type)
Parameters
Type Name Description
Class<T> type
Returns
Type Description
synchronized<T> ArrayList<T>

getAssetTypes()

Declaration
public HashMap<String, Class> getAssetTypes()
Returns
Type Description
HashMap<String, Class>

getContainer(Class<T> type, String assetName)

Declaration
public <T> AssetContainer getContainer(Class<T> type, String assetName)
Parameters
Type Name Description
Class<T> type
String assetName
Returns
Type Description
<T> AssetContainer

getType(String fileName)

Declaration
public synchronized<T> Class<T> getType(String fileName)
Parameters
Type Name Description
String fileName
Returns
Type Description
synchronized<T> Class<T>

removeAsset(Class type, String assetName)

Declaration
public synchronized<T> void removeAsset(Class type, String assetName)
Parameters
Type Name Description
Class type
String assetName
Returns
Type Description
synchronized<T> void

removeAsset(String assetName)

Declaration
public synchronized<T> void removeAsset(String assetName)
Parameters
Type Name Description
String assetName
Returns
Type Description
synchronized<T> void
Back to top Generated by DocFX