Sitelet https://github.com/YAL-GameMaker-Tools/GmxGen/tree/master/sample
Skip to content

Latest commit

 

History

History

GmxGenTest

This is a "template" project for creating C++ DLLs for GameMaker!

Intended to be copied via copyre, like so:

copyre GmxGenTest MyExtension GmxGenTest

(which copies GmxGenTest/ to MyExtension/ while changing each occurrence of GmxGenTest in files/names to MyExtension)


As part of first-time setup, you'll also want to add GmlCppExtFuncs and GmxGen either to your PATH or to the project directory.

These are used as pre-build and post-build steps respectively and are used to streamline the update process - so that you can do

int64_t my_id = 0;
dllg int64_t get_id() {
  return my_id;
}

without dealing with GM limitations or manually adding functions to the extension file via UI (see GmlCppExtFuncs documentation for details)