Lines Matching refs:object

45 VGLSetXY(VGLBitmap *object, int x, int y, byte color)  in VGLSetXY()  argument
50 if (x>=0 && x<object->VXsize && y>=0 && y<object->VYsize) { in VGLSetXY()
52 switch (object->Type) { in VGLSetXY()
55 object->Bitmap[y*object->VXsize+x]=(color); in VGLSetXY()
58 object->Bitmap[VGLSetSegment(y*object->VXsize+x)]=(color); in VGLSetXY()
63 object->Bitmap[(unsigned)(VGLAdpInfo.va_line_width*y)+(x/4)] = (color); in VGLSetXY()
75 object->Bitmap[offset] |= color; in VGLSetXY()
83 VGLGetXY(VGLBitmap *object, int x, int y) in VGLGetXY() argument
93 if (x<0 || x>=object->VXsize || y<0 || y>=object->VYsize) in VGLGetXY()
95 switch (object->Type) { in VGLGetXY()
98 return object->Bitmap[((y*object->VXsize)+x)]; in VGLGetXY()
100 return object->Bitmap[VGLSetSegment(y*object->VXsize+x)]; in VGLGetXY()
103 return object->Bitmap[(unsigned)(VGLAdpInfo.va_line_width*y)+(x/4)]; in VGLGetXY()
111 return (object->Bitmap[offset]&(0x80>>(x%8))) ? 1 : 0; /* XXX */ in VGLGetXY()
117 color |= (object->Bitmap[offset] & mask) ? (1 << i) : 0; in VGLGetXY()
126 VGLLine(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) in VGLLine() argument
136 VGLSetXY(object, x, y, color); in VGLLine()
148 VGLSetXY(object, x, y, color); in VGLLine()
160 VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) in VGLBox() argument
162 VGLLine(object, x1, y1, x2, y1, color); in VGLBox()
163 VGLLine(object, x2, y1, x2, y2, color); in VGLBox()
164 VGLLine(object, x2, y2, x1, y2, color); in VGLBox()
165 VGLLine(object, x1, y2, x1, y1, color); in VGLBox()
169 VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) in VGLFilledBox() argument
173 for (y=y1; y<=y2; y++) VGLLine(object, x1, y, x2, y, color); in VGLFilledBox()
177 set4pixels(VGLBitmap *object, int x, int y, int xc, int yc, byte color) in set4pixels() argument
180 VGLSetXY(object, xc+x, yc+y, color); in set4pixels()
181 VGLSetXY(object, xc-x, yc+y, color); in set4pixels()
183 VGLSetXY(object, xc+x, yc-y, color); in set4pixels()
184 VGLSetXY(object, xc-x, yc-y, color); in set4pixels()
188 VGLSetXY(object, xc, yc+y, color); in set4pixels()
190 VGLSetXY(object, xc, yc-y, color); in set4pixels()
195 VGLEllipse(VGLBitmap *object, int xc, int yc, int a, int b, byte color) in VGLEllipse() argument
201 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
209 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
218 set2lines(VGLBitmap *object, int x, int y, int xc, int yc, byte color) in set2lines() argument
221 VGLLine(object, xc+x, yc+y, xc-x, yc+y, color); in set2lines()
223 VGLLine(object, xc+x, yc-y, xc-x, yc-y, color); in set2lines()
226 VGLLine(object, xc, yc+y, xc, yc-y, color); in set2lines()
231 VGLFilledEllipse(VGLBitmap *object, int xc, int yc, int a, int b, byte color) in VGLFilledEllipse() argument
237 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
245 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
254 VGLClear(VGLBitmap *object, byte color) in VGLClear() argument
260 VGLMouseFreeze(0, 0, object->Xsize, object->Ysize, color); in VGLClear()
261 switch (object->Type) { in VGLClear()
264 memset(object->Bitmap, color, object->VXsize*object->VYsize); in VGLClear()
268 for (offset = 0; offset < object->VXsize*object->VYsize; ) { in VGLClear()
270 len = min(object->VXsize*object->VYsize - offset, in VGLClear()
272 memset(object->Bitmap, color, len); in VGLClear()
281 memset(object->Bitmap, color, VGLAdpInfo.va_line_width*object->VYsize); in VGLClear()
291 for (offset = 0; offset < VGLAdpInfo.va_line_width*object->VYsize; ) { in VGLClear()
293 len = min(object->VXsize*object->VYsize - offset, in VGLClear()
295 memset(object->Bitmap, color, len); in VGLClear()