struct Gloop::Debug::MessageIterator

Overview

Iterates through messages in the debug log.

Once a message is retrieved, it is removed from the log.

Included Modules

Defined in:

gloop/debug/message_iterator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Gloop::Context) #

Creates a resource associated with a context.


[View source]

Instance Method Detail

def clear : Nil #

Removes all pending debug messages from the log.


[View source]
def empty? #

Checks if there are no debug messages in the log.


[View source]
def first(n : Int) #

Retrieves the first n messages from the debug log as an array.

  • OpenGL functions: glGetDebugMessageLog
  • OpenGL version: 4.3

[View source]
def max : Int32 #

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

[View source]
def max_message_size : Int32 #

Retrieves the maximum number of bytes a log message can have.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: MAX_DEBUG_MESSAGE_LENGTH
  • OpenGL version: 4.3

[View source]
def next #

Retrieves the next message in the log or returns a stop instance.

  • OpenGL functions: glGetDebugMessageLog
  • OpenGL version: 4.3

[View source]
def size #

Number of messages pending retrieval in the debug message log.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_DEBUG_LOGGED_MESSAGES
  • OpenGL version: 4.3

[View source]
def skip(n : Int) #

Skips the next n messages in the log.

  • OpenGL functions: glGetDebugMessageLog
  • OpenGL version: 4.3

[View source]
def skip : Bool #

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

[View source]
def to_a #

Retrieves all messages from the debug log as an array.


[View source]