I'm using OpenTK, which is OpenGL in C# so any answer in opengl is satisfying for me...
I've got a 3D object, what i want to do is draw some lines (wireframe) and display only them (I know aobut GLPolygonMode - that's not what i want to do)
I've got my own Line - Drawing algorithm and by using it i want to draw wireframe and display it on the screen. After hours of digging the Internet I found out that i can do it by using backbuffer, but don't know excalty how... here's the sample of my drawing code I draw a pixel on a bitmap (that's not it :()
while (x != x2)
{
if (d >= 0)
{
x += xi;
y += yi;
d += ai;
}
else
{
d += bi;
x += xi;
}
bitmap.SetPixel(x, y, col);
}
Is there any way to draw on a buffer and then display it on the screen? Or is there any other way to do that?