Lines Matching refs:object

94 VGLSetXY(VGLBitmap *object, int x, int y, u_long color)  in VGLSetXY()  argument
100 if (x>=0 && x<object->VXsize && y>=0 && y<object->VYsize) { in VGLSetXY()
102 switch (object->Type) { in VGLSetXY()
105 object->Bitmap[y*object->VXsize+x]=((byte)color); in VGLSetXY()
108 object->Bitmap[VGLSetSegment(y*object->VXsize+x)]=((byte)color); in VGLSetXY()
113 color2mem(color, b, object->PixelBytes); in VGLSetXY()
114 bcopy(b, &object->Bitmap[(y*object->VXsize+x) * object->PixelBytes], in VGLSetXY()
115 object->PixelBytes); in VGLSetXY()
120 color2mem(color, b, object->PixelBytes); in VGLSetXY()
121 offset = VGLSetSegment((y*object->VXsize+x) * object->PixelBytes); in VGLSetXY()
122 bcopy(b, &object->Bitmap[offset], object->PixelBytes); in VGLSetXY()
127 object->Bitmap[(unsigned)(VGLAdpInfo.va_line_width*y)+(x/4)] = ((byte)color); in VGLSetXY()
139 object->Bitmap[offset] |= (byte)color; in VGLSetXY()
147 VGLGetXY(VGLBitmap *object, int x, int y) in VGLGetXY() argument
158 if (x<0 || x>=object->VXsize || y<0 || y>=object->VYsize) in VGLGetXY()
160 switch (object->Type) { in VGLGetXY()
163 return object->Bitmap[((y*object->VXsize)+x)]; in VGLGetXY()
165 return object->Bitmap[VGLSetSegment(y*object->VXsize+x)]; in VGLGetXY()
169 bcopy(&object->Bitmap[(y*object->VXsize+x) * object->PixelBytes], in VGLGetXY()
170 b, object->PixelBytes); in VGLGetXY()
171 return (mem2color(b, object->PixelBytes)); in VGLGetXY()
175 offset = VGLSetSegment((y*object->VXsize+x) * object->PixelBytes); in VGLGetXY()
176 bcopy(&object->Bitmap[offset], b, object->PixelBytes); in VGLGetXY()
178 return (mem2color(b, object->PixelBytes)); in VGLGetXY()
181 return object->Bitmap[(unsigned)(VGLAdpInfo.va_line_width*y)+(x/4)]; in VGLGetXY()
189 return (object->Bitmap[offset]&(0x80>>(x%8))) ? 1 : 0; /* XXX */ in VGLGetXY()
195 color |= (object->Bitmap[offset] & mask) ? (1 << i) : 0; in VGLGetXY()
212 plot(VGLBitmap * object, int x, int y, int flag, byte color) in plot() argument
216 VGLSetXY(object, y, x, color); in plot()
218 VGLSetXY(object, x, y, color); in plot()
223 VGLLine(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLLine() argument
263 plot(object, x, y, reverse, color); in VGLLine()
267 plot(object, x1, y1, reverse, color); /* plot first two points */ in VGLLine()
279 plot(object, x, y, reverse, color); in VGLLine()
280 plot(object, ++x, y, reverse, color); in VGLLine()
282 plot(object, x1, y1, reverse, color); in VGLLine()
283 plot(object, --x1, y1, reverse, color); in VGLLine()
288 plot(object, x, y, reverse, color); in VGLLine()
289 plot(object, ++x, y += step, reverse, in VGLLine()
292 plot(object, x1, y1, reverse, color); in VGLLine()
293 plot(object, --x1, y1 -= step, reverse, in VGLLine()
297 plot(object, x, y += step, reverse, color); in VGLLine()
298 plot(object, ++x, y, reverse, color); in VGLLine()
300 plot(object, x1, y1 -= step, reverse, in VGLLine()
302 plot(object, --x1, y1, reverse, color); in VGLLine()
311 plot(object, ++x, y, reverse, color); /* pattern 1 */ in VGLLine()
313 plot(object, ++x, y, reverse, color); in VGLLine()
315 plot(object, --x1, y1, reverse, color); in VGLLine()
318 plot(object, ++x, y, reverse, color); /* pattern 2 */ in VGLLine()
320 plot(object, ++x, y += step, reverse, color); in VGLLine()
322 plot(object, --x1, y1, reverse, color); in VGLLine()
325 plot(object, ++x, y += step, reverse, color); in VGLLine()
327 plot(object, ++x, y, reverse, color); in VGLLine()
329 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
344 plot(object, x, y += step, reverse, color); in VGLLine()
345 plot(object, ++x, y += step, reverse, color); in VGLLine()
347 plot(object, x1, y1 -= step, reverse, color); in VGLLine()
348 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
353 plot(object, x, y, reverse, color); in VGLLine()
354 plot(object, ++x, y += step, reverse, in VGLLine()
358 plot(object, x1, y1, reverse, color); in VGLLine()
359 plot(object, --x1, y1 -= step, reverse, in VGLLine()
363 plot(object, x, y += step, reverse, color); in VGLLine()
364 plot(object, ++x, y, reverse, color); in VGLLine()
366 plot(object, x1, y1 -= step, reverse, color); in VGLLine()
367 plot(object, --x1, y1, reverse, color); in VGLLine()
375 plot(object, ++x, y += step, reverse, color); /* pattern 4 */ in VGLLine()
377 plot(object, ++x, y += step, reverse, in VGLLine()
380 plot(object, --x1, y1 -= step, reverse, in VGLLine()
384 plot(object, ++x, y, reverse, color); /* pattern 2 */ in VGLLine()
386 plot(object, ++x, y += step, reverse, color); in VGLLine()
388 plot(object, --x1, y1, reverse, color); in VGLLine()
391 plot(object, ++x, y += step, reverse, color); in VGLLine()
393 plot(object, ++x, y, reverse, color); in VGLLine()
396 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
398 plot(object, --x1, y1, reverse, color); in VGLLine()
407 VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLBox() argument
409 VGLLine(object, x1, y1, x2, y1, color); in VGLBox()
410 VGLLine(object, x2, y1, x2, y2, color); in VGLBox()
411 VGLLine(object, x2, y2, x1, y2, color); in VGLBox()
412 VGLLine(object, x1, y2, x1, y1, color); in VGLBox()
416 VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLFilledBox() argument
420 for (y=y1; y<=y2; y++) VGLLine(object, x1, y, x2, y, color); in VGLFilledBox()
424 set4pixels(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) in set4pixels() argument
427 VGLSetXY(object, xc+x, yc+y, color); in set4pixels()
428 VGLSetXY(object, xc-x, yc+y, color); in set4pixels()
430 VGLSetXY(object, xc+x, yc-y, color); in set4pixels()
431 VGLSetXY(object, xc-x, yc-y, color); in set4pixels()
435 VGLSetXY(object, xc, yc+y, color); in set4pixels()
437 VGLSetXY(object, xc, yc-y, color); in set4pixels()
442 VGLEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) in VGLEllipse() argument
448 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
456 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
465 set2lines(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) in set2lines() argument
468 VGLLine(object, xc+x, yc+y, xc-x, yc+y, color); in set2lines()
470 VGLLine(object, xc+x, yc-y, xc-x, yc-y, color); in set2lines()
473 VGLLine(object, xc, yc+y, xc, yc-y, color); in set2lines()
478 VGLFilledEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) in VGLFilledEllipse() argument
484 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
492 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
501 VGLClear(VGLBitmap *object, u_long color) in VGLClear() argument
509 VGLMouseFreeze(0, 0, object->Xsize, object->Ysize, color); /* XXX */ in VGLClear()
510 switch (object->Type) { in VGLClear()
513 memset(object->Bitmap, (byte)color, object->VXsize*object->VYsize); in VGLClear()
517 for (offset = 0; offset < object->VXsize*object->VYsize; ) { in VGLClear()
519 len = min(object->VXsize*object->VYsize - offset, in VGLClear()
521 memset(object->Bitmap, (byte)color, len); in VGLClear()
528 color2mem(color, b, object->PixelBytes); in VGLClear()
529 total = object->VXsize*object->VYsize*object->PixelBytes; in VGLClear()
530 for (i = 0; i < total; i += object->PixelBytes) in VGLClear()
531 bcopy(b, object->Bitmap + i, object->PixelBytes); in VGLClear()
537 color2mem(color, b, object->PixelBytes); in VGLClear()
538 total = object->VXsize*object->VYsize*object->PixelBytes; in VGLClear()
542 for (i = 0; i < len; i += object->PixelBytes) in VGLClear()
543 bcopy(b, object->Bitmap + offset + i, object->PixelBytes); in VGLClear()
552 memset(object->Bitmap, (byte)color, VGLAdpInfo.va_line_width*object->VYsize); in VGLClear()
562 for (offset = 0; offset < VGLAdpInfo.va_line_width*object->VYsize; ) { in VGLClear()
564 len = min(object->VXsize*object->VYsize - offset, in VGLClear()
566 memset(object->Bitmap, (byte)color, len); in VGLClear()