MythTV master
Macros | Functions
drawmethods.h File Reference
#include "goomconfig.h"
#include "libmythbase/mythconfig.h"
Include dependency graph for drawmethods.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DRAWMETHOD_NORMAL(adr, col)   {*(adr) = (col);}
 
#define DRAWMETHOD_PLUS(_out, _backbuf, _col)
 
#define DRAWMETHOD_OR(adr, col)   {*(adr)|=(col);}
 
#define DRAWMETHOD_DONE()   {}
 
#define DRAWMETHOD   DRAWMETHOD_PLUS(*p,*p,col)
 

Functions

static void draw_line (int *data, int x1, int y1, int x2, int y2, int col, int screenx, int screeny)
 

Macro Definition Documentation

◆ DRAWMETHOD

#define DRAWMETHOD   DRAWMETHOD_PLUS(*p,*p,col)

Definition at line 45 of file drawmethods.h.

◆ DRAWMETHOD_DONE

#define DRAWMETHOD_DONE ( )    {}

Definition at line 41 of file drawmethods.h.

◆ DRAWMETHOD_NORMAL

#define DRAWMETHOD_NORMAL (   adr,
  col 
)    {*(adr) = (col);}

Definition at line 7 of file drawmethods.h.

◆ DRAWMETHOD_OR

#define DRAWMETHOD_OR (   adr,
  col 
)    {*(adr)|=(col);}

Definition at line 36 of file drawmethods.h.

◆ DRAWMETHOD_PLUS

#define DRAWMETHOD_PLUS (   _out,
  _backbuf,
  _col 
)
Value:
{\
int tra=0,i=0;\
unsigned char *bra = (unsigned char*)&(_backbuf);\
unsigned char *dra = (unsigned char*)&(_out);\
unsigned char *cra = (unsigned char*)&(_col);\
for (;i<4;i++) {\
tra = *cra;\
tra += *bra;\
if (tra>255) tra=255;\
*dra = tra;\
++dra;++cra;++bra;\
}\
}

Definition at line 20 of file drawmethods.h.

Function Documentation

◆ draw_line()

static void draw_line ( int *  data,
int  x1,
int  y1,
int  x2,
int  y2,
int  col,
int  screenx,
int  screeny 
)
static

Definition at line 47 of file drawmethods.h.

Referenced by goom_lines_draw(), and grid3d_draw().