WWCharacter.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _WWCharacter_h_INCLUDED_
  2. #define _WWCharacter_h_INCLUDED_
  3. /*****************************************************************************/
  4. /* ここから */
  5. /*****************************************************************************/
  6. /*****************************************************************************/
  7. /* クラスの定義 */
  8. /*****************************************************************************/
  9. typedef struct _WWCharacter * WWCharacter;
  10. /*****************************************************************************/
  11. /* ヘッダファイルのインクルード */
  12. /*****************************************************************************/
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. /*****************************************************************************/
  16. /* メンバ関数の宣言 */
  17. /*****************************************************************************/
  18. int WWCharacter_GetNumber(WWCharacter c);
  19. int WWCharacter_SetNumber(WWCharacter c, int n);
  20. WWCharacter WWCharacter_Create(int number, unsigned char * bitmap);
  21. WWCharacter WWCharacter_Destroy(WWCharacter character);
  22. unsigned char * WWCharacter_GetBitmap(WWCharacter character);
  23. int WWCharacter_SetBitmap(WWCharacter character, unsigned char * bitmap);
  24. int WWCharacter_GetPixel(WWCharacter character, int x, int y);
  25. int WWCharacter_SetPixel(WWCharacter character, int x, int y, int pixel);
  26. int WWCharacter_CopyBitmap(WWCharacter dst, WWCharacter src);
  27. int WWCharacter_PrintData(WWCharacter character, FILE * f);
  28. /*****************************************************************************/
  29. /* ここまで */
  30. /*****************************************************************************/
  31. #endif
  32. /*****************************************************************************/
  33. /* End of File. */
  34. /*****************************************************************************/