Robert <watki...@hotmail.com> spake the secret code
<2ca1d59d-7f59-4355...@a21g2000yqc.googlegroups.com> thusly:
>I am trying to derive a class from IdirectXFileData so that I can
>create an array of objects so that I can then save the objects as
>multi-materials.
I don't know why you're attempting to implement IDirectXFileData; you
do not need to do this.
To store custom data in a .x file, define a template for it and then
use the regular interfaces to read/write the contents of the template.
Furthermore, the IDirectXFile* interfaces are deprecated and you
should be using ID3DXFile* interfaces now.
For more about .x files, see Chapter 21 from my book "The Direct3D
Graphics Pipeline"
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>