Class: MD2::Command::Segment
- Inherits:
-
Object
- Object
- MD2::Command::Segment
- Defined in:
- lib/md2/command.rb
Overview
A data structure containing a single #texture_s, #texture_t and #vertex_index.
Instance Attribute Summary collapse
-
#texture_s ⇒ Object
readonly
Returns the value of attribute texture_s.
-
#texture_t ⇒ Object
readonly
Returns the value of attribute texture_t.
-
#vertex_index ⇒ Object
readonly
Returns the value of attribute vertex_index.
Instance Method Summary collapse
-
#initialize(s, t, index) ⇒ Segment
constructor
A new instance of Segment.
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_s ⇒ Object (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_t ⇒ Object (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_index ⇒ Object (readonly)
Returns the value of attribute vertex_index.
30 31 32 |
# File 'lib/md2/command.rb', line 30 def vertex_index @vertex_index end |