*target = strdup(source);
}
-void glCompSelectionBox(glCompSet * s)
-{
- static GLfloat x, y, w, h;
-
- x = s->mouse.pos.x;
- y = s->mouse.pos.y;
- w = s->mouse.dragX;
- h = s->mouse.dragY;
- printf("%f %f %f %f \n", x, y, w, h);
- glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
-
- glBegin(GL_POLYGON);
- glVertex2f(0, 0);
- glVertex2f(250, 0);
- glVertex2f(250, 250);
- glVertex2f(0, 250);
- glVertex2f(0, 0);
-
- glEnd();
-
-
- glDisable(GL_LINE_STIPPLE);
-}
-
void glCompCalcWidget(glCompCommon * parent, glCompCommon * child,
glCompCommon * ref)
{
glCompColor * target);
extern void glCompSetColor(glCompColor * c);
- void glCompSelectionBox(glCompSet * s);
extern GLfloat distBetweenPts(glCompPoint A,glCompPoint B,float R);
extern int is_point_in_rectangle(float X, float Y, float RX, float RY, float RW,float RH);