XML-Importer

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

XML-Importer

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

Hello,
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,
Chris
Cyberchris
 
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?
tonyp7
 
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?
broken-e
 
Posts: 628
Joined: Sun Feb 06, 2011 7:20 am


Return to General Development

Who is online

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