This is a template for creating a new plugin for the Polymorph Engine.
- FORK this repository and set its
NAME
to the new plugin name (e.g.pluginname-type
). - Set the CMake project name in
CMakeLists.txt
to the new plugin name (e.g.pluginname-type
). - Change the
plugin-template.pcf.cpt
to the new plugin name (e.g.pluginname-type.pcf.plugin
). - Make sure to change the
name=plugin-template
attribute too. - To be used, you also have to create
NAMESPACE
directory 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
PolymorphInterface
to generate new scripts - Otherwise you have to create scripts manually and add them to the
Factory/include/ScriptFactory.hpp
file - Also to create manually the script
Initailizer
in 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.txt
file 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
Core
directory
- Belong in the
Core
directory - In the class
PluginCore