Package com.aparapi.examples.effects
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
-
Field Details
-
mousePosition
We track the latest mouse position here.
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details