Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

graphic16.cc File Reference

#include "swf.h"
#include "graphic16.h"

Include dependency graph for graphic16.cc:

Go to the source code of this file.

Defines

#define FULL_AA
#define PRINT   0
#define RED_MASK   0xF800
#define GREEN_MASK   0x07E0
#define BLUE_MASK   0x001F
#define PUTPIXEL()
#define DRAWLINE(dx, dy, inc_1, inc_2)
#define PUTPIXEL()
#define DRAWLINE(dx, dy, inc_1, inc_2)

Typedefs

typedef unsigned short TYPE

Functions

static unsigned long mix_alpha (unsigned long c1, unsigned long c2, int alpha)

Variables

unsigned char SQRT []


Define Documentation

#define BLUE_MASK   0x001F
 

Definition at line 79 of file graphic16.cc.

Referenced by mix_alpha().

#define DRAWLINE dx,
dy,
inc_1,
inc_2   ) 
 

Value:

n=dx;\
    a=2*dy-dx;\
    dy=2*dy;\
    dx=2*dx-dy;\
         do {\
      PUTPIXEL();\
                        if (a>0) { pp+=(inc_1); a-=dx; }\
                        else { pp+=(inc_2); a+=dy; }\
         } while (--n >= 0);

#define DRAWLINE dx,
dy,
inc_1,
inc_2   ) 
 

Value:

n=dx;\
    a=2*dy-dx;\
    dy=2*dy;\
    dx=2*dx-dy;\
         do {\
      PUTPIXEL();\
                        if (a>0) { pp+=(inc_1); a-=dx; }\
                        else { pp+=(inc_2); a+=dy; }\
         } while (--n >= 0);

Referenced by GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), GraphicDevice16::drawLine(), and MetalStyle::drawMetalButton().

#define FULL_AA
 

Definition at line 29 of file graphic16.cc.

#define GREEN_MASK   0x07E0
 

Definition at line 78 of file graphic16.cc.

Referenced by mix_alpha().

#define PRINT   0
 

Definition at line 31 of file graphic16.cc.

 
#define PUTPIXEL  ) 
 

Value:

{                                               \
      *pp=mix_alpha(*pp,color,alpha);           \
  }

 
#define PUTPIXEL  ) 
 

Value:

{                                               \
      *pp=color;                                \
  }

Referenced by GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), and GraphicDevice16::drawLine().

#define RED_MASK   0xF800
 

Definition at line 77 of file graphic16.cc.

Referenced by mix_alpha().


Typedef Documentation

typedef unsigned short TYPE
 

Definition at line 33 of file graphic16.cc.


Function Documentation

static unsigned long mix_alpha unsigned long  c1,
unsigned long  c2,
int  alpha
[inline, static]
 

Definition at line 83 of file graphic16.cc.

References BLUE_MASK, g, GREEN_MASK, and RED_MASK.

Referenced by GraphicDevice32::fillLine(), GraphicDevice24::fillLine(), GraphicDevice16::fillLine(), GraphicDevice32::fillLineAA(), GraphicDevice24::fillLineAA(), GraphicDevice16::fillLineAA(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), GraphicDevice16::fillLineBitmap(), GraphicDevice32::fillLineLG(), GraphicDevice24::fillLineLG(), GraphicDevice16::fillLineLG(), GraphicDevice32::fillLineRG(), GraphicDevice24::fillLineRG(), and GraphicDevice16::fillLineRG().


Variable Documentation

unsigned char SQRT[]
 

Definition at line 1 of file sqrt.cc.

Referenced by GraphicDevice32::fillLineRG(), GraphicDevice24::fillLineRG(), and GraphicDevice16::fillLineRG().


Generated on Sat Nov 5 16:23:48 2005 for OPIE by  doxygen 1.4.2