~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/common/FrameBufferSoft.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: FrameBufferSoft.hxx 2318 2011-12-31 21:56:36Z stephena $
 
17
// $Id: FrameBufferSoft.hxx 2456 2012-05-06 17:45:48Z stephena $
18
18
//============================================================================
19
19
 
20
20
#ifndef FRAMEBUFFER_SOFT_HXX
33
33
  This class implements an SDL software framebuffer.
34
34
 
35
35
  @author  Stephen Anthony
36
 
  @version $Id: FrameBufferSoft.hxx 2318 2011-12-31 21:56:36Z stephena $
 
36
  @version $Id: FrameBufferSoft.hxx 2456 2012-05-06 17:45:48Z stephena $
37
37
*/
38
38
class FrameBufferSoft : public FrameBuffer
39
39
{
150
150
    string about() const;
151
151
 
152
152
  private:
 
153
    int myZoomLevel;
153
154
    int myBytesPerPixel;
154
155
    int myBaseOffset;
155
156
    int myPitch;
179
180
  A surface suitable for software rendering mode.
180
181
 
181
182
  @author  Stephen Anthony
182
 
  @version $Id: FrameBufferSoft.hxx 2318 2011-12-31 21:56:36Z stephena $
 
183
  @version $Id: FrameBufferSoft.hxx 2456 2012-05-06 17:45:48Z stephena $
183
184
*/
184
185
class FBSurfaceSoft : public FBSurface
185
186
{
191
192
    void hLine(uInt32 x, uInt32 y, uInt32 x2, uInt32 color);
192
193
    void vLine(uInt32 x, uInt32 y, uInt32 y2, uInt32 color);
193
194
    void fillRect(uInt32 x, uInt32 y, uInt32 w, uInt32 h, uInt32 color);
194
 
    void drawChar(const GUI::Font* font, uInt8 c, uInt32 x, uInt32 y, uInt32 color);
 
195
    void drawChar(const GUI::Font& font, uInt8 c, uInt32 x, uInt32 y, uInt32 color);
195
196
    void drawBitmap(uInt32* bitmap, uInt32 x, uInt32 y, uInt32 color, uInt32 h = 8);
196
197
    void drawPixels(uInt32* data, uInt32 x, uInt32 y, uInt32 numpixels);
197
198
    void drawSurface(const FBSurface* surface, uInt32 x, uInt32 y);