Skip to main content
gamedev.net
🔒 Locked

hardware vertex processing

Started by cyberg 0 replies 450+ views
Original Post
cyberg
cyberg
hello, i''m working with directx8 and i wonder if there is a way to detect if the graphics board support hardware vertex processing before initializing the device rather than trying to initialize the device with it and then if it dont work try with software... thanx cyberg
cyberg- cyberg_coder@hotmail.com- http://members.xoom.com/cybergsoft
LongingForDeath
LongingForDeath
Hi,

Write something like that:

  
D3DCAPS8 d3dCaps;

g_pD3D->GetDeviceCaps (nAdapter, D3DDEVTYPE_HAL, &d3dCaps);

if (d3dCaps.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT)
{
// You have hardware TnL support

// Create device now

}
visit DyingHour

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.