格洛克斯
rbGLox 是 ruby-opengl、ruby-glfw 系列的一个小包装,通过抽象和提供一些高级接口来处理“纹理”、“GLSL 着色器”、基本“几何”等。
它是快速原型制作新的和有趣的想法的理想选择。
rbGLox是的姊妹项目 。
依赖关系
入门
安装
gem install rbglox
图书馆
使用 rbGLox 作为库非常简单 :)
require 'rbglox'
class DemoApp < RBGLox :: App
def init
@texture = RBGLox :: Texture . new 'mosaic.tga'
@r = 0.0
@cube = RBGLox :: MeshCube . new
end
def update
@r += 0.1
end
def dr