C# Class NScumm.Scumm.Graphics.Gdi

Afficher le fichier Open project: scemino/nscumm Class Usage Examples

Méthodes publiques

Свойство Type Description
NumStrips int
NumZBuffer int

Protected Properties

Свойство Type Description
_objectMode bool
_vm ScummEngine

Méthodes publiques

Méthode Description
Blit ( PixelNavigator dst, PixelNavigator src, int width, int height ) : void
ClearGfxUsageBit ( int strip, int bit ) : void
ClearGfxUsageBits ( ) : void
ClearMaskBuffer ( int i ) : void
Create ( ScummEngine vm, GameInfo game ) : Gdi
DrawBitmap ( ImageData img, VirtScreen vs, System.Point p, int width, int height, int stripnr, int numstrip, int roomWidth, DrawBitmaps flags, bool isLightOn ) : void
DrawBitmap ( ImageData img, VirtScreen vs, int x, int y, int width, int height, int stripnr, int numstrip, int roomWidth, DrawBitmaps flags ) : void
DrawStripBasicH ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
DrawStripBasicV ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
DrawStripComplex ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
DrawStripEGA ( PixelNavigator navDst, BinaryReader src, int height ) : void
DrawStripRaw ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
Fill ( PixelNavigator dst, byte color, int width, int height ) : void
Fill ( PixelNavigator dst, ushort color, int width, int height ) : void
Fill ( Surface surface, Rect r, int color ) : void
Fill ( byte dst, int dstPitch, byte color, int w, int h ) : void
Gdi ( ScummEngine vm, GameInfo game ) : System
GetMaskBuffer ( int x, int y, int i ) : PixelNavigator
Init ( ) : void
ResetBackground ( int top, int bottom, int strip ) : void
RoomChanged ( Room room ) : void
SaveOrLoad ( Serializer serializer ) : void
SetGfxUsageBit ( int strip, int bit ) : void
SetMaskHeight ( int height ) : void
TestGfxAnyUsageBits ( int strip ) : bool
TestGfxOtherUsageBits ( int strip, int bit ) : bool
TestGfxUsageBit ( int strip, int bit ) : bool
UnkDecode10 ( PixelNavigator navDst, BinaryReader src, int height ) : void
UnkDecode11 ( PixelNavigator navDst, BinaryReader src, int height ) : void
UnkDecode8 ( PixelNavigator navDst, BinaryReader src, int height ) : void
UnkDecode9 ( PixelNavigator navDst, BinaryReader src, int height ) : void
WriteRoomColor ( PixelNavigator navDst, int color ) : void

Méthodes protégées

Méthode Description
DecodeMask ( int x, int y, int width, int height, int stripnr, IList zPlanes, bool transpStrip, DrawBitmaps flags ) : void
DrawStrip ( PixelNavigator navDst, int width, int height, int stripnr, BinaryReader smapReader ) : bool
PrepareDrawBitmap ( ImageData img, VirtScreen vs, System.Point p, int width, int height, int stripnr, int numstrip ) : void

Private Methods

Méthode Description
Clear8Col ( PixelNavigator nav, int height ) : void
Copy8Col ( PixelNavigator navDst, PixelNavigator navSource, int height ) : void
DecompressBitmap ( PixelNavigator navDst, BinaryReader src, int numLinesToProcess ) : bool
DecompressMaskImg ( PixelNavigator dst, Stream src, int height ) : void
DecompressMaskImgOr ( PixelNavigator dst, Stream src, int height ) : void
FillBits ( byte &cl, uint &bits, BinaryReader src ) : void
NextRow ( PixelNavigator &navDst, int &x, int &y, int height ) : bool
ReadBit ( byte &cl, uint &bits ) : bool
ReadBit256 ( BinaryReader src, int &mask, int &buffer ) : bool
ReadNBits ( BinaryReader src, int n, int &mask, int &buffer ) : int

Method Details

Blit() public static méthode

public static Blit ( PixelNavigator dst, PixelNavigator src, int width, int height ) : void
dst PixelNavigator
src PixelNavigator
width int
height int
Résultat void

ClearGfxUsageBit() public méthode

public ClearGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
Résultat void

ClearGfxUsageBits() public méthode

public ClearGfxUsageBits ( ) : void
Résultat void

ClearMaskBuffer() public méthode

public ClearMaskBuffer ( int i ) : void
i int
Résultat void

Create() public static méthode

public static Create ( ScummEngine vm, GameInfo game ) : Gdi
vm ScummEngine
game NScumm.Scumm.IO.GameInfo
Résultat Gdi

DecodeMask() protected méthode

protected DecodeMask ( int x, int y, int width, int height, int stripnr, IList zPlanes, bool transpStrip, DrawBitmaps flags ) : void
x int
y int
width int
height int
stripnr int
zPlanes IList
transpStrip bool
flags DrawBitmaps
Résultat void

