Load Texture From Image Content In Runtime
Posted
by
Austin Brunkhorst
on Game Development
See other posts from Game Development
or by Austin Brunkhorst
Published on 2012-09-03T10:07:18Z
Indexed on
2012/09/03
15:52 UTC
Read the original article
Hit count: 303
xna-4.0
Basically I wrote a world editor for a game I'm working on. Looking ahead, I was brainstorming ways to save the created world including the tile-sets (this game will rely on a tile engine).
I was hoping to save the image data of each tile-set in the same file containing the tile positions, etc. and load the image data into a Texture with XNA.
Is it possible? Something like this is what I'm going for.
Texture2D tileset = Content.LoadFromString<Texture2D>("png tileset data");
© Game Development or respective owner