Page 1 of 1

drawVertexPrimitiveList(...) and scene::EPT_QUADS

Posted: Thu Sep 27, 2007 6:21 pm
by 3p
Hello.
QUADS can be drawn only with OpenGL driver. I cheked D3D driver (cpp file) and EPT_QUADS is missing from switch statement. I gues it's not supposed to be so?
A note in documentation at least. I just spent few hours debugging "my" code. :shock: :lol:

Posted: Thu Sep 27, 2007 6:32 pm
by TomiZ
look at primitives supported by direct3d
http://msdn2.microsoft.com/en-us/library/bb172589.aspx

Code: Select all

typedef enum D3DPRIMITIVETYPE
{
    D3DPT_POINTLIST = 1,
    D3DPT_LINELIST = 2,
    D3DPT_LINESTRIP = 3,
    D3DPT_TRIANGLELIST = 4,
    D3DPT_TRIANGLESTRIP = 5,
    D3DPT_TRIANGLEFAN = 6,
    D3DPT_FORCE_DWORD = 0x7fffffff,
} D3DPRIMITIVETYPE, *LPD3DPRIMITIVETYPE;

Posted: Thu Sep 27, 2007 7:22 pm
by hybrid
Yes, not all primitives are supported, yet. This will change someday, but it won't be as fast as in OpenGL I suppose.