Game Development Community

GlLineWidth() with Direct X adapter

by Mark Kinkead · in Torque Game Builder · 06/07/2007 (10:04 am) · 2 replies

Was wanting to draw lines and set their widths using glLineWidth()

My distribution is 6 months old, but I still suspect this is the case.

in OpenGL2D3D.cc we have

GLAPI void GLAPIENTRY glLineWidth (GLfloat width)
{
width;
}


Are there any plans to ever have this do anything? Or is there a portability issue with DX that makes this too difficult to manage?


If its not going to happen, got any work around ideas?

#1
06/07/2007 (10:41 am)
There is no call in DirectX which really mimics the functionality of glLineWidth. I believe there is a D3DX function which can be used to do this, however it is part of the D3DX line drawing stuff.
#2
06/12/2007 (10:13 am)
I guess you can always draw lines by having a one pixel sprite and just rotate it and change it's width.