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

Method Rect

src/cinder/GeomIo.cpp:609–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607// Rect
608
609Rect::Rect()
610 : mHasColors( false )
611{
612 // upper-left, upper-right, lower-left, lower-right
613 mPositions[0] = vec2( -0.5f, -0.5f );
614 mPositions[1] = vec2( 0.5f, -0.5f );
615 mPositions[2] = vec2( -0.5f, 0.5f );
616 mPositions[3] = vec2( 0.5f, 0.5f );
617 setDefaultColors();
618 setDefaultTexCoords();
619}
620
621Rect::Rect( const Rectf &r )
622 : mHasColors( false )

Callers 11

BeginTableExMethod · 0.45
EndChildMethod · 0.45
GetResizeBorderRectFunction · 0.45
BeginMethod · 0.45
GetWindowRectMethod · 0.45
BeginMenuExMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected