Top Description Constructors Methods
org.lwjgl.opengl

public final Class GLUtil

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

OpenGL utilities.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
getCategoryAMD(int category)

private static String
getDebugSeverity(int severity)

private static String
getDebugSource(int source)

private static String
getDebugType(int type)

private static String
getSeverityAMD(int severity)

private static String
getSeverityARB(int severity)

private static String
getSourceARB(int source)

private static String
getTypeARB(int type)

private static void
public static Callback
setupDebugMessageCallback()

Detects the best debug output functionality to use and creates a callback that prints information to APIUtil#DEBUG_STREAM.

public static Callback
setupDebugMessageCallback(PrintStream
the output PrintStream
stream
)

Detects the best debug output functionality to use and creates a callback that prints information to the specified PrintStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GLUtilback to summary
private GLUtil()

Method Detail

getCategoryAMDback to summary
private static String getCategoryAMD(int category)
getDebugSeverityback to summary
private static String getDebugSeverity(int severity)
getDebugSourceback to summary
private static String getDebugSource(int source)
getDebugTypeback to summary
private static String getDebugType(int type)
getSeverityAMDback to summary
private static String getSeverityAMD(int severity)
getSeverityARBback to summary
private static String getSeverityARB(int severity)
getSourceARBback to summary
private static String getSourceARB(int source)
getTypeARBback to summary
private static String getTypeARB(int type)
printDetailback to summary
private static void printDetail(StringBuilder sb, String type, String message)
setupDebugMessageCallbackback to summary
public static Callback setupDebugMessageCallback()

Detects the best debug output functionality to use and creates a callback that prints information to APIUtil#DEBUG_STREAM. The callback function is returned as a Callback, that should be freed when no longer needed.

Annotations
@Nullable
setupDebugMessageCallbackback to summary
public static Callback setupDebugMessageCallback(PrintStream stream)

Detects the best debug output functionality to use and creates a callback that prints information to the specified PrintStream. The callback function is returned as a Callback, that should be freed when no longer needed.

Parameters
stream:PrintStream

the output PrintStream

Annotations
@Nullable