MCPcopy Create free account
hub / github.com/coronalabs/corona / SetOrientation

Method SetOrientation

librtt/Rtt_GPUStream.cpp:820–864  ·  view source on GitHub ↗

Used to support changing Corona view orientation in the simulator, where the window remains upright, even though we try to simulate a physically rotated device window. When autoRotate is true, that means we want the origin/coordinate system of the content to be upright, i.e. the origin is at the top-left of whatever orientation the screen is in. When it's false, then the content will rotate along

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

WindowDidRotateMethod · 0.45
WindowDidRotateMethod · 0.45

Calls 1

SwapFunction · 0.85

Tested by

no test coverage detected