MythTV  master
Macros | Functions
drawmethods.h File Reference
#include "goomconfig.h"
#include "mmx.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()   {__asm__ __volatile__ ("emms");}
 
#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_NORMAL

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

Definition at line 6 of file drawmethods.h.

◆ DRAWMETHOD_PLUS

#define DRAWMETHOD_PLUS (   _out,
  _backbuf,
  _col 
)
Value:
{\
movd_m2r (_backbuf, mm0); \
paddusb_m2r (_col, mm0); \
movd_r2m (mm0, _out); \
}

Definition at line 11 of file drawmethods.h.

◆ DRAWMETHOD_OR

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

Definition at line 35 of file drawmethods.h.

◆ DRAWMETHOD_DONE

#define DRAWMETHOD_DONE ( )    {__asm__ __volatile__ ("emms");}

Definition at line 38 of file drawmethods.h.

◆ DRAWMETHOD

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

Definition at line 44 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 46 of file drawmethods.h.

Referenced by goom_lines_draw(), and grid3d_draw().