~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/macosx/OSystemMACOSX.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Mario Iseli
  • Date: 2006-04-08 18:38:25 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060408183825-vu1jk57rk929derx
* New Maintainer (Closes: #361345)
* New upstream release (Closes: #349725)
* Build-Depend now on libslang2-dev (Closes: #325577)
* Complete rebuild of debian/, upgraded to policy-standards
  3.6.2 and compat-level 5.
* Removed stellarc since stella only reads ~/.stellarc and even
  works without a first config.
* New debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
//   SSSS    tt          lll  lll       
 
4
//  SS  SS   tt           ll   ll        
 
5
//  SS     tttttt  eeee   ll   ll   aaaa 
 
6
//   SSSS    tt   ee  ee  ll   ll      aa
 
7
//      SS   tt   eeeeee  ll   ll   aaaaa  --  "An Atari 2600 VCS Emulator"
 
8
//  SS  SS   tt   ee      ll   ll  aa  aa
 
9
//   SSSS     ttt  eeeee llll llll  aaaaa
 
10
//
 
11
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
12
//
 
13
// See the file "license" for information on usage and redistribution of
 
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
15
//
 
16
// $Id: OSystemMACOSX.hxx,v 1.4 2006/03/27 16:00:37 stephena Exp $
 
17
//============================================================================
 
18
 
 
19
#ifndef OSYSTEM_MACOSX_HXX
 
20
#define OSYSTEM_MACOSX_HXX
 
21
 
 
22
#include "bspf.hxx"
 
23
 
 
24
 
 
25
/**
 
26
  This class defines UNIX-like OS's (Linux) system specific settings.
 
27
 
 
28
  @author  Mark Grebe
 
29
  @version $Id: OSystemMACOSX.hxx,v 1.4 2006/03/27 16:00:37 stephena Exp $
 
30
*/
 
31
class OSystemMACOSX : public OSystem
 
32
{
 
33
  public:
 
34
    /**
 
35
      Create a new UNIX-specific operating system object
 
36
    */
 
37
    OSystemMACOSX();
 
38
 
 
39
    /**
 
40
      Destructor
 
41
    */
 
42
    virtual ~OSystemMACOSX();
 
43
 
 
44
  public:
 
45
    /**
 
46
      This method runs the main loop.  Since different platforms
 
47
      may use different timing methods and/or algorithms, this method has
 
48
      been abstracted to each platform.
 
49
    */
 
50
    virtual void mainLoop();
 
51
 
 
52
    /**
 
53
      This method returns number of ticks in microseconds.
 
54
 
 
55
      @return Current time in microseconds.
 
56
    */
 
57
    virtual uInt32 getTicks();
 
58
        
 
59
    /**
 
60
      This method queries the dimensions of the screen for this hardware.
 
61
    */
 
62
    virtual void getScreenDimensions(int& width, int& height);
 
63
    
 
64
    /**
 
65
      Informs the OSystem of a change in EventHandler state.
 
66
    */
 
67
    virtual void stateChanged(EventHandler::State state);
 
68
 
 
69
    /**
 
70
      Informs the OSystem of a change in pause status.
 
71
    */
 
72
    virtual void pauseChanged(bool status);
 
73
};
 
74
 
 
75
#endif