module Gloop::RenderCommands

Overview

Methods for basic rendering.

See: DrawCommands

Included Modules

Direct including types

Defined in:

gloop/render_commands.cr

Instance Method Summary

Instance Method Detail

def clear(mask : ClearMask = :all) : Nil #

Clears selected buffers of the output framebuffer.

  • OpenGL function: glClear
  • OpenGL version: 2.0

[View source]
def clear_color : Color #

Retrieves the color used to clear the color buffer.

  • OpenGL function: glGetFloatv
  • OpenGL enum: GL_COLOR_CLEAR_VALUE
  • OpenGL version: 2.0

[View source]
def clear_color=(color : FloatColorTuple) #

Sets the color to clear the color buffer with.

See: #clear

  • OpenGL function: glClearColor
  • OpenGL version: 2.0

[View source]
def clear_color=(color : Color) #

Sets the color to clear the color buffer with.

See: #clear

  • OpenGL function: glCearColor
  • OpenGL version: 2.0

[View source]
def clear_depth : Float64 #

Retrieves the value used to clear the depth buffer.

  • OpenGL function: glGetDoublev
  • OpenGL enum: GL_DEPTH_CLEAR_VALUE
  • OpenGL version: 2.0

[View source]
def clear_depth=(depth : Float64) #

Sets the value to clear the depth buffer with.

See: #clear

  • OpenGL function: glClearDepth
  • OpenGL version: 2.0

[View source]
def clear_depth=(depth : Float32) #

Sets the value to clear the depth buffer with.

See: #clear

  • OpenGL function: glClearDepthf
  • OpenGL version: 2.0

[View source]
def clear_stencil : Int32 #

Retrieves the value used to clear the stencil buffer.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_STENCIL_CLEAR_VALUE
  • OpenGL version: 2.0

[View source]
def clear_stencil=(stencil : Int32) #

Sets the value to clear the stencil buffer with.

See #clear

  • OpenGL function: glClearStencil
  • OpenGL version: 2.0

[View source]
def finish : Nil #

Waits for all previously called GL commands to complete.

  • OpenGL function: glFinish
  • OpenGL version: 2.0

[View source]
def flush : Nil #

Forces all GL commands to complete before new ones can be issued.

  • OpenGL function: glFlush
  • OpenGL version: 2.0

[View source]
def viewport : Rect #

Retrieves the bounding area drawn to the window.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_VIEWPORT
  • OpenGL version: 2.0

[View source]
def viewport=(rect : Tuple(Int32, Int32, Int32, Int32)) #

Sets the bounding area drawn to the window.

  • OpenGL function: glViewport
  • OpenGL version: 2.0

[View source]
def viewport=(rect : Rect) #

Sets the bounding area drawn to the window.

  • OpenGL function: glViewport
  • OpenGL version: 2.0

[View source]