Class: MD2::Command::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/md2/command.rb

Overview

A data structure containing a single #texture_s, #texture_t and #vertex_index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, t, index) ⇒ Segment

Returns a new instance of Segment.



31
32
33
# File 'lib/md2/command.rb', line 31

def initialize(s, t, index)
  @texture_s, @texture_t, @vertex_index = s, t, index
end

Instance Attribute Details

#texture_sObject (readonly)

Returns the value of attribute texture_s.



30
31
32
# File 'lib/md2/command.rb', line 30

def texture_s
  @texture_s
end

#texture_tObject (readonly)

Returns the value of attribute texture_t.



30
31
32
# File 'lib/md2/command.rb', line 30

def texture_t
  @texture_t
end

#vertex_indexObject (readonly)

Returns the value of attribute vertex_index.



30
31
32
# File 'lib/md2/command.rb', line 30

def vertex_index
  @vertex_index
end