Kappa
01-14-2010, 03:35 PM
Hi everybody,
this is my first post, even if I read in the forum for a while,
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... anyway
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]
this is my first post, even if I read in the forum for a while,
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... anyway
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]