Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EGLContext

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.LWJGLException, .PointerWrapperAbstract, java.nio.IntBuffer

EGLContext wrapper class.

Field Summary

Modifier and TypeField and Description
private final EGLConfig
private boolean
private EGLDisplay
Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
pack-priv
EGLContext(final EGLDisplay display, final EGLConfig config, final long pointer)

Method Summary

Modifier and TypeMethod and Description
private void
public void
public boolean
equals(final Object
the reference object with which to compare.
obj
)

Overrides org.lwjgl.PointerWrapperAbstract.equals.

Indicates whether some other object is "equal to" this one.
pack-priv int

Returns:

the attribute value
getAttribute
(final int
the context attribute
attribute
)

Returns the value of the specified EGL context attribute.

pack-priv EGLConfig
pack-priv EGLDisplay
public void
makeCurrent(final EGLSurface surface)

public void
makeCurrent(final EGLSurface draw, final EGLSurface read)

public void
Inherited from org.lwjgl.PointerWrapperAbstract:
checkValidgetPointerhashCodeisValidtoString

Field Detail

configback to summary
private final EGLConfig config
destroyedback to summary
private boolean destroyed
displayback to summary
private EGLDisplay display

Constructor Detail

EGLContextback to summary
pack-priv EGLContext(final EGLDisplay display, final EGLConfig config, final long pointer)

Method Detail

checkDestroyedback to summary
private void checkDestroyed()
destroyback to summary
public void destroy() throws LWJGLException
equalsback to summary
public boolean equals(final Object obj)

Overrides org.lwjgl.PointerWrapperAbstract.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
obj:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

getAttributeback to summary
pack-priv int getAttribute(final int attribute) throws LWJGLException

Returns the value of the specified EGL context attribute.

Parameters
attribute:int

the context attribute

Returns:int

the attribute value

getConfigback to summary
pack-priv EGLConfig getConfig()
getDisplayback to summary
pack-priv EGLDisplay getDisplay()
makeCurrentback to summary
public void makeCurrent(final EGLSurface surface) throws LWJGLException, PowerManagementEventException
makeCurrentback to summary
public void makeCurrent(final EGLSurface draw, final EGLSurface read) throws LWJGLException, PowerManagementEventException
setDisplayback to summary
public void setDisplay(EGLDisplay display)