DrawBitmap() public méthode

public DrawBitmap ( ImageData img, VirtScreen vs, System.Point p, int width, int height, int stripnr, int numstrip, int roomWidth, DrawBitmaps flags, bool isLightOn ) : void
img ImageData
vs VirtScreen
p System.Point
width int
height int
stripnr int
numstrip int
roomWidth int
flags DrawBitmaps
isLightOn bool
Résultat void

DrawBitmap() public méthode

public DrawBitmap ( ImageData img, VirtScreen vs, int x, int y, int width, int height, int stripnr, int numstrip, int roomWidth, DrawBitmaps flags ) : void
img ImageData
vs VirtScreen
x int
y int
width int
height int
stripnr int
numstrip int
roomWidth int
flags DrawBitmaps
Résultat void

DrawStrip() protected méthode

protected DrawStrip ( PixelNavigator navDst, int width, int height, int stripnr, BinaryReader smapReader ) : bool
navDst PixelNavigator
width int
height int
stripnr int
smapReader System.IO.BinaryReader
Résultat bool

DrawStripBasicH() public méthode

public DrawStripBasicH ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Résultat void

DrawStripBasicV() public méthode

public DrawStripBasicV ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Résultat void

DrawStripComplex() public méthode

public DrawStripComplex ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Résultat void

DrawStripEGA() public méthode

public DrawStripEGA ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Résultat void

DrawStripRaw() public méthode

public DrawStripRaw ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Résultat void

Fill() public static méthode

public static Fill ( PixelNavigator dst, byte color, int width, int height ) : void
dst PixelNavigator
color byte
width int
height int
Résultat void

Fill() public static méthode

public static Fill ( PixelNavigator dst, ushort color, int width, int height ) : void
dst PixelNavigator
color ushort
width int
height int
Résultat void

Fill() public static méthode

public static Fill ( Surface surface, Rect r, int color ) : void
surface NScumm.Core.Graphics.Surface
r NScumm.Core.Graphics.Rect
color int
Résultat void

Fill() public static méthode

public static Fill ( byte dst, int dstPitch, byte color, int w, int h ) : void
dst byte
dstPitch int
color byte
w int
h int
Résultat void

Gdi() public méthode

public Gdi ( ScummEngine vm, GameInfo game ) : System
vm ScummEngine
game NScumm.Scumm.IO.GameInfo
Résultat System

GetMaskBuffer() public méthode

public GetMaskBuffer ( int x, int y, int i ) : PixelNavigator
x int
y int
i int
Résultat PixelNavigator

Init() public méthode

public Init ( ) : void
Résultat void

PrepareDrawBitmap() protected méthode

protected PrepareDrawBitmap ( ImageData img, VirtScreen vs, System.Point p, int width, int height, int stripnr, int numstrip ) : void
img ImageData
vs VirtScreen
p System.Point
width int
height int
stripnr int
numstrip int
Résultat void

ResetBackground() public méthode

public ResetBackground ( int top, int bottom, int strip ) : void
top int
bottom int
strip int
Résultat void

RoomChanged() public méthode

public RoomChanged ( Room room ) : void
room Room
Résultat void

SaveOrLoad() public méthode

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
Résultat void

SetGfxUsageBit() public méthode

public SetGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
Résultat void

SetMaskHeight() public méthode

public SetMaskHeight ( int height ) : void
height int
Résultat void

TestGfxAnyUsageBits() public méthode

public TestGfxAnyUsageBits ( int strip ) : bool
strip int
Résultat bool

TestGfxOtherUsageBits() public méthode

public TestGfxOtherUsageBits ( int strip, int bit ) : bool
strip int
bit int
Résultat bool

TestGfxUsageBit() public méthode

public TestGfxUsageBit ( int strip, int bit ) : bool
strip int
bit int
Résultat bool

UnkDecode10() public méthode

public UnkDecode10 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Résultat void

UnkDecode11() public méthode

public UnkDecode11 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Résultat void

UnkDecode8() public méthode

public UnkDecode8 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Résultat void

UnkDecode9() public méthode

public UnkDecode9 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Résultat void

WriteRoomColor() public méthode

public WriteRoomColor ( PixelNavigator navDst, int color ) : void
navDst PixelNavigator
color int
Résultat void

Property Details

NumStrips public_oe property

public int NumStrips
Résultat int

NumZBuffer public_oe property

public int NumZBuffer
Résultat int

_objectMode protected_oe property

Flag which is true when an object is being rendered, false otherwise.
protected bool _objectMode
Résultat bool

_vm protected_oe property

protected ScummEngine _vm
Résultat ScummEngine