• 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 AEShaderResource

Inheritance
java.lang.Object
Expendable
AssetI
AEShaderResource
Syntax
public class AEShaderResource implements AssetI

Constructors

AEShaderResource(String name, PathHandle pathToShaderDirectory)

Declaration
public AEShaderResource(String name, PathHandle pathToShaderDirectory)
Parameters
Type Name Description
String name
PathHandle pathToShaderDirectory

Methods

addShaderSource(ShaderSource source)

Declaration
public void addShaderSource(ShaderSource source)
Parameters
Type Name Description
ShaderSource source

createProgram()

Declaration
public void createProgram()

decAndGetRef()

Declaration
public int decAndGetRef()
Returns
Type Description
int
Overrides
AssetI.decAndGetRef()

decRef()

Decrements the asset's reference count by one.

Declaration
public void decRef()
Overrides
AssetI.decRef()

dispose()

Declaration
public void dispose()
Overrides
Expendable.dispose()

getName()

Declaration
public String getName()
Returns
Type Description
String

getPath()

Declaration
public PathHandle getPath()
Returns
Type Description
PathHandle

getProgram()

Declaration
public int getProgram()
Returns
Type Description
int

getRefCount()

Declaration
public int getRefCount()
Returns
Type Description
int

getRefs()

Returns the integer representation of the references.

Declaration
public int getRefs()
Returns
Type Description
int

The count of refrences.

Overrides
AssetI.getRefs()

getShaderSource(String name)

Declaration
public ShaderSource getShaderSource(String name)
Parameters
Type Name Description
String name
Returns
Type Description
ShaderSource

getSubPrograms()

Declaration
public HashMap<String, ShaderSource> getSubPrograms()
Returns
Type Description
HashMap<String, ShaderSource>

getUbos()

Declaration
public Map<Integer, GLSLUniformBlockObject> getUbos()
Returns
Type Description
Map<Integer, GLSLUniformBlockObject>

getUniforms()

Declaration
public Map<String, GLSLUniform> getUniforms()
Returns
Type Description
Map<String, GLSLUniform>

incAndGetRef()

Declaration
public int incAndGetRef()
Returns
Type Description
int
Overrides
AssetI.incAndGetRef()

incRef()

Increments the asset's reference count by one.

Declaration
public void incRef()
Overrides
AssetI.incRef()

setName(String name)

Declaration
public void setName(String name)
Parameters
Type Name Description
String name

setPath(PathHandle path)

Declaration
public void setPath(PathHandle path)
Parameters
Type Name Description
PathHandle path

setProgram(int program)

Declaration
public void setProgram(int program)
Parameters
Type Name Description
int program

setRefCount(int refCount)

Declaration
public void setRefCount(int refCount)
Parameters
Type Name Description
int refCount

setSubPrograms(HashMap<String, ShaderSource> subPrograms)

Declaration
public void setSubPrograms(HashMap<String, ShaderSource> subPrograms)
Parameters
Type Name Description
HashMap<String, ShaderSource> subPrograms

setUbos(Map<Integer, GLSLUniformBlockObject> ubos)

Declaration
public void setUbos(Map<Integer, GLSLUniformBlockObject> ubos)
Parameters
Type Name Description
Map<Integer, GLSLUniformBlockObject> ubos

setUniforms(Map<String, GLSLUniform> uniforms)

Declaration
public void setUniforms(Map<String, GLSLUniform> uniforms)
Parameters
Type Name Description
Map<String, GLSLUniform> uniforms
Back to top Generated by DocFX