p = NEW(glCompImage);
glCompInitCommon((glCompObj *) p, par, x, y);
p->objType = glImageObj;
- //typedef enum {glPanelObj,glbuttonObj,glLabelObj,glImageObj}glObjType;
p->objType = glImageObj;
p->stretch = 0;
-#if 0
- p->pngFile = (char *) 0;
-#endif
p->texture = NULL;
p->common.functions.draw = glCompImageDraw;
return p;
void glCompImageDelete(glCompImage * p)
{
glCompEmptyCommon(&p->common);
-#if 0
- if (p->pngFile)
- free(p->pngFile);
-#endif
if (p->texture)
glCompDeleteTexture(p->texture);
free(p);
return glCompImageLoad(i, data, imageWidth, imageHeight,is2D);
}
-#if 0
-int glCompImageLoadRaw(glCompSet * s, glCompImage * i, char *rawFile,int is2D)
-{
- int imageWidth, imageHeight;
- unsigned char *data;
- data = glCompLoadPng (rawFile, &imageWidth, &imageHeight);
- return glCompImageLoad(i, data, imageWidth, imageHeight,is2D);
-}
-#endif
-
void glCompImageDraw(void *obj)
{
glCompImage *p = (glCompImage *) obj;
}
else
{
-#if 0
- w=ref.width;
- h=ref.height;
-#endif
w = p->width;
h = p->height;
d=(GLfloat)p->common.layer* (GLfloat)GLCOMPSET_BEVEL_DIFF;