Commits

David Lin  committed 9c90dc7

first commit

  • Participants

Comments (0)

Files changed (4)

+.DS_Store
+*~
+*.swp
+.svn
+.directory
+tmp
+Gemfile.lock
+source 'https://rubygems.org'
+
+git 'git://github.com/davll/ruby-opengl.git', branch: 'master' do
+  gem 'opengl3'
+  gem 'opengl3-kit'
+  gem 'opengl3-glut'
+end
+# setup environment
+require 'rubygems'
+require 'bundler/setup'
+
+# load app
+require_relative 'my_app'
+
+# run
+MyApp.new.run
+require 'glut'
+
+class MyApp < GLUT::App
+  
+  def initialize
+    super(version: [4, 2])
+  end
+  
+  def display
+    glClear(GL_COLOR_BUFFER_BIT)
+    super
+  end
+  
+  def cleanup
+  end
+  
+end