drawVertexPrimitiveList(...) and scene::EPT_QUADS

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
3p
Posts: 8
Joined: Thu Sep 27, 2007 6:12 pm

drawVertexPrimitiveList(...) and scene::EPT_QUADS

Post 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:
TomiZ
Posts: 40
Joined: Wed Aug 29, 2007 6:02 am
Location: Poland
Contact:

Post 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;
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
Post Reply