Re: GetAnimationSet

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 1 Aug, 05:51, legalize+jee...@xxxxxxxxxxxxxxxxx (Richard [Microsoft
Direct3D MVP]) wrote:
[Please do not mail me a copy of your followup]

Robert <watkins...@xxxxxxxxxxx> spake the secret code
<66991025-b421-47c6-a6b7-bde57fbe9...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> thusly:

Does this syntax look Ok or is it 'On the wonk'?

ID3DXAnimationSet* animation_Ptr;

animation_Ptr = (ID3DXAnimationSet*)&pani;

This line does nothing.  animation_Ptr is going to be written over by
GetAnimationSet.

animator.ppAnimController->GetAnimationSet(0, &animation_Ptr );

--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>

I figured that after the original post and then removed the post.But
the question still remains.


If I use (syntax from memory)

LP3DXKeyFramededAnimationSet anim;

anim->Getanimationset(0, myanimationketset )

Then i get the error cannot convert from animationset to
keyframeanimationset;

The two objects being, interfaces, so I cannot change the cast.

(syntax from memory)

but something like

ID_3danimationset* set;


ID_3dkeyframeanimationset * mykeyframeset;

set->

and I kind of reach a dead end?

the strange thing is tha tLP3DXKeyFramededAnimationSet anim;

has the specifuc function ->Getanimationset(0, myanimationketset );

hmm, not quite sure where to go with this one?








.



Relevant Pages

  • Re: Using memory pool with operators new/delete
    ... pre-allocated memory pool that manages only blocks of the same size (the ... The call number works correctly (it allocates the memory and calls the ... can't be an ordinary function call but it also won't be called by the syntax ... Use of the delete keyword never calls operator delete with multiple ...
    (microsoft.public.vc.language)
  • Re: Re-Posting Data
    ... looping over the collection (warning: I'm coding from memory, syntax may ...
    (microsoft.public.inetserver.asp.general)
  • Re: Comparing pointers to NULL
    ... Had I designed the language from the beginning, I would have used the syntax ... of [pointer] for all pointer dereference. ... So if you think of 0 as being a reference to all of memory itself, ...
    (comp.lang.c)
  • Re: What are the domains that lisp doesnt fit int?
    ... Maybe "syntax" was the wrong word for Lisp. ... This pointer can then be ... used to access memory, ...
    (comp.lang.lisp)