• Advertisement
Sign in to follow this  

[MDX October] How do I write to a GraphicsBuffer?

This topic is 4516 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

Hi, The function signiture for the Write member method of GraphicsStream no longer accepts an arbitary array, it only accepts byte[]. How do I generate a byte array from an array of PositionNormalTextured ? Do I have to serialize it into a memory stream, and then use ToArray() on that? Seems like it would slow performence... Thanks, aCiD2

Share this post


Link to post
Share on other sites
Advertisement
I would avoid this latest MDX release. Tom Miller forgot to include a whole bunch of pieces of it and it is really a beta mess. Unless you intend to beta test this version, fall back to Augest.

Share this post


Link to post
Share on other sites
Thats what I already had done, felt a bit iffy about it. But - yea, im gonna stick with august.

Share this post


Link to post
Share on other sites
You can uses the generic GraphicsBuffer<T> that has got a special write method for the generic type. All functions returning a GraphicsBuffer are overloaded and can also return a generic GraphicsBuffer.

Share this post


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

  • Advertisement