Dashed line for gui
by Nathan Bowhay - ESAL · in Torque Game Engine Advanced · 05/14/2009 (2:03 pm) · 0 replies
I am trying to figure out how to render a dashed line in TGEA. I know in directX there is:
but I am not sure if I can just use this code and I would like to integrate it into drawUtil like GFXDrawUtil::drawRect. It seems in Torque they use rappers for stuff and I am not sure how to get that the base directX functions.
any help would be great.
ID3DXLine *line = NULL; D3DXCreateLine( d3dDevice, &line ); line->SetWidth( 10 ); line->SetPattern( 0xffffffff ); // --------- line->SetPattern( 0xff00ff00 ); // - - - - line->SetPattern( 0xffffff00 ); // --- ---
but I am not sure if I can just use this code and I would like to integrate it into drawUtil like GFXDrawUtil::drawRect. It seems in Torque they use rappers for stuff and I am not sure how to get that the base directX functions.
any help would be great.