~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/PCwin/mask.cpp

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* tv_screen_mask.c: allows drawing to take place through a clip mask */
  2 
  3 #include <stdio.h>
  4 
  5 #include <dibapi.h>
  6 
  7 #ifdef __cplusplus
  8 extern "C" {
  9 #endif  /* __cplusplus */
 10 #include <tina/sys.h>
 11 #include <tina/sysfuncs.h>
 12 #include <tina/math.h>
 13 #include <tina/tv.h>
 14 #include <tina/tv_screen.h>
 15 #ifdef __cplusplus
 16 }
 17 #endif  /* __cplusplus */
 18 
 19 extern void (*screen_text) (char *);
 20 #define Print(x)  if(screen_text!=NULL) screen_text(x)
 21 
 22 
 23 extern "C" void *tv_screen_mask_get(Tv_screen * screen, int lx, int ly, 
 24 int ux, int uy)
 25 {
 26     Tv_mask *mask = ts_ralloc(Tv_mask);
 27 
 28     mask->lx = lx;
 29     mask->ly = ly;
 30     mask->ux = ux;
 31     mask->uy = uy;
 32     Print("tv_screen_mask_get?");
 33     return ((void *) mask);
 34 }
 35 
 36 extern "C" void tv_screen_mask_use(Tv_screen * screen, Tv_mask * mask)
 37 {
 38     Print("tv_screen_mask_use?");
 39     if (mask == NULL)
 40     {
 41     }
 42 }
 43 
 44 extern "C" void tv_screen_mask_point(Tv_screen * screen, Tv_mask * mask, 
 45 Ipos pos, int bit)
 46 {
 47     int     x = ipos_x(pos) - mask->lx;
 48     int     y = ipos_y(pos) - mask->ly;
 49 
 50     Print("tv_screen_mask_point?");
 51 }
 52 
 53 extern "C" void tv_screen_mask_free(Tv_screen * screen, Tv_mask * mask)
 54 {
 55      Print("tv_screen_mask_free?");
 56 }
 57 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.