Top Description Inners Constructors Methods
org.lwjgl.glfw

public Class GLFWNativeOSMesa

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

Native bindings to the GLFW library's GLX native access functions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
GLFWNativeOSMesa.Functions

Contains the function pointers loaded from GLFW.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

TRUE if successful, or FALSE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetOSMesaColorBuffer
(long
the window whose color buffer to retrieve
window
,
IntBuffer
where to store the width of the color buffer, or NULL
width
,
IntBuffer
where to store the height of the color buffer, or NULL
height
,
IntBuffer
where to store the OSMesa pixel format of the color buffer, or NULL
format
,
PointerBuffer
where to store the address of the color buffer, or NULL
buffer
)

Retrieves the color buffer associated with the specified window.

public static boolean
glfwGetOSMesaColorBuffer(long window, int[] width, int[] height, int[] format, PointerBuffer buffer)

Array version of: GetOSMesaColorBuffer

public static long

Returns:

the OSMesaContext of the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetOSMesaContext
(long
the window whose context to retrieve
window
)

Returns the OSMesaContext of the specified window.

public static int

Returns:

TRUE if successful, or FALSE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

glfwGetOSMesaDepthBuffer
(long
the window whose depth buffer to retrieve
window
,
IntBuffer
where to store the width of the depth buffer, or NULL
width
,
IntBuffer
where to store the height of the depth buffer, or NULL
height
,
IntBuffer
where to store the number of bytes per depth buffer element, or NULL
bytesPerValue
,
PointerBuffer
where to store the address of the depth buffer, or NULL
buffer
)

Retrieves the depth buffer associated with the specified window.

public static int
glfwGetOSMesaDepthBuffer(long window, int[] width, int[] height, int[] bytesPerValue, PointerBuffer buffer)

Array version of: GetOSMesaDepthBuffer

public static int
nglfwGetOSMesaColorBuffer(long window, long width, long height, long format, long buffer)

Unsafe version of: GetOSMesaColorBuffer

public static int
nglfwGetOSMesaDepthBuffer(long window, long width, long height, long bytesPerValue, long buffer)

Unsafe version of: GetOSMesaDepthBuffer

public static void
setPath(FunctionProvider
a FunctionProvider instance that will be cast to SharedLibrary
sharedLibrary
)

Calls setPath(String) with the path of the specified SharedLibrary.

public static void
setPath(String
the OSMesa shared library path, or null to remove the override.
path
)

Overrides the OSMesa shared library that GLFW loads internally.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLFWNativeOSMesaback to summary
protected GLFWNativeOSMesa()

Method Detail

glfwGetOSMesaColorBufferback to summary
public static boolean glfwGetOSMesaColorBuffer(long window, IntBuffer width, IntBuffer height, IntBuffer format, PointerBuffer buffer)

Retrieves the color buffer associated with the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

the window whose color buffer to retrieve

width:IntBuffer

where to store the width of the color buffer, or NULL

height:IntBuffer

where to store the height of the color buffer, or NULL

format:IntBuffer

where to store the OSMesa pixel format of the color buffer, or NULL

buffer:PointerBuffer

where to store the address of the color buffer, or NULL

Returns:boolean

TRUE if successful, or FALSE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:int
Since
version 3.3
glfwGetOSMesaColorBufferback to summary
public static boolean glfwGetOSMesaColorBuffer(long window, int[] width, int[] height, int[] format, PointerBuffer buffer)

Array version of: GetOSMesaColorBuffer

Annotations
@NativeType:int
glfwGetOSMesaContextback to summary
public static long glfwGetOSMesaContext(long window)

Returns the OSMesaContext of the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

the window whose context to retrieve

Returns:long

the OSMesaContext of the specified window, or NULL if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Annotations
@NativeType:OSMesaContext
Since
version 3.3
glfwGetOSMesaDepthBufferback to summary
public static int glfwGetOSMesaDepthBuffer(long window, IntBuffer width, IntBuffer height, IntBuffer bytesPerValue, PointerBuffer buffer)

Retrieves the depth buffer associated with the specified window.

This function may be called from any thread. Access is not synchronized.

Parameters
window:long

the window whose depth buffer to retrieve

width:IntBuffer

where to store the width of the depth buffer, or NULL

height:IntBuffer

where to store the height of the depth buffer, or NULL

bytesPerValue:IntBuffer

where to store the number of bytes per depth buffer element, or NULL

buffer:PointerBuffer

where to store the address of the depth buffer, or NULL

Returns:int

TRUE if successful, or FALSE if an error occurred.

Possible errors include NO_WINDOW_CONTEXT and NOT_INITIALIZED.

Since
version 3.3
glfwGetOSMesaDepthBufferback to summary
public static int glfwGetOSMesaDepthBuffer(long window, int[] width, int[] height, int[] bytesPerValue, PointerBuffer buffer)

Array version of: GetOSMesaDepthBuffer

nglfwGetOSMesaColorBufferback to summary
public static int nglfwGetOSMesaColorBuffer(long window, long width, long height, long format, long buffer)

Unsafe version of: GetOSMesaColorBuffer

nglfwGetOSMesaDepthBufferback to summary
public static int nglfwGetOSMesaDepthBuffer(long window, long width, long height, long bytesPerValue, long buffer)

Unsafe version of: GetOSMesaDepthBuffer

setPathback to summary
public static void setPath(FunctionProvider sharedLibrary)

Calls setPath(String) with the path of the specified SharedLibrary.

Example usage: GLFWNativeOSMesa.setPath(GL.getFunctionProvider());

Parameters
sharedLibrary:FunctionProvider

a FunctionProvider instance that will be cast to SharedLibrary

setPathback to summary
public static void setPath(String path)

Overrides the OSMesa shared library that GLFW loads internally.

This is useful when there's a mismatch between the shared libraries loaded by LWJGL and GLFW.

This method must be called before GLFW initializes OpenGL. The override is available only in the default GLFW build bundled with LWJGL. Using the override with a custom GLFW build will produce a warning in DEBUG mode (but not an error).

Parameters
path:String

the OSMesa shared library path, or null to remove the override.

org.lwjgl.glfw back to summary

public final Class GLFWNativeOSMesa.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from GLFW.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
GetOSMesaColorBuffer

Function address.

public static final long
GetOSMesaContext

Function address.

public static final long
GetOSMesaDepthBuffer

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GetOSMesaColorBufferback to summary
public static final long GetOSMesaColorBuffer

Function address.

GetOSMesaContextback to summary
public static final long GetOSMesaContext

Function address.

GetOSMesaDepthBufferback to summary
public static final long GetOSMesaDepthBuffer

Function address.

Constructor Detail

Functionsback to summary
private Functions()