This is a template for creating a new plugin for the Polymorph Engine.
- FORK this repository and set its
NAMEto the new plugin name (e.g.pluginname-type). - Set the CMake project name in
CMakeLists.txtto the new plugin name (e.g.pluginname-type). - Change the
plugin-template.pcf.cptto the new plugin name (e.g.pluginname-type.pcf.plugin). - Make sure to change the
name=plugin-templateattribute too. - To be used, you also have to create
NAMESPACEdirectory inIncludeExport - Inside it try to have at least an include file named by your plugin name (e.g.
IncludeExport/NAMESPACE/pluginname-type.hpp).
'---render-2D'
' |'
' |---render-2D.pcf.plugin'
' |---IncludeExport'
' | |'
' | |---Polymorph'
' | | |'
' | | |---render-2D.hpp' (including SpriteRendererComponent.hpp, TextureModule.hpp and more)
- Please make sure to use the
PolymorphInterfaceto generate new scripts - Otherwise you have to create scripts manually and add them to the
Factory/include/ScriptFactory.hppfile - Also to create manually the script
Initailizerin theFactory/include/intializers/directory
- In case you are developing a plugin that implements other plugins
Interfaces - Make sure to add a dev dependency to the
CMakelists.txtfile with a fetch content - Also include the
Interfaces and the Symbols definitions - Then you just have to make a definition for those
- That's it !
- Belong in the
Coredirectory
- Belong in the
Coredirectory - In the class
PluginCore