Sha256: 2cda867dd7fbfad2ae4cac760c6a604692f793ecf17af43fd682fccd08174265

Contents?: true

Size: 813 Bytes

Versions: 4

Compression:

Stored size: 813 Bytes

Contents

begin
  require "opengl"
rescue LoadError
  puts "Required gem is not installed, please install 'opengl-bindings' and try again."
  exit(1)
end

module CyberarmEngine
  def gl_error?
    e = glGetError
    if e != GL_NO_ERROR
      warn "OpenGL error detected by handler at: #{caller[0]}"
      warn "    #{gluErrorString(e)} (#{e})\n"
      exit if window.exit_on_opengl_error?
    end
  end
end

require_relative "opengl/shader"
require_relative "opengl/texture"
require_relative "opengl/light"
require_relative "opengl/perspective_camera"
require_relative "opengl/orthographic_camera"

require_relative "opengl/renderer/g_buffer"
require_relative "opengl/renderer/bounding_box_renderer"
require_relative "opengl/renderer/opengl_renderer"
require_relative "opengl/renderer/renderer"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cyberarm_engine-0.22.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.21.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.20.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.19.1 lib/cyberarm_engine/opengl.rb