home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / Gfx.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  1.4 KB  |  48 lines

  1. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  2. // Copyright (C) 1999-2003 Forgotten
  3. // Copyright (C) 2004 Forgotten and the VBA development team
  4.  
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation; either version 2, or(at your option)
  8. // any later version.
  9. //
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18.  
  19. #include "System.h"
  20.  
  21. int coeff[32] = {
  22.   0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  23.   16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16};
  24.  
  25.  
  26. u32 line0[240];
  27. u32 line1[240];
  28. u32 line2[240];
  29. u32 line3[240];
  30. u32 lineOBJ[240];
  31. u32 lineOBJWin[240];
  32. u32 lineMix[240];
  33. bool gfxInWin0[240];
  34. bool gfxInWin1[240];
  35.  
  36. int gfxBG2Changed = 0;
  37. int gfxBG3Changed = 0;
  38.  
  39. int gfxBG2X = 0;
  40. int gfxBG2Y = 0;
  41. int gfxBG2LastX = 0;
  42. int gfxBG2LastY = 0;
  43. int gfxBG3X = 0;
  44. int gfxBG3Y = 0;
  45. int gfxBG3LastX = 0;
  46. int gfxBG3LastY = 0;
  47. int gfxLastVCOUNT = 0;
  48.