Hi guys + newbie issue with dragging 2d points in OpenGL

Hi everybody,
this is my first post, even if I read a lot in this great forum, so thank you ;)

I'm a webdeveloper, but I'm studing the OpenGL libraries for a school project,
I'm really a newbie, so this problem could sounds stupid to you...
but I would like to istance some point in a 2D canvas and then I would like
to be able to move them by click, drag and release, you know...

This is how I manage the points know, just hardcoded values,
and then I use them to generate a spline, but this is another story.. so please, help :)

[code]
GLfloat ctrlpoints[4][3] = {
{0.0,0.0,0.0},
{100.0,400.0,0.0},
{300.0,0.0,0.0},
{400.0,400.0,0.0} };
[/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories