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

Method scriptUpdate

src/ofxLua.cpp:249–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void ofxLua::scriptUpdate() {
250 if(L == NULL || !isFunction("update")) {
251 return;
252 }
253 lua_getglobal(L, "update");
254 if(lua_pcall(L, 0, 0, 0) != 0) {
255 std::string msg = "Error running update(): "
256 + (std::string) lua_tostring(L, LUA_STACK_TOP);
257 errorOccurred(msg);
258 }
259}
260
261void ofxLua::scriptDraw() {
262 if(L == NULL || !isFunction("draw")) {

Callers 2

updateMethod · 0.80
updateMethod · 0.80

Calls 1

lua_getglobalFunction · 0.85

Tested by

no test coverage detected