Enum Class VeilDebug
- All Implemented Interfaces:
Serializable,Comparable<VeilDebug>,Constable
Provides access to debug functionality for all platforms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddebugMessageInsert(int type, int id, int severity, CharSequence message) This function can be called by applications and third-party libraries to generate their own messages, such as ones containing timestamp information or signals about specific render system events.static VeilDebugget()abstract voidobjectLabel(int identifier, int name, @Nullable CharSequence label) Labels a named object identified within a namespace.abstract voidPops the active debug group.abstract voidpushDebugGroup(CharSequence message) Pushes a debug group described by the stringmessageinto the command stream.static VeilDebugReturns the enum constant of this class with the specified name.static VeilDebug[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
-
ENABLED
-
-
Field Details
-
MESSAGE_ID
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
debugMessageInsert
This function can be called by applications and third-party libraries to generate their own messages, such as ones containing timestamp information or signals about specific render system events.- Parameters:
type- the type of the debug message insertid- the user-supplied identifier of the message to insertseverity- the severity of the debug messages to insertmessage- a character array containing the message to insert
-
objectLabel
Labels a named object identified within a namespace.- Parameters:
identifier- the namespace from which the name of the object is allocatedname- the name of the object to labellabel- a string containing the label to assign to the object
-
pushDebugGroup
Pushes a debug group described by the stringmessageinto the command stream. The value ofidspecifies the ID of messages generated. The parameterlengthcontains the number of characters inmessage. Iflengthis negative, it is implied thatmessagecontains a null terminated string. The message has the specifiedsourceandid,typeDEBUG_TYPE_PUSH_GROUP, andseverityDEBUG_SEVERITY_NOTIFICATION. The GL will put a new debug group on top of the debug group stack which inherits the control of the volume of debug output of the debug group previously residing on the top of the debug group stack. Because debug groups are strictly hierarchical, any additional control of the debug output volume will only apply within the active debug group and the debug groups pushed on top of the active debug group.- Parameters:
message- a string containing the message to be sent to the debug output stream
-
popDebugGroup
public abstract void popDebugGroup()Pops the active debug group. When a debug group is popped, the GL will also generate a debug output message describing its cause based on themessagestring, the sourcesource, and an IDidsubmitted to the associatedPushDebugGroupcommand.DEBUG_TYPE_PUSH_GROUPandDEBUG_TYPE_POP_GROUPshare a single namespace for messageid.severityhas the valueDEBUG_SEVERITY_NOTIFICATION. Thetypehas the valueDEBUG_TYPE_POP_GROUP. Popping a debug group restores the debug output volume control of the parent debug group.Attempting to pop the default debug group off the stack generates a
STACK_UNDERFLOWerror; pushing a debug group onto a stack containingMAX_DEBUG_GROUP_STACK_DEPTHminus one elements will generate aSTACK_OVERFLOWerror.- See Also:
-
get
- Returns:
- The best implementation of GL debug for this platform
-