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

GLFW Implementation Of Window. This Implementation supports shared contexts.

Inheritance
java.lang.Object
Expendable
GLFWWindowManager
Syntax
public class GLFWWindowManager implements Expendable

Constructors

GLFWWindowManager(CoreEngine core)

Declaration
public GLFWWindowManager(CoreEngine core)
Parameters
Type Name Description
CoreEngine core

Methods

dispose()

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

disposeAllWindows()

Destroys all active contexts. This is executed before the engine terminates. Throws Exception.

Declaration
public void disposeAllWindows()

disposeAllWindows(GLFWWindowContext context)

Destroys all windows in a active context. Throws Exception.

Declaration
public void disposeAllWindows(GLFWWindowContext context)
Parameters
Type Name Description
GLFWWindowManager.GLFWWindowContext context

findContext(long context)

Declaration
public GLFWWindowContext findContext(long context)
Parameters
Type Name Description
long context
Returns
Type Description
GLFWWindowManager.GLFWWindowContext

findContext(String name)

Returns a GLContext, if no GLContext is found null is returned.

Declaration
public GLFWWindowContext findContext(String name)
Parameters
Type Name Description
String name
Returns
Type Description
GLFWWindowManager.GLFWWindowContext

getContext(String name)

Finds the specific context in the shared contexts bucket list.

Declaration
public Map.Entry<GLFWWindowContext, CopyOnWriteArrayList<GLFWWindow>> getContext(String name)
Parameters
Type Name Description
String name

Name of the context to search for.

Returns
Type Description
Map.Entry<GLFWWindowManager.GLFWWindowContext, CopyOnWriteArrayList<GLFWWindow>>

Returns null if no context was found with the specified name, else returns the entry in the sharedContexts Bucket list.

getCoreEngine()

Declaration
public CoreEngine getCoreEngine()
Returns
Type Description
CoreEngine

getGLFWWindow(String name)

Gets the window specified.

Declaration
public GLFWWindow getGLFWWindow(String name)
Parameters
Type Name Description
String name
Returns
Type Description
GLFWWindow

init(CoreEngine coreEngine)

Declaration
public void init(CoreEngine coreEngine)
Parameters
Type Name Description
CoreEngine coreEngine

input(float delta)

Declaration
public void input(float delta)
Parameters
Type Name Description
float delta

isStopRequested()

Declaration
public static boolean isStopRequested()
Returns
Type Description
boolean

openWindow(GLFWWindow wnd)

Opens the window using the create() method in GLFWWindow and adds it to the bucket list. Without Shared GLContext. And creates a entry in the shared context bucket list using the name of the window as context name and handle as context handle, and if in the future you wish to add a window to this context use the window's name as the sharedContextName.

Declaration
public void openWindow(GLFWWindow wnd)
Parameters
Type Name Description
GLFWWindow wnd

openWindow(GLFWWindow wnd, long sharedContext)

Declaration
public void openWindow(GLFWWindow wnd, long sharedContext)
Parameters
Type Name Description
GLFWWindow wnd
long sharedContext

openWindow(GLFWWindow wnd, String sharedContextName)

Opens the window using the create() method in GLFWWindow and adds it to the bucket list. With Shared GLContext. Using the name, if the context with that name exists already then it adds the window to that shared context, if not then creates a new context with that name and sets the context handle to the window handle.

Declaration
public void openWindow(GLFWWindow wnd, String sharedContextName)
Parameters
Type Name Description
GLFWWindow wnd
String sharedContextName
Exceptions
Type Condition
Exception

printWindows()

Declaration
public void printWindows()

raiseStopFlag()

Declaration
public static void raiseStopFlag()

render()

Renders all windows stored in the bucket list, and the windows which inherit their context.

Declaration
public void render()

update(float delta)

Declaration
public void update(float delta)
Parameters
Type Name Description
float delta
Back to top Generated by DocFX