Sha256: 62c158e1a2580f31a4c33ad9cee8d95144e4a1142f0f6a9db119f428dd6635e2
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
module Hate module Graphics class Light attr_accessor :ambient, :diffuse, :position def initialize(a=[0.5, 0.5, 0.5, 1.0], d=[1.0, 1.0, 1.0, 1.0], p=[0.0, 10.0, 0.0, 1.0]) @ambient = MemoryPointer.new(:float, 4).put_array_of_float(0, a) @diffuse = MemoryPointer.new(:float, 4).put_array_of_float(0, d) @position = MemoryPointer.new(:float, 4).put_array_of_float(0, p) end def run end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hate-0.1.0 | lib/hate/graphics/light.rb |