Bringing apdf from vendor into main branch.
[AROS-Contrib.git] / apdf / server / rasterize_32.cc
bloba3c81d545efe088912554f10eda40ea644e3e493
1 //========================================================================
2 //
3 // rasterize_32.cc
4 //
5 // Copyright 2000-2001 Emmanuel Lesueur
6 //
7 //========================================================================
9 #include "rasterize.h"
11 typedef unsigned short Gushort;
13 void fill(ABitmap& bm, int x0, int y0, region* area, Gulong color) {
14 _fill(bm, x0, y0, area, color);
17 void AAfill(ABitmap& bm, int x0, int y0, region* area,
18 Gulong c1, Gulong c2, Gulong c3, Gulong c4) {
19 _AAfill(bm, x0, y0, area, c1, c2, c3, c4);
22 void rectfill(ABitmap& bm, int x0, int y0, int w, int h, Gulong color) {
23 _rectfill(bm, x0, y0, w, h, color);
26 void clippedHLine(ABitmap& bm, int y, int x1, int x2, Gulong color, DashState& ds) {
27 _clippedHLine(bm, y, x1, x2, color, ds);
30 void clippedVLine(ABitmap& bm, int x, int y1, int y2, Gulong color, DashState& ds) {
31 _clippedVLine(bm, x, y1, y2, color, ds);
34 void clippedLine(ABitmap& bm, fractpel x1, fractpel y1, fractpel x2, fractpel y2, Gulong color, DashState& ds) {
35 _clippedLine(bm, x1, y1, x2, y2, color, ds);
38 void clippedCopy(ABitmap& bm1, ABitmap& bm2, region* area) {
39 _clippedCopy<4>(bm1, bm2, area);
42 void drawPicLine(AOutputDev::DrawPicParams& params, int y, int x1, int x2,
43 int xp1, int yp1, int xp2, int yp2) {
44 _drawPicLine<Gulong>(params, y, x1, x2, xp1, yp1, xp2, yp2);
47 void (*funcTable[])() = {
48 (void (*)())fill, (void (*)())AAfill, (void (*)())rectfill,
49 (void (*)())clippedHLine, (void (*)())clippedVLine, (void (*)())clippedLine,
50 (void (*)())clippedCopy, (void (*)())drawPicLine,
51 NULL, NULL, NULL, NULL, NULL, NULL
54 #ifdef __PPC__
55 static const char verstring[]="$VER:ApdfGfx32_" PROC ".module 1.0 (27.12.2000)";
56 #else
57 extern const char LibName[];
58 extern const char LibId[];
59 const char LibName[]="ApdfGfx32_" PROC ".module";
60 const char LibId[]="ApdfGfx32_" PROC ".module 1.0 (27.12.2000)";
61 #endif