SVGADEMO.H
上传用户:kammenn
上传日期:2007-06-26
资源大小:210k
文件大小:7k
源码类别:

GDI/图象编程

开发平台:

C/C++

  1. /****************************************************************************
  2.  
  3.   'SVGACC' A Super Vga Graphics Library for use with Microsoft and
  4.   Borland C/C++
  5.   Copyright 1993-1994 by Stephen L. Balkum and Daniel A. Sill
  6.   GIF and 'Graphics Intechange Format' are trademarks (tm) of
  7.   Compuserve, Incorporated, an H&R Block Company.
  8. **************** UNREGISTERD SHAREWARE VERSION ***********************
  9. * FOR EVUALATION ONLY. NOT FOR RESALE IN ANY FORM. SOFTWARE WRITTEN  *
  10. * USING THIS UNREGISTERED SHAREWARE GRAPHICS LIBRARY MAY NOT BY SOLD *
  11. * OR USED FOR ANY PURPOSE OTHER THAN THE EVUALTION OF THIS LIBRARY.  *
  12. **********************************************************************
  13. **************** NO WARRANTIES AND NO LIABILITY **********************
  14. * Stephen L. Balkum and Daniel A. Sill provide no warranties, either *
  15. * expressed or implied, of merchantability, or fitness, for a        *
  16. * particular use or purpose of this SOFTWARE and documentation.      *
  17. * In no event shall Stephen L. Balkum or Daniel A. Sill be held      *
  18. * liable for any damages resulting from the use or misuse of the     * 
  19. * SOFTWARE and documentation.                                        *
  20. **********************************************************************
  21. ************** U.S. GOVERNMENT RESTRICTED RIGHTS *********************
  22. * Use, duplication, or disclosure of the SOFTWARE and documentation  *
  23. * by the U.S. Government is subject to the restictions as set forth  *
  24. * in subparagraph (c)(1)(ii) of the Rights in Technical Data and     *
  25. * Computer Software cluse at DFARS 252.227-7013.                     *
  26. * Contractor/manufacturer is Stephen L. Balkum and Daniel A. Sill,   *
  27. * P.O. Box 7704, Austin, Texas 78713-7704                            *
  28. **********************************************************************
  29. **********************************************************************
  30. * By using this SOFTWARE or documentation, you agree to the above    *
  31. * terms and conditions.                                              *
  32. **********************************************************************
  33.  ***************************************************************************/
  34. #define TITLEN 85
  35. #ifdef MODULE
  36. extern endit;
  37. extern PaletteData orgpal, pal, pal2;
  38. extern MouseCursor magmousecursor;
  39. extern MouseCursor bigmousecursor;
  40. extern MouseCursor stwmousecursor;
  41. extern byte spritedata[];
  42. extern char getkey(void);
  43. extern void beep(void);
  44. #else
  45. int endit;
  46. PaletteData orgpal, pal, pal2;
  47. char getkey(void);
  48. void doall(void);
  49. void screenclear(void);
  50. void screengoto(int x, int y);
  51. void beep(void);
  52. extern char doblock(void);
  53. extern char doclip(void);
  54. extern char dofill(void);
  55. extern char dopal(void);
  56. extern char doprims(void);
  57. extern char doprims(void);
  58. extern char doscroll(void);
  59. extern char dotext(void);
  60. extern char do2d(void);
  61. extern char do3d(void);
  62. extern char domouse(void);
  63. extern char dojoystick(void);
  64. extern char dogif(void);
  65. /*MAGNIFIER MOUSE CURSOR DATA*/
  66. MouseCursor magmousecursor = {
  67. {7},{6},
  68. {255,255,255,255,255,7,7,7,7,255,255,255,255,255,255,255,
  69. 255,255,255,7,7,255,255,255,255,7,7,255,255,255,255,255,
  70. 255,255,7,255,255,255,255,255,255,255,255,7,255,255,255,255,
  71. 255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  72. 255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  73. 7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  74. 7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  75. 7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  76. 7,255,255,255,255,255,255,255,255,255,255,255,255,7,255,255,
  77. 255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  78. 255,7,255,255,255,255,255,255,255,255,255,255,7,255,255,255,
  79. 255,7,7,255,255,255,255,255,255,255,255,7,7,255,255,255,
  80. 255,255,7,7,7,255,255,255,255,7,7,7,255,255,255,255,
  81. 255,255,255,7,7,7,7,7,7,8,8,255,255,255,255,255,
  82. 255,255,255,255,255,7,7,7,7,7,8,8,255,255,255,255,
  83. 255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,255,
  84. 255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
  85. 255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,255,
  86. 255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
  87. 255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,255,
  88. 255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
  89. 255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,255,
  90. 255,255,255,255,255,255,255,255,255,255,255,255,255,7,8,8,
  91. 255,255,255,255,255,255,255,255,255,255,255,255,255,7,7,7}
  92. };
  93. /*BIG ARROW MOUSE CURSOR DATA*/
  94. MouseCursor bigmousecursor = {
  95. {1},{1},
  96. {0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,
  97. 0,15,15,0,0,255,255,255,255,255,255,255,255,255,255,255,
  98. 0,15,15,15,15,0,0,0,255,255,255,255,255,255,255,255,
  99. 0,15,15,15,15,15,15,15,0,0,255,255,255,255,255,255,
  100. 0,15,15,15,15,15,15,15,15,15,0,0,0,255,255,255,
  101. 0,15,15,15,15,15,15,15,15,15,15,15,15,0,0,255,
  102. 0,15,15,15,15,15,15,15,15,15,15,15,15,15,0,255,
  103. 0,15,15,15,15,15,15,15,15,15,15,15,0,0,255,255,
  104. 0,15,15,15,15,15,15,15,15,15,15,0,255,255,255,255,
  105. 0,15,15,15,15,15,15,15,15,0,0,255,255,255,255,255,
  106. 0,15,15,15,15,15,15,15,15,0,255,255,255,255,255,255,
  107. 0,15,15,15,15,15,0,15,15,15,0,255,255,255,255,255,
  108. 0,15,15,15,15,0,0,15,15,15,0,255,255,255,255,255,
  109. 0,15,15,0,0,255,255,0,15,15,15,0,255,255,255,255,
  110. 0,15,0,255,255,255,255,0,15,15,15,0,255,255,255,255,
  111. 0,0,255,255,255,255,255,255,0,15,15,15,0,255,255,255,
  112. 255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
  113. 255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,255,
  114. 255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,255,
  115. 255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
  116. 255,255,255,255,255,255,255,255,255,255,255,0,15,15,15,0,
  117. 255,255,255,255,255,255,255,255,255,255,255,255,0,15,15,0,
  118. 255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,
  119. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
  120. };
  121. /*STOP WATCH MOUSE CURSOR DATA*/
  122. MouseCursor stwmousecursor = {
  123. {8},{11},
  124. {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  125. 255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  126. 255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  127. 255,255,255,255,255,255,255,15,15,255,255,255,255,255,255,255,
  128. 255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  129. 255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
  130. 255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
  131. 255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
  132. 255,15,15,7,0,7,7,7,7,7,7,7,7,15,15,255,
  133. 255,15,7,7,7,0,7,7,7,7,7,7,7,7,15,255,
  134. 15,15,7,7,7,7,0,7,7,7,0,0,7,7,15,15,
  135. 15,7,7,7,7,7,7,0,0,0,7,7,7,7,7,15,
  136. 15,7,7,7,7,7,7,0,0,7,7,7,7,7,7,15,
  137. 15,15,7,7,7,7,7,7,7,7,7,7,7,7,15,15,
  138. 255,15,7,7,7,7,7,7,7,7,7,7,7,7,15,255,
  139. 255,15,15,7,7,7,7,7,7,7,7,7,7,15,15,255,
  140. 255,255,15,15,7,7,7,7,7,7,7,7,15,15,255,255,
  141. 255,255,255,15,15,7,7,7,7,7,7,15,15,255,255,255,
  142. 255,255,255,255,15,15,15,7,7,15,15,15,255,255,255,255,
  143. 255,255,255,255,255,255,15,15,15,15,255,255,255,255,255,255,
  144. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  145. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  146. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  147. 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}
  148. };
  149. #endif