It allows you to build a professional-grade flight simulator using a standard Mac (with the exception of MacOS Catalina), Windows, or Linux computer. This example shows how to use a pulldown menu to create a widget window to display a list of instructions or notes.X-Plane for Professional-Use is the world's foremost general-purpose flight simulator. This example program illustrates creating a custom command. This sample illustrates control of X-Plane DataRefs using custom manipulators. The flight loop callback sends the message to DataRefEditor to register your custom dataref in DataRefEditor. This plugin adds a few lines of code and a flight loop callback. Register Custom DataRef in Dataref Editor This is a code snippet that shows how to write custom array dataref handlers. This is a code snippet that returns up to 3 camera directions in OpenGL coordinates. This code snippet saves the 2d mouse click and outputs it as two 3-d points. This code snippet can be used to determine if a sphere at a location in the current OpenGL coordinates is visible. X-Plane 10 Instancing Compatibility WrapperĬompatibility wrapper for using the new XPLMInstance APIs in plugins that support old versions of X-Plane. This code snippet shows how to attache control V, C, and X as cut/copy/paste. This sample code shows how to draw a terrain object that moves in relation to the aircraft This code snippet shows how to load a texture and draw it as a 2D quad. This example program creates a custom integer dataref and 2 custom commands. This sample shows off the new instancing API, used for efficiently drawing objects without needing to write OpenGL.Ī basic demonstration for adding submenus to the in-sim Plugin menu.Ĭreates a window that is dynamically resized based on the X-Plane window's size.Ĭreates a new, "modern" window styled like an X-Plane 11 window which supports multiple monitors and pop-out into its own OS window.ĭemonstrates the use of the modelview, viewport, and projection matrix datarefs for applying scissoring to SDK 3-style windows.ĭemonstrates creating a window, moving it to VR, and changing its size based on a button click.Īn example of how to draw 2-d graphics that match the 3-d world.ĭraws custom map layers using pure OpenGL, PNG icons, and text labels. "My first plugin." Creates a window to show the text "Hello World!" This example shows how reload plugins so you don't have to quit X-Plane.Įxample demonstrating how to save useful debugging information for crashes caused by a plugin This example shows how to create 2 custom widgets which are then used by the plugin. Plugin to show how to derive motion platform data from datarefs. This examples shows how to access the FMS via plugin. This sample shows how to override X-Plane's default flash patterns for the beacons and strobes. This sample shows how to register a new view with the sim that orbits the aircraft. Commands allow you to simulate any keystroke or joystick button press or release. This sample demonstrates how to send commands to the sim. This sample shows how to control lat/long, etc. This sample shows how to create a plugin to drive a custom prop disc. This examples shows how to draw 7 AI aircraft around the user aircraft. This examples shows how to start the engines via plugin. This example shows the use of key sniffers to intercept and process raw keystrokes. This sample demonstrates how to manage other plugins. It demonstrates how to use OpenAL with a context from a plugin. This sample plugin plays a sound whenever an airplane is loaded. This sample shows how to use the "override" datarefs to disable X-Plane's internal control of things like the flight model and joystick controls. This sample is a plug-in that allows positioning of lat/lon etc. This is an example plugin that demonstrates how to share data, both owned by a plugin and shared. This example creates menus items that change the nav-1 radio frequency to demonstrate how to interact with X-Plane by reading and writing data. This example plugin demonstrates how to use the timed processing callbacks to continuously record sim data to disk. This sample code demonstrates how to use OpenAL with a context from a plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |