/usr/include/tuxcap/DDImage.h is in libtuxcap-dev 1.4.0.dfsg2-2.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | #ifndef __DDIMAGE_H__
#define __DDIMAGE_H__
#include "MemoryImage.h"
#include "SDL.h"
namespace Sexy
{
class DDInterface;
#if 0
class SysFont;
#endif
class DDImage : public MemoryImage
{
protected:
#if 0
friend class SysFont;
#endif
void DeleteAllNonSurfaceData();
public:
DDInterface* mDDInterface;
SDL_Surface* mSurface;
#if 0
DDSURFACEDESC mLockedSurfaceDesc;
#endif
bool mSurfaceSet;
bool mNoLock;
bool mVideoMemory;
bool mFirstPixelTrans;
bool mWantDDSurface;
bool mDrawToBits;
int mLockCount;
private:
void Init();
public:
virtual void ReInit();
virtual void SetVideoMemory(bool wantVideoMemory);
SDL_Surface* GetSurface();
bool GenerateDDSurface();
void DeleteDDSurface();
#if 0
virtual void RehupFirstPixelTrans();
#endif
virtual void BitsChanged();
virtual void CommitBits();
virtual void NormalFillRect(const Rect& theRect, const Color& theColor);
virtual void AdditiveFillRect(const Rect& theRect, const Color& theColor);
virtual void NormalBlt(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor);
virtual void AdditiveBlt(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor);
virtual void NormalDrawLine(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor);
virtual void AdditiveDrawLine(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor);
virtual void NormalDrawLineAA(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor);
virtual void AdditiveDrawLineAA(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor);
virtual void NormalBltMirror(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor);
virtual void AdditiveBltMirror(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor);
virtual void FillScanLinesWithCoverage(Span* theSpans, int theSpanCount, const Color& theColor, int theDrawMode, const unsigned char* theCoverage, int theCoverX, int theCoverY, int theCoverWidth, int theCoverHeight);
static bool Check3D(DDImage *theImage);
static bool Check3D(Image *theImage);
public:
DDImage();
DDImage(DDInterface* theDDInterface);
virtual ~DDImage();
virtual bool LockSurface();
virtual bool UnlockSurface();
virtual void SetSurface(SDL_Surface* theSurface);
virtual void Create(int theWidth, int theHeight);
virtual uint32_t* GetBits();
virtual bool PolyFill3D(const Point theVertices[], int theNumVertices, const Rect *theClipRect, const Color &theColor, int theDrawMode, int tx, int ty, bool comvex);
virtual void FillRect(const Rect& theRect, const Color& theColor, int theDrawMode);
virtual void DrawLine(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor, int theDrawMode);
virtual void DrawLineAA(double theStartX, double theStartY, double theEndX, double theEndY, const Color& theColor, int theDrawMode);
virtual void Blt(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor, int theDrawMode);
virtual void BltF(Image* theImage, float theX, float theY, const Rect& theSrcRect, const Rect &theClipRect, const Color& theColor, int theDrawMode);
virtual void BltRotated(Image* theImage, float theX, float theY, const Rect &theSrcRect, const Rect& theClipRect, const Color& theColor, int theDrawMode, double theRot, float theRotCenterX, float theRotCenterY);
virtual void StretchBlt(Image* theImage, const Rect& theDestRect, const Rect& theSrcRect, const Rect& theClipRect, const Color& theColor, int theDrawMode, bool fastStretch);
virtual void BltMatrix(Image* theImage, float x, float y, const SexyMatrix3 &theMatrix, const Rect& theClipRect, const Color& theColor, int theDrawMode, const Rect &theSrcRect, bool blend);
virtual void BltTrianglesTex(Image *theTexture, const TriVertex theVertices[][3], int theNumTriangles, const Rect& theClipRect, const Color &theColor, int theDrawMode, float tx, float ty, bool blend);
virtual void BltMirror(Image* theImage, int theX, int theY, const Rect& theSrcRect, const Color& theColor, int theDrawMode);
virtual void StretchBltMirror(Image* theImage, const Rect& theDestRectOrig, const Rect& theSrcRect, const Rect& theClipRect, const Color& theColor, int theDrawMode, bool fastStretch);
virtual bool Palletize();
virtual void PurgeBits();
virtual void DeleteNativeData();
virtual void DeleteExtraBuffers();
};
}
#endif //__DDIMAGE_H__
|