Code Monkey home page Code Monkey logo

implot_demos's Introduction

ImPlot Demos

This repository contains toy ImPlot applications that demonstrate some of the library's functionality. The demos here are more sophisticated than those provided in implot_demo.h, and may rely on third-party libraries that would otherwise clutter ImPlot's main repository. Use these examples as a starting point for your application and to familiarize yourself with ImPlot, but do not assume all code (e.g. signal processing algorithms) to be perfectly correct or optimal.

Requirements

  • OpenGL
  • C++17 compiler

Note: Compiled and tested with MSVC. Minor changes to CMakeLists.txt may be required to support other compilers. If you make a fix, please submit a PR.

Build Instructions

  1. Clone this repository, ImPlot, and ImGui into a parent directory (name doesn't matter):
mkdir root
cd root
git clone https://github.com/epezent/implot_demos
git clone https://github.com/epezent/implot
git clone https://github.com/ocornut/imgui
  • root/
    • imgui/
    • implot/
    • implot_demos/
  1. Build with CMake, e.g.:
cd implot_demos
mkdir build
cd build
cmake ..
cmake --build . --config Release

Demos

Demo Description Image
demo.cpp Main demo. Displays the ImPlot (and ImGui) library supplied demo windows.
filter.cpp Simple filter toy for educational purposes. Displays time domain input/output signals, and the frequency domain transfer function, amplitude spectrum, etc. filter
spectrogram.cpp Realtime audio spectrogram and visualizer with device playback. Pass in an audio file at the command line: ./spectrogram.exe ./aphex_twin_formula.wav (see resources/audio folder). Recommend compiling with ImPlot backends branch. spectrogram
maps.cpp OpenStreetMap world map viewer. Downloads and displays zoomable tile maps in a plot. maps
mandel.cpp Realtime Mandelbrot viewer using AVX2 and OpenMP acceleration. Recommend compiling with ImPlot backends branch. mandel
perlin.cpp Renders perlin noise in a heatmap. perlin
graph.cpp Simple graphing calculator using exprtk expression evaluator. perlin
stocks.cpp Downloads and displays historical stock data from Yahoo Finance. perlin

Contributing

Have you created something awesome with ImPlot? If so, please consider submitting a PR with a minimal working example of your application as a demo. Use the following guidelines:

  • Modify your ImPlot/ImGui code so that it subclasses common/App.h (see any existing demos).
  • Try to contain your demo to a single file located in demos/.
  • Indicate your authorship and any helpful documentation at the top of your demo source file.
  • Add dependencies with CMake FetchContent (preferred), git submodules, or manually to the 3rdparty/ folder (include the license).
  • If your demo requires resources (audio, images, etc.), add them to the resources/ folder. Keep it simple!
  • Screenshots and/or GIFs with your PR are helpful.

implot_demos's People

Contributors

epezent 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.