Module: Parasol::OpenGLContext

Included in:
Shader
Defined in:
lib/parasol/opengl_context.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#require_opengl_context!Object



6
7
8
9
10
# File 'lib/parasol/opengl_context.rb', line 6

def require_opengl_context!
  return unless GLFW.GetCurrentContext.null?

  fail Parasol::ShaderError, "No OpenGL context available."
end