Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EGLDisplay

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.LWJGLException, .PointerWrapperAbstract, java.nio.IntBuffer, java.util.HashSet, .Set, .StringTokenizer

EGLDisplay wrapper class.

Field Summary

Modifier and TypeField and Description
private Set<String>
private boolean
private int
private int
Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
pack-priv
EGLDisplay(final long pointer)

Method Summary

Modifier and TypeMethod and Description
private void
public EGLConfig[]
chooseConfig(IntBuffer attrib_list, EGLConfig[] configs, IntBuffer num_config)

Returns the available EGL configs on this display that satisfy the specified list of attributes.

public EGLContext
createContext(EGLConfig config, EGLContext shareContext, IntBuffer attrib_list)

pack-priv EGLSurface
public EGLSurface

Returns:

the EGL surface
createWindowSurface
(EGLConfig
the EGL config
config
,
long
the native window handle
window
,
IntBuffer
an attribute list (may be null)
attrib_list
)

Creates an on-screen rendering surface on this EGL display.

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
getConfigNum(IntBuffer attrib_list)

pack-priv EGLConfig[]
getConfigs(EGLConfig[] configs, IntBuffer num_config)

pack-priv int
public int

Returns:

the major EGL version
getMajorVersion
()

Returns the major EGL version of this EGL display.

public int

Returns:

the minor EGL version
getMinorVersion
()

Returns the minor EGL version of this EGL display.

private void
public boolean

Returns:

true if the extension is supported
isExtensionSupported
(final String
the EGL extension
eglExtension
)

Returns true if the specified EGL extension is supported by this EGL display.

pack-priv boolean
public String

Returns:

the description
query
(int
the value to query
name
)

Returns a string describing some aspect of the EGL implementation running on the specified display.

public void
setSwapInterval(final int interval)

public void
terminate()

Release the resources associated with this EGL display.

Inherited from org.lwjgl.PointerWrapperAbstract:
checkValidgetPointerhashCodeisValidtoString

Field Detail

extensionsback to summary
private Set<String> extensions
initializedback to summary
private boolean initialized
majorVersionback to summary
private int majorVersion
minorVersionback to summary
private int minorVersion

Constructor Detail

EGLDisplayback to summary
pack-priv EGLDisplay(final long pointer) throws LWJGLException

Method Detail

checkInitializedback to summary
private void checkInitialized()
chooseConfigback to summary
public EGLConfig[] chooseConfig(IntBuffer attrib_list, EGLConfig[] configs, IntBuffer num_config) throws LWJGLException

Returns the available EGL configs on this display that satisfy the specified list of attributes.

createContextback to summary
public EGLContext createContext(EGLConfig config, EGLContext shareContext, IntBuffer attrib_list) throws LWJGLException
createPbufferSurfaceback to summary
pack-priv EGLSurface createPbufferSurface(EGLConfig config, IntBuffer attrib_list) throws LWJGLException
createWindowSurfaceback to summary
public EGLSurface createWindowSurface(EGLConfig config, long window, IntBuffer attrib_list) throws LWJGLException

Creates an on-screen rendering surface on this EGL display.

Parameters
config:EGLConfig

the EGL config

window:long

the native window handle

attrib_list:IntBuffer

an attribute list (may be null)

Returns:EGLSurface

the 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.

getConfigNumback to summary
pack-priv int getConfigNum(IntBuffer attrib_list) throws LWJGLException
getConfigsback to summary
pack-priv EGLConfig[] getConfigs(EGLConfig[] configs, IntBuffer num_config) throws LWJGLException
getConfigsNumback to summary
pack-priv int getConfigsNum() throws LWJGLException
getMajorVersionback to summary
public int getMajorVersion()

Returns the major EGL version of this EGL display.

Returns:int

the major EGL version

getMinorVersionback to summary
public int getMinorVersion()

Returns the minor EGL version of this EGL display.

Returns:int

the minor EGL version

initializeback to summary
private void initialize() throws LWJGLException
isExtensionSupportedback to summary
public boolean isExtensionSupported(final String eglExtension)

Returns true if the specified EGL extension is supported by this EGL display.

Parameters
eglExtension:String

the EGL extension

Returns:boolean

true if the extension is supported

isInitializedback to summary
pack-priv boolean isInitialized()
queryback to summary
public String query(int name)

Returns a string describing some aspect of the EGL implementation running on the specified display.

Parameters
name:int

the value to query

Returns:String

the description

setSwapIntervalback to summary
public void setSwapInterval(final int interval) throws LWJGLException
terminateback to summary
public void terminate() throws LWJGLException

Release the resources associated with this EGL display.