Top Description Fields Constructors Methods
org.lwjgl.egl

public Class EXTSurfaceCompression

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native bindings to the EXT_surface_compression extension.

Applications may wish to take advantage of framebuffer compression. Some platforms may support framebuffer compression at fixed bitrates. Such compression algorithms generally produce results that are visually lossless, but the results are typically not bit exact when compared to a non-compressed result.

This extension enables applications to opt-in to fixed-rate compression for EGL window surfaces.

Compression may not be supported for all framebuffer formats. It can still be requested for all formats and applications can query what level of compression was actually enabled.

Field Summary

Modifier and TypeField and Description
public static final int
EGL_SURFACE_COMPRESSION_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
EGL_SURFACE_COMPRESSION_PLANE1_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

public static final int
EGL_SURFACE_COMPRESSION_PLANE2_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

TRUE on success.
eglQuerySupportedCompressionRatesEXT
(long dpy, long config, PointerBuffer
a list of attributes that will be provided when a surface is created with this combination of display and EGLConfig. The accepted attributes are the same as for CreatePlatformWindowSurface.
attrib_list
,
IntBuffer
a pointer to a buffer containing rate_size elements.
rates
,
IntBuffer num_rates)

Gets the list of all fixed-rate compression rates that are available on a specified display and EGLConfig.

public static boolean
eglQuerySupportedCompressionRatesEXT(long dpy, long config, PointerBuffer attrib_list, int[] rates, int[] num_rates)

Array version of: QuerySupportedCompressionRatesEXT

public static int
neglQuerySupportedCompressionRatesEXT(long dpy, long config, long attrib_list, long rates, int rate_size, long num_rates)

Unsafe version of: QuerySupportedCompressionRatesEXT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_SURFACE_COMPRESSION_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT

Accepted as attribute values for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_PLANE1_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_PLANE1_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

EGL_SURFACE_COMPRESSION_PLANE2_EXTback to summary
public static final int EGL_SURFACE_COMPRESSION_PLANE2_EXT

New attributes accepted by the attrib_list argument of CreatePlatformWindowSurface and CreateWindowSurface.

Constructor Detail

EXTSurfaceCompressionback to summary
protected EXTSurfaceCompression()

Method Detail

eglQuerySupportedCompressionRatesEXTback to summary
public static boolean eglQuerySupportedCompressionRatesEXT(long dpy, long config, PointerBuffer attrib_list, IntBuffer rates, IntBuffer num_rates)

Gets the list of all fixed-rate compression rates that are available on a specified display and EGLConfig.

The number of rates is returned in num_rates, and elements 0 through num_rates-1 of rates are filled in with the available compression rates.

No more than rate_size compression rates will be returned even if more are available on the specified display and config. However, if eglQuerySupportedCompressionRatesEXT is called with rates = NULL, then no rates are returned, but the total number of rates available will be returned in num_rates.

The possible values returned in rates are the attribute values accepted for SURFACE_COMPRESSION_EXT by CreatePlatformWindowSurface and CreateWindowSurface, except SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT and SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT.

Parameters
attrib_list:PointerBuffer

a list of attributes that will be provided when a surface is created with this combination of display and EGLConfig. The accepted attributes are the same as for CreatePlatformWindowSurface.

rates:IntBuffer

a pointer to a buffer containing rate_size elements.

Returns:boolean

TRUE on success.

Annotations
@NativeType:EGLBoolean
eglQuerySupportedCompressionRatesEXTback to summary
public static boolean eglQuerySupportedCompressionRatesEXT(long dpy, long config, PointerBuffer attrib_list, int[] rates, int[] num_rates)

Array version of: QuerySupportedCompressionRatesEXT

Annotations
@NativeType:EGLBoolean
neglQuerySupportedCompressionRatesEXTback to summary
public static int neglQuerySupportedCompressionRatesEXT(long dpy, long config, long attrib_list, long rates, int rate_size, long num_rates)

Unsafe version of: QuerySupportedCompressionRatesEXT