Professional Documents
Culture Documents
Hannu Järvinen
Kati Niiranen
2D API
Full screen /windowed mode
Direct manipulation of display memory
Not a high-level API for graphics
DirectX Graphics - Direct3D
3D API
First version with DirectX 2.0
Full screen /windowed mode
New versions support the latest
technology available on 3D graphics
cards
Competitor to OpenGL
Direct3D (DirectX 9.0) Code Sample
void loadTexture( void )
{
D3DXCreateTextureFromFile(
g_pd3dDevice, "woodfloor.bmp",
&g_pTexture );
g_pd3dDevice->SetSamplerState(0,
D3DSAMP_MINFILTER,
D3DTEXF_LINEAR);
g_pd3dDevice->SetSamplerState(0,
D3DSAMP_MAGFILTER,
D3DTEXF_LINEAR);
}