Adding a comment about the strange shared fields in BitmapTextPage

that I'm not going to touch with a ten foot pole.
This commit is contained in:
Paul Speed 2016-03-26 03:55:58 -04:00
parent 7665fef2de
commit 3f1c696e26

View File

@ -123,6 +123,13 @@ class BitmapTextPage extends Geometry {
return clone;
}
// Here is where one might add JmeCloneable related stuff except
// the old clone() method doesn't actually bother to clone anything.
// The arrays and the pageQuads are shared across all BitmapTextPage
// clones and it doesn't seem to bother anything. That means the
// fields could probably just as well be static... but this code is
// all very fragile. I'm not tipping that particular boat today. -pspeed
void assemble(Letters quads) {
pageQuads.clear();
quads.rewind();