Author Topic: StackOverflowError  (Read 10260 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: StackOverflowError
« Reply #15 on: August 02, 2010, 10:23:20 pm »
Well, it's actually better than i had expected... ;)

Oh, and while you are there: The Android version of GLFont doesn't seem to set the content of the charWidths-array, so that the width of any string is always 0 when using getStringBounds(). Do you have a working version of this?

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: StackOverflowError
« Reply #16 on: August 02, 2010, 10:30:25 pm »
sure. here it's
http://aptalkarga.com/download/android/AGLFont.java

this version also accepts char arrays instead of strings to avoid string creation if possible

so what do you think of compiling multiple objects into one ?

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: StackOverflowError
« Reply #17 on: August 02, 2010, 10:34:43 pm »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: StackOverflowError
« Reply #18 on: August 02, 2010, 10:59:16 pm »
Thanx!

Compiling multiple objects into one isn't really possible, because even if geometry and texture usage is the same, the transformations are not. You can't pack everything into one compiled chunk without making the use the same transformation matrix, which doesn't make any sense for multiple objects.