Sha256: e38b5b5421d0ae3a7fb49022f842a70043395b156493634d6a4ce17deedaf343

Contents?: true

Size: 785 Bytes

Versions: 6

Compression:

Stored size: 785 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

6 entries across 6 versions & 1 rubygems

Version Path
cyberarm_engine-0.19.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.18.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.17.1 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.17.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.16.0 lib/cyberarm_engine/opengl.rb
cyberarm_engine-0.15.0 lib/cyberarm_engine/opengl.rb