Rick Posted May 30, 2015 Share Posted May 30, 2015 The C++ code has some oddities in it now that the templates have merged. It still has window, context, world, & camera pointers in the App class even though they are never created in C++ anymore. The App.cpp file is looking fairly bloated. It just seems kind of weird and while a C++ person may be more experienced it may be best to have a some of this stuff cleaned up a little. Perhaps add the app class as part of the leadwerks library and the source the customer sees derives from it and the base is called that does all this stuff. If we don't want to use the Lua files then we can simply comment out those base calls to Start() and Loop() and put our own code for our games. That would look much cleaner on the C++ side of things. class MyApp : public App { public: virtual bool Start() { return App::Start(); } virtual bool Loop() { return App::Loop(); } }; Perhaps instead of MyApp you use the app name. Could even leave the App class as part of the source files if we want to see how to do some Interpreter stuff since it is a good example of how to do those things, but the above is just a nicer experience for the customer (even C++ customers). 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.