Jump to content

  • Log In with Google      Sign In   
  • Create Account

Incorrect documentation of UpdateSurface


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 MichaelNIII   Members   -  Reputation: 195

Like
0Likes
Like

Posted 10 February 2013 - 09:13 PM

On the MSDN I was looking for examples of how to draw one image onto another image (and then save the 3rd image for reuse later) for my GUI.

However I came across this example on MSDN and after looking up the UpdateSurface function and staring at it for the longest time.. I am thinking that this is incorrect documentation unless UpdateSurface has an undocumented overloaded function or I am missing something, I was wondering If anyone here could either confirm that this is an incorrect use of UpdateSurface, or perhaps link to an UpdateSurface documentation that allows and explains this behavior?

 

http://msdn.microsoft.com/en-us/library/windows/desktop/bb204857(v=vs.85).aspx

 


//The following assumptions are made:
// -d3dDevice is a valid Direct3DDevice9 object.
// -pSource and pDest are valid IDirect3DSurface9 pointers.

RECT  rcSource[] = {  0,  0,  50,  50,
                     50, 50, 100, 100 };
POINT ptDest[]   = {  0,  0, 150, 150 };

d3dDevice->UpdateSurface( pSource, rcSource, 2, pDest, ptDest);

 

 



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS