Skip to main content
Bumped by Community user
added 250 characters in body
Source Link

Having worked with monobehaviour and processing before, is it possible to create the same paradigm both frameworks use which basically is writing all code in two main functions, start/setup and update/draw. To further elaborate, much like working in unity when creating a new script the user is presented with two functions a start and completely hidingan update. The first function always gets called on the first frame while the latter gets called every frame there is no main function present only these two. If not,are there any waysI'd like to atleast imitate it?that same structure on to c++.

Having worked with monobehaviour and processing before, is it possible to create the same paradigm both frameworks use which basically is writing all code in two main functions, start/setup and update/draw and completely hiding the main function. If not,are there any ways to atleast imitate it?

Having worked with monobehaviour and processing before, is it possible to create the same paradigm both frameworks use which basically is writing all code in two main functions, start/setup and update/draw. To further elaborate, much like working in unity when creating a new script the user is presented with two functions a start and an update. The first function always gets called on the first frame while the latter gets called every frame there is no main function present only these two. I'd like to imitate that same structure on to c++.

Source Link

How to create same paradigm of monobehaviour and processing in C++

Having worked with monobehaviour and processing before, is it possible to create the same paradigm both frameworks use which basically is writing all code in two main functions, start/setup and update/draw and completely hiding the main function. If not,are there any ways to atleast imitate it?