DirectXey-OOPey Question.......
Hi Everyone! Im trying to write a 2d enginey thing in DirectX 8 useing the ID3DXSPRITE interface. I was going to write a class to would the D3DXSprite object but am having trouble with the fact that I have to call its functions from a D3DDevice. I can''t think of a good way to have my image class interact the the D3DDevice. Could someone help?
P.S. or was that to vague? If so tell me.
------------------------------
"Whats This do?? Whats That do??"-GIR
(seemed appropriate some how.....)
-----------------------------
-----------------------------------------------------------PLEASE don't comment on the pointlessness of this post!!
Why not just pass in a pointer to the D3DDevice in your class constructor?
doh!! *Whacks self over head repetedly with large object* That would work.... (I didn''t think of that because...) Thanks!!
opps....
------------------------------
"Whats This do?? Whats That do??"-GIR
(seemed appropriate some how.....)
-----------------------------
opps....
------------------------------
"Whats This do?? Whats That do??"-GIR
(seemed appropriate some how.....)
-----------------------------
-----------------------------------------------------------PLEASE don't comment on the pointlessness of this post!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement