|
Beatmup Java package
|
Beatmup engine context for Android. More...
Public Member Functions | |
| Context (final int poolCount) | |
| Creates a new Context. More... | |
| synchronized void | dispose () |
| Destroys the native object. More... | |
Public Member Functions inherited from Beatmup.Context | |
| float | performTask (Task task) throws CoreException |
| Performs a given task in the main thread pool. More... | |
| float | performTask (Task task, int poolIndex) throws CoreException |
| Performs a given task. More... | |
| void | repeatTask (Task task, boolean abortCurrent) |
| Ensures a given task executed at least once. More... | |
| void | repeatTask (Task task, boolean abortCurrent, int poolIndex) |
| Ensures a given task executed at least once in a specific thread pool. More... | |
| int | submitPersistentTask (Task task) |
| Submits a persistent task in the main thread pool. More... | |
| int | submitPersistentTask (Task task, int poolIndex) |
| Submits a persistent task in a specified thread pool. More... | |
| void | waitForJob (int job) |
| Blocks until a given job in the main thread pool finishes. More... | |
| void | waitForJob (int job, int poolIndex) |
| Blocks until a given job in the main thread pool finishes. More... | |
| boolean | abortJob (int job) |
| Aborts a given submitted job. More... | |
| boolean | abortJob (int job, int poolIndex) |
| Aborts a given submitted job. More... | |
| void | limitWorkerCount (int newCount) |
| Sets maximum number of threads executing tasks in the main thread pool. More... | |
| void | limitWorkerCount (int newCount, int poolIndex) |
| Sets maximum number of threads executing tasks in a given thread pool. More... | |
| void | check () throws CoreException |
| Checks if the main thread pool is doing great: rethrows exceptions occurred during tasks execution, if any. More... | |
| void | check (int poolIndex) throws CoreException |
| Checks if a specific thread pool is doing great: rethrows exceptions occurred during tasks execution, if any. More... | |
| Bitmap | renderChessboard (int width, int height, int cellSize, PixelFormat pixelFormat) |
| Renders a chessboard-like image. More... | |
| Bitmap | copyBitmap (Bitmap source, PixelFormat pixelFormat) |
| Creates a copy of given bitmap. More... | |
| IntPoint | scanlineSearch (Bitmap bitmap, Color color, IntPoint start) |
| Goes through a bitmap in scanline order (left to right, top to bottom) until a pixel of a given color is met. More... | |
| boolean | isGPUQueried () |
| Tests whether the GPU was already queried. More... | |
| boolean | isGPUReady () |
| Tests whether the GPU was already queried and successfully initialized. More... | |
| void | recycleGPUGarbage () |
| Recycles GPU-managed resources that are ready to be disposed in a separate task. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Beatmup.Context | |
| static long | getTotalRAMBytes () |
Static Public Attributes inherited from Beatmup.Context | |
| static final IntPoint | SCANLINE_SEARCH_NOT_FOUND = new IntPoint(-1, -1) |
| Returned by Beatmup.Context.scanlineSearch() if no pixel of a specific color is found in the image. More... | |
Protected Member Functions inherited from Beatmup.Context | |
| Context (long handle) | |
| Creates a new context. More... | |
| void | watchBitmap (Bitmap bitmap) |
| Adds a bitmap to the watch list. More... | |
| synchronized void | unwatchBitmap (Bitmap bitmap) |
| Removes a bitmap from the watch list. More... | |
Protected Attributes inherited from Beatmup.Object | |
| long | handle |
| pointer to the native object More... | |
Beatmup engine context for Android.
Definition at line 24 of file Context.java.
|
inline |
Creates a new Context.
| poolCount | Number of thread pools to run tasks. Equals to the max number of tasks running in parallel. |
Definition at line 31 of file Context.java.
|
inline |
Destroys the native object.
After the native object is destroyed, its Java counterpart likely becomes unusable.
Reimplemented from Beatmup.Context.
Definition at line 37 of file Context.java.