Class: Mittsu::OpenGLBuffer

Inherits:
Struct
  • Object
show all
Defined in:
lib/mittsu/renderers/opengl/opengl_buffer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer

Returns:

  • (Object)

    the current value of buffer



2
3
4
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 2

def buffer
  @buffer
end

#materialObject

Returns the value of attribute material

Returns:

  • (Object)

    the current value of material



2
3
4
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 2

def material
  @material
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



2
3
4
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 2

def object
  @object
end

#opaqueObject

Returns the value of attribute opaque.



3
4
5
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 3

def opaque
  @opaque
end

#renderObject

Returns the value of attribute render.



3
4
5
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 3

def render
  @render
end

#transparentObject

Returns the value of attribute transparent.



3
4
5
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 3

def transparent
  @transparent
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



2
3
4
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 2

def z
  @z
end

Instance Method Details

#idObject



9
10
11
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 9

def id
  object.id
end

#nameObject



5
6
7
# File 'lib/mittsu/renderers/opengl/opengl_buffer.rb', line 5

def name
  "BUFFER(#{object.name})"
end