Game Develop C++ Platform: Writing a new extension

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Writing a new extension

# Create a new extension

Creating a new extension can be made by following these steps :

- Copy the directory of an extension and rename it:
- Rename then the sources files :
- Open the CMakeLists.txt file and replace every occurrence of the extension old name with the new name.
- Open all the source files and again, replace every occurrence of the extension old name with the new name.
- In the Extensions directory, open the CMakeLists.txt file and add a line such as 'ADD_SUBDIRECTORY(MyExtension)'. You can then start to modify the extension.
  If your extension is fairly simple, you can create it from the AES Extension.
  If your extension need an object, you can use for instance the TextObject Extension as a starting point.
- You can compile your extension by relaunching CMake like described here.

# Use the extension with Game Develop

To make your extension usable with Game Develop, you have to:

1. Copy the files generated in Binaries/Output/Release into your Game Develop folder.
2. Copy all needed include file inside a folder with the name of your extension located into (Game Develop folder)/CppPlatform/Extensions/include.
   You can use a small script ( batch file on Windows ) to copy all the needed includes files.
3. Translations catalog files must be put into xxxPlatform/Extensions/locale/language/myExtension.mo ( Example : CppPlatform/Extensions/locale/fr_FR/myExtension.mo )