MCPcopy Create free account
hub / github.com/cinder/Cinder / update

Method update

test/WindowToWorldTest/src/WindowToWorldTestApp.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void WindowToWorldTestApp::update()
68{
69 // Check if mouse is inside rectangle, by converting the mouse coordinates to object space.
70 vec3 object = gl::windowToObjectCoord( mRectangle.matrix(), mMousePos );
71 mIsOver = mRectangle.area.contains( vec2( object ) );
72}
73
74void WindowToWorldTestApp::draw()
75{

Callers

nothing calls this directly

Calls 3

matrixMethod · 0.80
windowToObjectCoordFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected