Class: SDC::View

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_View.rb,
engine_docs/automatic_doc_View.rb

Overview

A view class capable of giving a transformed view of drawable contents

Instance Method Summary collapse

Constructor Details

#initialize(arg_1 = nil, arg_2 = nil) ⇒ View

Creates a view object with either a rectangle or a center and a size given as arguments

Parameters:



# File 'engine_docs/automatic_doc_View.rb', line 9

Instance Method Details

#set_viewport(rectangle) ⇒ nil

Sets the rectangle of the view to the given rectangle

Parameters:

  • rectangle

    FloatRect

Returns:

  • (nil)


# File 'engine_docs/automatic_doc_View.rb', line 16