Class GLFWNativeOSMesa

java.lang.Object
org.lwjgl.glfw.GLFWNativeOSMesa

public class GLFWNativeOSMesa extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains the function pointers loaded from GLFW.getLibrary().
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    glfwGetOSMesaColorBuffer(long window, int @Nullable [] width, int @Nullable [] height, int @Nullable [] format, @Nullable PointerBuffer buffer)
    int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    static boolean
    glfwGetOSMesaColorBuffer(long window, @Nullable IntBuffer width, @Nullable IntBuffer height, @Nullable IntBuffer format, @Nullable PointerBuffer buffer)
    int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    static long
    glfwGetOSMesaContext(long window)
    OSMesaContext glfwGetOSMesaContext(GLFWwindow * window)
    static int
    glfwGetOSMesaDepthBuffer(long window, int @Nullable [] width, int @Nullable [] height, int @Nullable [] bytesPerValue, @Nullable PointerBuffer buffer)
    int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    static int
    glfwGetOSMesaDepthBuffer(long window, @Nullable IntBuffer width, @Nullable IntBuffer height, @Nullable IntBuffer bytesPerValue, @Nullable PointerBuffer buffer)
    int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    static int
    nglfwGetOSMesaColorBuffer(long window, long width, long height, long format, long buffer)
    int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    static int
    nglfwGetOSMesaDepthBuffer(long window, long width, long height, long bytesPerValue, long buffer)
    int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    static void
    setPath(@Nullable String path)
    Overrides the OSMesa shared library that GLFW loads internally.
    static void
    setPath(FunctionProvider sharedLibrary)
    Calls setPath(String) with the path of the specified SharedLibrary.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • nglfwGetOSMesaColorBuffer

      public static int nglfwGetOSMesaColorBuffer(long window, long width, long height, long format, long buffer)
      int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    • glfwGetOSMesaColorBuffer

      public static boolean glfwGetOSMesaColorBuffer(long window, @Nullable IntBuffer width, @Nullable IntBuffer height, @Nullable IntBuffer format, @Nullable PointerBuffer buffer)
      int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    • nglfwGetOSMesaDepthBuffer

      public static int nglfwGetOSMesaDepthBuffer(long window, long width, long height, long bytesPerValue, long buffer)
      int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    • glfwGetOSMesaDepthBuffer

      public static int glfwGetOSMesaDepthBuffer(long window, @Nullable IntBuffer width, @Nullable IntBuffer height, @Nullable IntBuffer bytesPerValue, @Nullable PointerBuffer buffer)
      int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    • glfwGetOSMesaContext

      public static long glfwGetOSMesaContext(long window)
      OSMesaContext glfwGetOSMesaContext(GLFWwindow * window)
    • glfwGetOSMesaColorBuffer

      public static boolean glfwGetOSMesaColorBuffer(long window, int @Nullable [] width, int @Nullable [] height, int @Nullable [] format, @Nullable PointerBuffer buffer)
      int glfwGetOSMesaColorBuffer(GLFWwindow * window, int * width, int * height, int * format, void ** buffer)
    • glfwGetOSMesaDepthBuffer

      public static int glfwGetOSMesaDepthBuffer(long window, int @Nullable [] width, int @Nullable [] height, int @Nullable [] bytesPerValue, @Nullable PointerBuffer buffer)
      int glfwGetOSMesaDepthBuffer(GLFWwindow * window, int * width, int * height, int * bytesPerValue, void ** buffer)
    • setPath

      public static void setPath(FunctionProvider sharedLibrary)
      Calls setPath(String) with the path of the specified SharedLibrary.

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

      Parameters:
      sharedLibrary - a FunctionProvider instance that will be cast to SharedLibrary
    • setPath

      public static void setPath(@Nullable 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 - the OSMesa shared library path, or null to remove the override.