Class GLFWHandle
java.lang.Object
com.blackrook.gloop.glfw.GLFWHandle
- Direct Known Subclasses:
GLFWCursor, GLFWMonitor, GLFWWindow
Generic GLFW handle type.
This wraps an allocated memory address.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GLFWHandle
protected GLFWHandle()Allocates a new GLFW handle.
-
-
Method Details
-
getHandle
public abstract long getHandle()- Returns:
- this handle's GLFW address handle.
-
isCreated
public abstract boolean isCreated()- Returns:
- true if this handle was allocated, false if not.
-
destroy
public abstract void destroy()Destroys this handle. Does nothing if already destroyed.- Throws:
GLFWException- if a problem occurs during free.
-
hashCode
-
equals
-
equals
Tests if this GLFW handle equals the provided one.- Parameters:
handle- the handle to test.- Returns:
- true if so, false if not.
-
finalize
-
toString
-