Get current line width in OpenTK

844 Views Asked by At

This might look a simple question but I searched everywhere and can't find how to get the current line width using OpenTK.

I know that GL.LineWidth(lw) will set the current line width.

I found an enum named All.LineWidth.

But I didn't find out how to use it...!

I'll continue looking but if someone can help me... please do!

1

There are 1 best solutions below

1
On BEST ANSWER

ouff! I found it!!!

float currentLineWidth = GL.GetFloat(GetPName.LineWidth);

As incredible as it may seam, I couldn't find this in the OpenTK doc...!

PS: please don't edit out my 'ouff', I like it... :-D

PS2: and don't give this answer negative points, I'm sure it will be useful to other people