PC Review


Reply
Thread Tools Rate Thread

How to implement affine transform stack

 
 
Siegfried Heintze
Guest
Posts: n/a
 
      25th Aug 2008
I think SetWorldTransform/GetWorldTransform/ModifyWorldTransform are the
functions I want. Does anyone have an example that implements a stack?

(1) I want to call SetWorldTransform in MM_ANISOTROPIC (why does not this
work?)

(2) Draw some rectangles.
(3) Call ModifyWorldTransfom to draw more rectangles inside the last
rectangle where the origin is now the upper left corner of the last rectangle.
(4) repeat step 3.
(5) Pop my stack back to the original origin.

How would I do this? Anyone got an example? Would I push a copy the entire
current transformation matrix on to a stack? I would I just push the changes
on to the stack and when I pop, compute the inverse matrix (ugh...) and
multiply that by the current matrix (ugh...) to get the original matrix...

Anyone got an example?

Thanks!
Siegfried


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"must implement" AND "cannot implement" estebistec@gmail.com Microsoft Dot NET Framework 0 8th Aug 2005 07:03 PM
stack frame stack trace Microsoft C# .NET 0 5th Mar 2004 12:19 AM
stack frame stack trace Microsoft C# .NET 0 5th Mar 2004 12:10 AM
XSL Transform Problem using Xml.XSL.Transform John Lehmann Microsoft Dot NET 2 22nd Sep 2003 11:09 PM
XSL transform Using XSL.Transform John Lehmann Microsoft Dot NET Framework Forms 1 21st Sep 2003 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 AM.