Load float/short arrays from XML

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Load float/short arrays from XML

Postby Bylos » Thu Mar 18, 2010 7:08 pm

Hi everyone,

I'm working on a 3D game, and I've got a problem with one of my constructors, wich contains arrays for vertices and textures coordinates. It's saying "The code of constructor [MyClass] is exceeding the 65535 bytes limit" and I suspect this error to come from the amount of data in the different arrays.

As I don't want to handle external files, is there a way to place the arrays in different xml files stored in the ressource folder and to load them in my constructor just like the way it's done for the strings (with getString) ?
Bylos
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Mar 18, 2010 6:55 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests