Jump to content
  • Advertisement
Sign in to follow this  
Say

Load a mesh in memory without using

This topic is 4774 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i need to load a .x file in memory without using it. I've tried to use this but it doesn't work fine: // load FileStream xTemp = File.OpenRead(openFileX.FileName); x_file_list.Add( xTemp ); // x_file_list is an ArrayList .... ... ... // ok but sometime i try to use it OnResetDevice(object sender, EventArgs e){ ... xfile = (FileStream)x_file_list[0]; mesh = Mesh.FromStream(xfile, MeshFlags.SystemMemory, device, out materials); ... } at first time it works but when i resize the window form i get array list overflowing! Then when i clode the application i've to .close() all FileStreams in x_file_list?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!