Now, here's my problem:
I set up a basic material for drawing 3D lines, which also changes the SMaterial value for Thickness. This works fine for 3D lines, but curiously enough doesn't seem to affect 2D lines..?
Some code:
Code: Select all
/* initial setup */
// basic material (no lighting, thick lines/points)
irr_ctrl.base_mat.setFlag(video::EMF_LIGHTING, false);
irr_ctrl.base_mat.Thickness = 3.0;
/* render loop */
irr_ctrl->driver->setMaterial(irr_ctrl->base_mat);
irr_ctrl->driver->draw2DLine( <start>, <end>, SColor(255,255,0,0) );
*edit: I'm running under OpenGL, since the 3D line thickness seemed to have problems under D3D (don't know whether this still is true).