• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Should my engine variable be static or dynamic? C++/C Native OpenGL App.

Cofyka

Lurker
Hello everyone! Should my game engine variable be static or dynamic?
Why do I need static?
Because the jni event functions like nativeOnStart etc. are not in the engine scope.
Why I think I should use dynamic?
Because I think it's safer. But still, I saw a code where some guy wrote engine as a static variable.

What should I do? Thanks.
 
Back
Top Bottom