Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.


Postby Cyberchris » Fri Apr 06, 2012 8:06 am

I want to import a xml-file into the game. Has anybody experience how to write such an importer performant enough to run on android.
I am not sure, If I should write something on my own or should I use either STAX or JAXB or something different.

Perhaps there is somebody who has written xml importing functionality.
I could imagin, that somebody has already written an importer for example for svg-files.

Thank you for all hints,
Posts: 57
Joined: Tue Mar 06, 2012 9:03 pm

Re: XML-Importer

Postby tonyp7 » Fri Apr 06, 2012 9:02 am

You want to import a vector image to draw it with OpenGL? Why exactly would you want to do that?

Is there any reason you don't want to rasterize the image and render it as a texture?
Posts: 329
Joined: Fri Feb 17, 2012 1:02 pm

Re: XML-Importer

Postby broken-e » Fri Apr 06, 2012 3:49 pm

Did you check out the com.badlogic.gdx.utils.XmlReader class?
Posts: 667
Joined: Sun Feb 06, 2011 7:20 am

Return to General Development

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest