Code Monkey home page Code Monkey logo

ppl-demo's Introduction

PPL-Demo

This is a demonstration of Philipp Ringler's Plugin Patterns Library, a set of C++ wrappers for the X-Plane SDK and OpenGL/OpenAL.

This uses my fork of PPL, which has a few minor additions. These are marked in the comments.

To download along with the git submodules, use this command:

git clone https://github.com/JDeeth/ppl-demo.git --recursive

then open ppl-demo.pro with Qt Creator. PPL and the demo plugin are included as QMake subprojects.

This project has been developed under Linux. plugin.pro will definitely need to be updated to compile under OSX and Windows, with the location of the compiled PPL static library and OpenGL libraries. If you're able to make these changes, please send a pull request! You should be able to compile PPL as a subproject immediately.

When compiling the plugin, add -recursive CONFIG+=withsound to the QMake settings in Qt Creator.

When testing the plugin, copy the sounds directory to the test aircraft folder.


This project currently demonstrates these features of PPL:

  • DataRef to access existing datarefs
  • OwnedData to create new datarefs
  • Processor for flight-loop callback functions
  • ALContextManager to play sounds
  • PluginPath
  • Log and LogWriter
  • MenuItem and Action for menu items
  • MessageWindow
  • OnScreenDisplay

These features are not demonstrated yet:

  • OwnedData and DataRef with arrays and custom callbacks
  • Command for accessing and creating commands
  • DrawCallback for managing drawing-loop callbacks
  • FontMgr to draw TTF fonts
  • LogicHandler, kinda a more baroque Processor
  • OverlayGauge, an OpenGL context for drawing on the 3D cockpit and in popup windows
  • Settings, a wrapper around SimpleIni
  • Smoothed, a very simple filter for smoothing out changing data
  • Texture; loads a bitmap for OpenGL drawing
  • VertexBuffer; wraps an OpenGL Vertex Buffer Object. Uses glMapBuffer.

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.