C# Class NScumm.Scumm.Graphics.Gdi

ファイルを表示 Open project: scemino/nscumm Class Usage Examples

Public Properties

Property Type Description
NumStrips int
NumZBuffer int

Protected Properties

Property Type Description
_objectMode bool
_vm ScummEngine

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

public static Blit ( PixelNavigator dst, PixelNavigator src, int width, int height ) : void
dst PixelNavigator
src PixelNavigator
width int
height int
return void

ClearGfxUsageBit() public method

public ClearGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
return void

ClearGfxUsageBits() public method

public ClearGfxUsageBits ( ) : void
return void

ClearMaskBuffer() public method

public ClearMaskBuffer ( int i ) : void
i int
return void

Create() public static method

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

DecodeMask() protected method

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
return void

DrawBitmap() public method

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
return void

DrawBitmap() public method

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
return void

DrawStrip() protected method

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
return bool

DrawStripBasicH() public method

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

DrawStripBasicV() public method

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

DrawStripComplex() public method

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

DrawStripEGA() public method

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

DrawStripRaw() public method

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

Fill() public static method

public static Fill ( PixelNavigator dst, byte color, int width, int height ) : void
dst PixelNavigator
color byte
width int
height int
return void

Fill() public static method

public static Fill ( PixelNavigator dst, ushort color, int width, int height ) : void
dst PixelNavigator
color ushort
width int
height int
return void

Fill() public static method

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

Fill() public static method

public static Fill ( byte dst, int dstPitch, byte color, int w, int h ) : void
dst byte
dstPitch int
color byte
w int
h int
return void

Gdi() public method

public Gdi ( ScummEngine vm, GameInfo game ) : System
vm ScummEngine
game NScumm.Scumm.IO.GameInfo
return System

GetMaskBuffer() public method

public GetMaskBuffer ( int x, int y, int i ) : PixelNavigator
x int
y int
i int
return PixelNavigator

Init() public method

public Init ( ) : void
return void

PrepareDrawBitmap() protected method

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
return void

ResetBackground() public method

public ResetBackground ( int top, int bottom, int strip ) : void
top int
bottom int
strip int
return void

RoomChanged() public method

public RoomChanged ( Room room ) : void
room Room
return void

SaveOrLoad() public method

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
return void

SetGfxUsageBit() public method

public SetGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
return void

SetMaskHeight() public method

public SetMaskHeight ( int height ) : void
height int
return void

TestGfxAnyUsageBits() public method

public TestGfxAnyUsageBits ( int strip ) : bool
strip int
return bool

TestGfxOtherUsageBits() public method

public TestGfxOtherUsageBits ( int strip, int bit ) : bool
strip int
bit int
return bool

TestGfxUsageBit() public method

public TestGfxUsageBit ( int strip, int bit ) : bool
strip int
bit int
return bool

UnkDecode10() public method

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

UnkDecode11() public method

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

UnkDecode8() public method

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

UnkDecode9() public method

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

WriteRoomColor() public method

public WriteRoomColor ( PixelNavigator navDst, int color ) : void
navDst PixelNavigator
color int
return void

Property Details

NumStrips public_oe property

public int NumStrips
return int

NumZBuffer public_oe property

public int NumZBuffer
return int

_objectMode protected_oe property

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

_vm protected_oe property

protected ScummEngine _vm
return ScummEngine