12-08-2020, 06:08 PM
Hi,
If you check provided samples, you'll see that "line" argument is heavily used inside the raster effect body:
https://github.com/megamarc/JTilengine/b...w.java#L89
Before trying to encapsulate in classes and instances, make sure that the samples work, and then try to modify them to check that you understand its mechanism. One change each time. Also keep in mind that only one raster effect callback can be enabled. Ussing classes and instances may (or may not) introduce issues unrelated to the engine itself.
If you check provided samples, you'll see that "line" argument is heavily used inside the raster effect body:
https://github.com/megamarc/JTilengine/b...w.java#L89
Code:
// set the raster callback function name
tln.SetRasterCallback (this, "rasterCallback");
// callback body
void rasterCallback (int line) {
...
}
Before trying to encapsulate in classes and instances, make sure that the samples work, and then try to modify them to check that you understand its mechanism. One change each time. Also keep in mind that only one raster effect callback can be enabled. Ussing classes and instances may (or may not) introduce issues unrelated to the engine itself.