Example implementation of the Shadron extension API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
ExampleExtension.sln
ExampleExtension.vcxproj
ExampleExtension.vcxproj.filters
README.md
example-extension.cpp
extension-test.shadron
install-to-shadron.bat
shadron-api.h

README.md

Shadron Example Extension

This extension serves as an introduction to the Shadron extension API. You may use this as a basis for your own extension or as a reference. See the full documentation to make sure you use the API correctly.

Build and installation

Use Microsoft Visual Studio 2015 to build the project in release configuration, and run install-to-shadron.bat to copy the DLL to the appropriate location. Shadron searches for extensions in extensions directory in its own directory, and in %APPDATA%\Shadron\extensions.

Usage

To use an extension in a script, it must first be enabled with the #extension directive:

#extension example

Now, you may generate an image or an animation with the extension like this:

image ImageTest = example();
animation AnimationTest = example();

Try out the extension test script, which does this.