Microsoft DirectX 8.1 (Visual Basic)

CONST_D3DCONST

Defines miscellaneous constants used by Microsoft® Direct3D®.

Enum CONST_D3DCONST
    D3D_OK                             =        0
    D3DADAPTER_DEFAULT                 =        0
    D3DCURSOR_IMMEDIATE_UPDATE         =        1
    D3DENUM_HOST_ADAPTER               =        1
    D3DPRESENTFLAG_LOCKABLE_BACKBUFFER =        1
    D3DPV_DONOTCOPYDATA                =        1
    D3DENUM_NO_WHQL_LEVEL              =        2
    D3DPRESENT_BACK_BUFFERS_MAX        =        3
    VALID_D3DENUM_FLAGS                =        3
    D3DMAXNUMPRIMITIVES                =    65535 (&HFFFF)
    D3DMAXNUMVERTICES                  =    65535 (&HFFFF)
    D3DCURRENT_DISPLAY_MODE            = 15728639 (&HEFFFFF)
End Enum

Constants

D3D_OK
Success code for compatibility with some methods that return error codes rather than setting Err.Number.
D3DADAPTER_DEFAULT
The primary display adapter.
D3DCURSOR_IMMEDIATE_UPDATE
Update cursor at the refresh rate.
D3DENUM_HOST_ADAPTER
Not documented for this release.
D3DPRESENTFLAG_LOCKABLE_BACKBUFFER
Set this flag if the application requires the ability to lock the back-buffer directly. Note that back buffers are not lockable unless the application specifies D3DPRESENTFLAG_LOCKABLE_BACKBUFFER at Direct3D8.CreateDevice and Direct3DDevice8.Reset time. Lockable back buffers incur a performance cost on some graphics hardware configurations.

Performing a lock operation (or using Direct3DDevice8.CopyRects to read/write) on the lockable back-buffer will decrease performance on many cards. In this case, you should consider using textured triangles to move data to the back buffer.

D3DPV_DONOTCOPYDATA
Prevents the system from copying vertex data not affected by the vertex operation into the destination buffer.
D3DENUM_NO_WHQL_LEVEL
Forces the WHQLLevel member of the D3DADAPTER_IDENTIFIER8 type to be zero, meaning that no information is returned for the WHQL certification date. Setting this flag will avoid the one or two second time penalty incurred to determine the WHQL certification date.
D3DPRESENT_BACK_BUFFERS_MAX
Maximum number of back-buffers supported.
VALID_D3DENUM_FLAGS
Not documented for this release.
D3DMAXNUMPRIMITIVES
Maximum number of primitives a user can pass to any Direct3D drawing method.
D3DMAXNUMVERTICES
Maximum number of vertices user can pass to any Direct3D drawing function or vertex buffer creation method.
D3DCURRENT_DISPLAY_MODE
Denotes the current desktop display mode on an adapter.

See Also

Direct3DDevice8.SetCursorPosition