MCPcopy Create free account
hub / github.com/danomatika/ofxLua / scriptDraw

Method scriptDraw

src/ofxLua.cpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void ofxLua::scriptDraw() {
262 if(L == NULL || !isFunction("draw")) {
263 return;
264 }
265 lua_getglobal(L, "draw");
266 if(lua_pcall(L, 0, 0, 0) != 0) {
267 std::string msg = "Error running draw(): "
268 + (std::string) lua_tostring(L, LUA_STACK_TOP);
269 errorOccurred(msg);
270 }
271}
272
273void ofxLua::scriptExit() {
274 if(L == NULL || !isFunction("exit")) {

Callers 2

drawMethod · 0.80
drawMethod · 0.80

Calls 1

lua_getglobalFunction · 0.85

Tested by

no test coverage detected