module Gloop::RenderCommands
Overview
Methods for basic rendering.
See: DrawCommands
Included Modules
- Gloop::Parameters
Direct including types
Defined in:
gloop/render_commands.crInstance Method Summary
-
#clear(mask : ClearMask = :all) : Nil
Clears selected buffers of the output framebuffer.
-
#clear_color : Color
Retrieves the color used to clear the color buffer.
-
#clear_color=(color : FloatColorTuple)
Sets the color to clear the color buffer with.
-
#clear_color=(color : Color)
Sets the color to clear the color buffer with.
-
#clear_depth : Float64
Retrieves the value used to clear the depth buffer.
-
#clear_depth=(depth : Float64)
Sets the value to clear the depth buffer with.
-
#clear_depth=(depth : Float32)
Sets the value to clear the depth buffer with.
-
#clear_stencil : Int32
Retrieves the value used to clear the stencil buffer.
-
#clear_stencil=(stencil : Int32)
Sets the value to clear the stencil buffer with.
-
#finish : Nil
Waits for all previously called GL commands to complete.
-
#flush : Nil
Forces all GL commands to complete before new ones can be issued.
-
#viewport : Rect
Retrieves the bounding area drawn to the window.
-
#viewport=(rect : Tuple(Int32, Int32, Int32, Int32))
Sets the bounding area drawn to the window.
-
#viewport=(rect : Rect)
Sets the bounding area drawn to the window.
Instance Method Detail
Clears selected buffers of the output framebuffer.
- OpenGL function:
glClear
- OpenGL version: 2.0
Retrieves the color used to clear the color buffer.
- OpenGL function:
glGetFloatv
- OpenGL enum:
GL_COLOR_CLEAR_VALUE
- OpenGL version: 2.0
Sets the color to clear the color buffer with.
See: #clear
- OpenGL function:
glClearColor
- OpenGL version: 2.0
Sets the color to clear the color buffer with.
See: #clear
- OpenGL function:
glCearColor
- OpenGL version: 2.0
Retrieves the value used to clear the depth buffer.
- OpenGL function:
glGetDoublev
- OpenGL enum:
GL_DEPTH_CLEAR_VALUE
- OpenGL version: 2.0
Sets the value to clear the depth buffer with.
See: #clear
- OpenGL function:
glClearDepth
- OpenGL version: 2.0
Sets the value to clear the depth buffer with.
See: #clear
- OpenGL function:
glClearDepthf
- OpenGL version: 2.0
Retrieves the value used to clear the stencil buffer.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_STENCIL_CLEAR_VALUE
- OpenGL version: 2.0
Sets the value to clear the stencil buffer with.
See #clear
- OpenGL function:
glClearStencil
- OpenGL version: 2.0
Waits for all previously called GL commands to complete.
- OpenGL function:
glFinish
- OpenGL version: 2.0
Forces all GL commands to complete before new ones can be issued.
- OpenGL function:
glFlush
- OpenGL version: 2.0
Retrieves the bounding area drawn to the window.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_VIEWPORT
- OpenGL version: 2.0
Sets the bounding area drawn to the window.
- OpenGL function:
glViewport
- OpenGL version: 2.0
Sets the bounding area drawn to the window.
- OpenGL function:
glViewport
- OpenGL version: 2.0