Class: Fabrique::Test::Fixtures::OpenGL::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/fabrique/test/fixtures/opengl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shader, physical = {}) ⇒ Object

Returns a new instance of Object.



13
14
15
16
17
# File 'lib/fabrique/test/fixtures/opengl.rb', line 13

def initialize(shader, physical = {})
  @shader = shader
  @mesh = physical[:mesh]
  @scale = physical[:scale]
end

Instance Attribute Details

#meshObject (readonly)

Returns the value of attribute mesh.



11
12
13
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11

def mesh
  @mesh
end

#scaleObject (readonly)

Returns the value of attribute scale.



11
12
13
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11

def scale
  @scale
end

#shaderObject (readonly)

Returns the value of attribute shader.



11
12
13
# File 'lib/fabrique/test/fixtures/opengl.rb', line 11

def shader
  @shader
end