Skip to main content
gamedev.net
🔒 Locked

ID3DXMatrixStack help

Started by Unless_Dreamer 2 replies 1.1k views
Original Post
Unless_Dreamer
Unless_Dreamer
I'm having some problem understanding the ID3DXMatrixStack function in Directx9. I can't find any good documentation and samples on it. Can anyone try to explain it, provide a small sample or link me to a good site?
Evil Steve
Evil Steve
A matrix stack is just that, a stack of matrices, all multiplied together, similar to OpenGL's matrix stack.

What do you need help with?
Unless_Dreamer
Unless_Dreamer
How does the push function works? How does it now what matrix to push?
Evil Steve
Evil Steve
From the documentation:
Quote:
Remarks
This method increments the count of items on the stack by 1, duplicating the current matrix. The stack will grow dynamically as more items are added.

I.e. it pushes a copy of the current matrix (The one at the top of the stack).

Topic Locked

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

Sign in to reply to this topic.