Skull
06-11-2008, 01:13 PM
were to paste this code for background for ur d3d?
because i tryed to past in :
d3d8dev.cpp
main.cpp
but it gives error.
but were to add and how to add?
///heres how to do a gui box with a border
D3DRECT HUDRect1 = {345.0f, 310.0f, 680.0f, 500.0f};
m_pD3Ddev->Clear( 1, &HUDRect3, D3DCLEAR_TARGET, txtblack, 0, 0 );
D3DRECT HUDRect2 = {350.0f, 315.0f, 675.0f, 495.0f};
m_pD3Ddev->Clear( 1, &HUDRect4, D3DCLEAR_TARGET, txtgray, 0, 0 );
////the first one is your border then you draw the second one to fill the inside of your border.
////the cord's. are x, y, width, height
because i tryed to past in :
d3d8dev.cpp
main.cpp
but it gives error.
but were to add and how to add?
///heres how to do a gui box with a border
D3DRECT HUDRect1 = {345.0f, 310.0f, 680.0f, 500.0f};
m_pD3Ddev->Clear( 1, &HUDRect3, D3DCLEAR_TARGET, txtblack, 0, 0 );
D3DRECT HUDRect2 = {350.0f, 315.0f, 675.0f, 495.0f};
m_pD3Ddev->Clear( 1, &HUDRect4, D3DCLEAR_TARGET, txtgray, 0, 0 );
////the first one is your border then you draw the second one to fill the inside of your border.
////the cord's. are x, y, width, height