d3dx doesn't want to work
ah yes, you''ll need the complete platform sdk for the updated windows.h. just to be clear you don''t need the latest psdk for directx, you only need to get new psdk if you want to use the newer windows apis.
quote:Original post by error
Kylotan, you say your d3dx8math doesn''t include the code I pasted, what does yours say on line 259 and 241?
241: D3DXQUATERNION( CONST FLOAT * );
259: // binary operators
Why would a header file have code like those offsets in it anyway? It''s not even in my copy of d3dx8math.inl which contains inline functions. Admittedly I am using the 8.0 SDK so maybe 8.1 or whatever is very different, but it seems an odd thing to change.
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]
Kylotan: just checked the DX8.1 CD, yup it appears in that version of d3dx8math.h.
To put it into context which''ll make a LOT more sense I''ll post what its from:
To put it into context which''ll make a LOT more sense I''ll post what its from:
typedef struct _D3DXMATRIXA16 : public D3DXMATRIX{ [snip] void* operator new(size_t s) { LPBYTE p = ::new BYTE;<br> if (p)<br> {<br> BYTE offset = (BYTE)(16 - ((UINT_PTR)p & 15));<br> p += offset;<br> p[-1] = offset;<br> }<br> return p;<br> };<br> </pre> <br><br>i.e. an inline 16byte aligned allocator for the D3DXMATRIXA16 stuff (version of the standard matrix class which is aligned on 16byte boundaries to be more optimal for SSE and WLMT D3DX functions).<br><br>For modern DirectX code I''d definately suggest using at least MSVC 6, getting all the service packs, the processor pack AND the latest platform SDK.<br><br>Many of the new Windows pointer types which have mysteriously appeared are for 64bit Windows.<br><br>If including windows.h before d3d*.h and d3dx*.h doesn''t make that kind of code compile, it''s a good hint that its time to upgrade.<br> <br><br>–<br>Simon O''Connor<br>Creative Asylum Ltd<br><A HREF="http://www.creative-asylum.com">www.creative-asylum.com</A>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement