In order to simplify creating a new plugin, and to demonstrate some of the plugin features, we have created the SamplePlugin. You can find the code for the SamplePlugin in Code/Sandbox/Plugins/SamplePlugin.
If you want to test the sample plugin for yourself, use the CMake option OPTION_SAMPLEPLUGIN when generating your solution.
class CSamplePlugin : public IPlugin
{
public:
CSamplePlugin() { /* entry point of the plugin, perform initializations */ }
~CSamplePlugin() { /* exit point of the plugin, perform cleanup */ }
int32 GetPluginVersion() { return 1; };
const char* GetPluginName() { return "Sample Plugin"; };
const char* GetPluginDescription() { return "Some description of your plugin"; };
private:
};
//Macro to register the plugin
REGISTER_PLUGIN(CSamplePlugin);
Please refer to the SamplePlugin code in order to see some examples of some of these.