Giter Site home page Giter Site logo

xplane-plugin-template's Introduction

XPlane-Plugin Template

X-Plane plugin demonstrating essential callbacks for initialization, resource management, and event handling.


X-Plane Plugin with Essential Callbacks

License

Overview

This repository contains an example X-Plane plugin demonstrating the implementation of essential callbacks required for initialization, resource management, and event handling. The plugin showcases how to interact with the X-Plane SDK to integrate custom functionality into the simulator environment.

Features

  • XPluginStart: Initializes the plugin and registers necessary callbacks.
  • XPluginEnable: Optional callback for enabling plugin-specific resources.
  • XPluginDisable: Optional callback for disabling plugin-specific resources.
  • XPluginStop: Cleans up resources and unregisters callbacks before plugin unload.
  • XPluginReceiveMessage: Handles incoming messages from X-Plane or other plugins.

Non-Static Functions:

Entry Point Functions: Functions like XPluginStart, XPluginStop, XPluginEnable, and XPluginDisable are typically not static. They serve as the entry points defined by the X-Plane SDK and are called externally by the simulator.

Installation

To use this plugin:

  1. Clone the repository: git clone https://github.com/1090MHz/Xplane-Plugin
  2. Open the project in your preferred IDE or text editor.
  3. Build the project using the X-Plane SDK and integrate with your X-Plane installation.

Usage

  1. Modify the plugin to add your own functionality or experiment with the provided callbacks.
  2. Compile the plugin into a .xpl file.
  3. Load the plugin into X-Plane and observe its behavior.
  4. Customize and extend the plugin according to your requirements.

Example Configuration for VS Code

To set up Visual Studio Code for this project, you can use the following example configuration in your c_cpp_properties.json file:

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",
                "${workspaceFolder}/SDK/CHeaders/XPLM"
            ],
            "defines": [
                "IBM",
                "XPLM400",
                "XPLM303",
                "XPLM302",
                "XPLM301",
                "XPLM300",
                "XPLM210",
                "XPLM200",
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "windowsSdkVersion": "10.0.22621.0",
            "compilerPath": "cl.exe",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "windows-msvc-x64"
        }
    ],
    "version": 4
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your improvements.

Support

For support or questions, please open an issue in the repository or contact the maintainer directly.

Acknowledgments

About

This project was created to demonstrate best practices for X-Plane plugin development and to provide a starting point for developers interested in extending X-Plane's capabilities through plugins.


Feel free to customize the sections and details based on your specific project's features, requirements, and additional acknowledgments or dependencies. This README template aims to provide a clear and informative introduction to your X-Plane plugin repository on GitHub.

xplane-plugin-template's People

Contributors

1090mhz avatar

Stargazers

Thomas Ray avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.