struct Gloop::Debug::MessageIterator
- Gloop::Debug::MessageIterator
- Struct
- Value
- Object
Overview
Iterates through messages in the debug log.
Once a message is retrieved, it is removed from the log.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
- Iterator(Gloop::Debug::Message)
Defined in:
gloop/debug/message_iterator.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#clear : Nil
Removes all pending debug messages from the log.
-
#empty?
Checks if there are no debug messages in the log.
-
#first(n : Int)
Retrieves the first n messages from the debug log as an array.
-
#max : Int32
Retrieves the maximum number of debug messages the log can hold.
-
#max_message_size : Int32
Retrieves the maximum number of bytes a log message can have.
-
#next
Retrieves the next message in the log or returns a stop instance.
-
#size
Number of messages pending retrieval in the debug message log.
-
#skip(n : Int)
Skips the next n messages in the log.
-
#skip : Bool
Skips the next message in the log.
-
#to_a
Retrieves all messages from the debug log as an array.
Constructor Detail
Instance Method Detail
Retrieves the first n messages from the debug log as an array.
- OpenGL functions:
glGetDebugMessageLog
- OpenGL version: 4.3
Retrieves the maximum number of debug messages the log can hold.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_MAX_DEBUG_LOGGED_MESSAGES
- OpenGL version: 4.3
Retrieves the maximum number of bytes a log message can have.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
MAX_DEBUG_MESSAGE_LENGTH
- OpenGL version: 4.3
Retrieves the next message in the log or returns a stop instance.
- OpenGL functions:
glGetDebugMessageLog
- OpenGL version: 4.3
Number of messages pending retrieval in the debug message log.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_DEBUG_LOGGED_MESSAGES
- OpenGL version: 4.3
Skips the next n messages in the log.
- OpenGL functions:
glGetDebugMessageLog
- OpenGL version: 4.3
Skips the next message in the log.
Returns true if a message was skipped, false if the log is empty.
- OpenGL functions:
glGetDebugMessageLog
- OpenGL version: 4.3