Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EGLSurface

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

EGLSurface wrapper class.

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
private void
public void
destroy()

Destroys this EGL surface.

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.
public int

Returns:

the attribute value
getAttribute
(int
the surface attribute
attribute
)

Returns the value of the specified EGL surface attribute.

public EGLConfig

Returns:

the EGL config
getConfig
()

Returns the EGL config associated with this EGL surface.

public EGLDisplay

Returns:

the EGL display
getDisplay
()

Returns the EGL display from which this EGL surface was created.

pack-priv void
setAttribute(int attribute, int value)

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 final EGLDisplay display

Constructor Detail

EGLSurfaceback to summary
pack-priv EGLSurface(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

Destroys this EGL surface.

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
public int getAttribute(int attribute) throws LWJGLException

Returns the value of the specified EGL surface attribute.

Parameters
attribute:int

the surface attribute

Returns:int

the attribute value

getConfigback to summary
public EGLConfig getConfig()

Returns the EGL config associated with this EGL surface.

Returns:EGLConfig

the EGL config

getDisplayback to summary
public EGLDisplay getDisplay()

Returns the EGL display from which this EGL surface was created.

Returns:EGLDisplay

the EGL display

setAttributeback to summary
pack-priv void setAttribute(int attribute, int value) throws LWJGLException
swapBuffersback to summary
public void swapBuffers() throws LWJGLException, PowerManagementEventException