[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

IPTCConsole

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Console interface.

Declaration

Source position: baseconsoled.inc line 34

type IPTCConsole = interface(IPTCSurface)

  function GetPages;

  

  function GetName;

  

  function GetTitle;

  

  function GetInformation;

  

  function GetOpenGL_Enabled;

  

  procedure SetOpenGL_Enabled();

  

  function GetOpenGL_Attributes;

  

  procedure Configure();

  

Configures the console by reading option strings from a text file.

  function Modes;

  

  procedure Open();

  

  procedure Close;

  

Closes the console.

  procedure Flush;

  

  procedure Finish;

  

  procedure Update();

  

  function NextEvent();

  

Returns the next event from the event queue and removes it from the queue.

  function PeekEvent();

  

Returns the next event from the event queue, without removing it from the queue.

  function KeyPressed;

  

  function PeekKey();

  

  procedure ReadKey();

  

  procedure SetKeyReleaseEnabled();

  

  function GetKeyReleaseEnabled;

  

  property KeyReleaseEnabled: Boolean; [rw]

  

  property Pages: Integer; [r]

  

  property Name: String; [r]

  

  property Title: String; [r]

  

  property Information: String; [r]

  

  property OpenGL_Enabled: Boolean; [rw]

  

Enable or disable OpenGL.

  property OpenGL_Attributes: IPTCOpenGLAttributes; [r]

  

OpenGL attributes.

  procedure OpenGL_SwapBuffers;

  

Swap buffers in OpenGL double buffering mode.

  procedure OpenGL_SetSwapInterval();

  

Sets the OpenGL swap interval.

  function OpenGL_GetSwapInterval;

  

Gets the OpenGL swap interval.

end;

Inheritance

IPTCConsole

  

Console interface.

IPTCSurface

  

Surface interface.

Description

Console interface.

This class provides the interface for accessing the display frame buffer and basic keyboard and mouse routines. It extends the surface interface so that the display frame buffer memory may be accessed as a surface.