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

Method run

src/cinder/app/linux/AppImplLinuxHeadless.cpp:101–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void AppImplLinux::run()
102{
103 mApp->privateSetup__();
104 mSetupHasBeenCalled = true;
105
106 // issue initial app activation event
107 mApp->emitDidBecomeActive();
108
109 // issue initial resize revent
110 for( auto &window : mWindows ) {
111 window->resize();
112 }
113
114 // initialize our next frame time
115 mNextFrameTime = getElapsedSeconds();
116
117 while( ! mShouldQuit ) {
118
119 // update and draw
120 mApp->privateUpdate__();
121 for( auto &window : mWindows ) {
122 window->draw();
123 }
124
125 // Sleep until the next frame
126 if( ! mShouldQuit ) {
127 sleepUntilNextFrame();
128 }
129 }
130
131 mApp->emitCleanup();
132}
133
134WindowImplLinux* AppImplLinux::findSharedRendererWindow( const RendererRef &searchRenderer )
135{

Callers

nothing calls this directly

Calls 7

privateSetup__Method · 0.80
emitDidBecomeActiveMethod · 0.80
privateUpdate__Method · 0.80
emitCleanupMethod · 0.80
getElapsedSecondsFunction · 0.50
resizeMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected