Skip to main content
gamedev.net
🔒 Locked

reinterpret_cast

Started by Lemmy Apr 14, 2002 at 4:23 PM 3 replies 550+ views
Original Post
Lemmy
Lemmy
What does it do ?
pBoneComb = reinterpret_cast!LPD3DXBONECOMBINATION! (pmcMesh->m_pBoneCombinationBuf->GetBufferPointer());
  
(I mean reinterpret_cast [edited by - Lemmy on April 14, 2002 5:27:14 PM]
Lemmy
Lemmy
Thanx, how can I put "<" ">" here ? (it dissapears due to html code
aftermath
aftermath
Well, it basicaly means that pBoneComb is type LPD3DXBONECOMBINATION (in some cases, the types are diferent)and the return value of GetBufferPointe() is not.
So it tells the compiler to:
1st step - turn the result of GetBufferPointer() into LPD3DXBONECOMBINATION
2nd step - set pBoneComb to that return value, eaven if pBoneComb is''nt of type LPD3DXBONECOMBINATION

[ my engine ][ my game ][ my email ]
SPAM
Rate me up.
Colin Jeanne
Colin Jeanne
&lt; and &gt; are what you need to use to make < and > respectively.

I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.