Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Texture2D LoadFromFile(this Texture2D texture, string path, GraphicsDevice gd)
- {
- using (Stream stream = File.OpenRead(path))
- {
- return Texture2D.FromStream(gd, stream);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement