Skip to content

Commit

Permalink
vhacd: add the ProgressListener interface
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 9, 2025
1 parent ccc5285 commit 327d069
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
Copyright (c) 2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
package com.github.stephengold.joltjni.vhacd;

/**
* Callback interface to report progress of the V-HACD algorithm.
*
* @author Stephen Gold [email protected]
*/
public interface ProgressListener {
/**
* Callback invoked (by native code) for progress updates.
*
* @param overallPercent an overall completion percentage (≥0, ≤100)
* @param stagePercent a completion percentage for the current stage (≥0,
* ≤100)
* @param operationPercent a completion percentage for the current operation
* (≥0, ≤100)
* @param stageName the name of the current stage
* @param operationName the name of the current operation
*/
void update(double overallPercent, double stagePercent,
double operationPercent, String stageName, String operationName);
}

0 comments on commit 327d069

Please sign in to comment.