Class Main

java.lang.Object
com.aparapi.examples.effects.Main

public class Main
extends Object
An example Aparapi application which tracks the mouse and updates the color pallete of the window based on the distance from the mouse pointer. On GPU, additional computing units will offer a better viewing experience. On the other hand on CPU, this example application might suffer with sub-optimal frame refresh rate as compared to GPU.
Author:
gfrost
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Main.MouseTrackKernel
    An Aparapi Kernel implementation for tracking the mouse position and coloring each pixel of a window depending on proximity to the mouse position.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static Point mousePosition
    We track the latest mouse position here.
  • Constructor Summary

    Constructors 
    Constructor Description
    Main()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(String[] _args)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mousePosition

      public static volatile Point mousePosition
      We track the latest mouse position here.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main​(String[] _args)