consoled.inc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Type
  2. VESAConsole = Class(TPTCBaseConsole)
  3. Private
  4. { internal console management routines }
  5. Procedure internal_pre_open_setup(Const _title : String);
  6. Procedure internal_open_fullscreen_start;
  7. Procedure internal_open_fullscreen(ModeNr : Integer);
  8. Procedure internal_open_fullscreen_finish(_pages : Integer);
  9. Procedure internal_post_open_setup;
  10. Procedure internal_reset;
  11. Procedure internal_close;
  12. { console debug checks }
  13. Procedure check_open;
  14. Procedure check_unlocked;
  15. { data }
  16. { m_modes : Array[0..255] Of TPTCMode;}
  17. m_modes : PPTCMode;
  18. m_modes_last : Integer;
  19. m_modes_n : PInteger;
  20. m_title : String;
  21. m_information : String;
  22. m_CurrentMode : Integer;
  23. m_VESACurrentMode : Integer;
  24. m_width, m_height, m_pitch, m_pages : Integer;
  25. m_primary : Pointer;
  26. { flags }
  27. m_open : Boolean;
  28. m_locked : Boolean;
  29. { option data }
  30. m_default_width : Integer;
  31. m_default_height : Integer;
  32. m_default_pages : Integer;
  33. m_default_format : TPTCFormat;
  34. { objects }
  35. m_copy : TPTCCopy;
  36. m_area : TPTCArea;
  37. m_clip : TPTCArea;
  38. m_format : TPTCFormat;
  39. m_clear : TPTCClear;
  40. m_palette : TPTCPalette;
  41. { Dos objects }
  42. { m_primary : TPTCSurface;}
  43. { DosKeyboard *m_keyboard;}
  44. m_keyboard : TDosKeyboard;
  45. { m_160x100buffer : TPTCSurface;}
  46. Protected
  47. Procedure internal_ReadKey(k : TPTCKey); Override;
  48. Function internal_PeekKey(k : TPTCKey) : Boolean; Override;
  49. Public
  50. Constructor Create;
  51. Destructor Destroy; Override;
  52. Procedure configure(Const _file : String); Override;
  53. Function option(Const _option : String) : Boolean; Override;
  54. Function modes : PPTCMode; Override;
  55. Procedure open(Const _title : String; _pages : Integer); Overload; Override;
  56. Procedure open(Const _title : String; Const _format : TPTCFormat;
  57. _pages : Integer); Overload; Override;
  58. Procedure open(Const _title : String; _width, _height : Integer;
  59. Const _format : TPTCFormat; _pages : Integer); Overload; Override;
  60. Procedure open(Const _title : String; Const _mode : TPTCMode;
  61. _pages : Integer); Overload; Override;
  62. Procedure close; Override;
  63. Procedure flush; Override;
  64. Procedure finish; Override;
  65. Procedure update; Override;
  66. Procedure update(Const _area : TPTCArea); Override;
  67. Procedure copy(Var surface : TPTCBaseSurface); Override;
  68. Procedure copy(Var surface : TPTCBaseSurface;
  69. Const source, destination : TPTCArea); Override;
  70. Function lock : Pointer; Override;
  71. Procedure unlock; Override;
  72. Procedure load(Const pixels : Pointer;
  73. _width, _height, _pitch : Integer;
  74. Const _format : TPTCFormat;
  75. Const _palette : TPTCPalette); Override;
  76. Procedure load(Const pixels : Pointer;
  77. _width, _height, _pitch : Integer;
  78. Const _format : TPTCFormat;
  79. Const _palette : TPTCPalette;
  80. Const source, destination : TPTCArea); Override;
  81. Procedure save(pixels : Pointer;
  82. _width, _height, _pitch : Integer;
  83. Const _format : TPTCFormat;
  84. Const _palette : TPTCPalette); Override;
  85. Procedure save(pixels : Pointer;
  86. _width, _height, _pitch : Integer;
  87. Const _format : TPTCFormat;
  88. Const _palette : TPTCPalette;
  89. Const source, destination : TPTCArea); Override;
  90. Procedure clear; Override;
  91. Procedure clear(Const color : TPTCColor); Override;
  92. Procedure clear(Const color : TPTCColor;
  93. Const _area : TPTCArea); Override;
  94. Procedure palette(Const _palette : TPTCPalette); Override;
  95. Function palette : TPTCPalette; Override;
  96. Procedure clip(Const _area : TPTCArea); Override;
  97. Function width : Integer; Override;
  98. Function height : Integer; Override;
  99. Function pitch : Integer; Override;
  100. Function pages : Integer; Override;
  101. Function area : TPTCArea; Override;
  102. Function clip : TPTCArea; Override;
  103. Function format : TPTCFormat; Override;
  104. Function name : String; Override;
  105. Function title : String; Override;
  106. Function information : String; Override;
  107. End;