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

Method render

samples/TextBox/src/TextBoxApp.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void TextBoxApp::render()
61{
62 TextBox tbox = TextBox().alignment( TextBox::LEFT ).font( mFont ).size( ivec2( mSize.x, TextBox::GROW ) ).text( mText );
63 tbox.setColor( Color( 1.0f, 0.65f, 0.35f ) );
64 tbox.setBackgroundColor( ColorA( 0.5, 0, 0, 1 ) );
65 ivec2 sz = tbox.measure();
66 CI_LOG_I( "text size: " << sz );
67 mTextTexture = gl::Texture2d::create( tbox.render() );
68}
69
70void TextBoxApp::update()
71{

Callers 8

makeTextMethod · 0.45
drawTextViewMethod · 0.45
EaseBoxMethod · 0.45
renderHelpToTextureMethod · 0.45
setupMethod · 0.45
drawInfoMethod · 0.45
QuakeMethod · 0.45
setupMethod · 0.45

Calls 6

TextBoxFunction · 0.85
ColorFunction · 0.50
createFunction · 0.50
sizeMethod · 0.45
setColorMethod · 0.45
measureMethod · 0.45

Tested by 1

setupMethod · 0.36