C# Класс NScumm.Scumm.Graphics.Gdi

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NumStrips int
NumZBuffer int

Защищенные свойства (Protected)

Свойство Тип Описание
_objectMode bool
_vm ScummEngine

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Blit() публичный статический Метод

public static Blit ( PixelNavigator dst, PixelNavigator src, int width, int height ) : void
dst PixelNavigator
src PixelNavigator
width int
height int
Результат void

ClearGfxUsageBit() публичный Метод

public ClearGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
Результат void

ClearGfxUsageBits() публичный Метод

public ClearGfxUsageBits ( ) : void
Результат void

ClearMaskBuffer() публичный Метод

public ClearMaskBuffer ( int i ) : void
i int
Результат void

Create() публичный статический Метод

public static Create ( ScummEngine vm, GameInfo game ) : Gdi
vm ScummEngine
game NScumm.Scumm.IO.GameInfo
Результат Gdi

DecodeMask() защищенный Метод

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
Результат void

DrawBitmap() публичный Метод

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
Результат void

DrawBitmap() публичный Метод

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
Результат void

DrawStrip() защищенный Метод

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
Результат bool

DrawStripBasicH() публичный Метод

public DrawStripBasicH ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Результат void

DrawStripBasicV() публичный Метод

public DrawStripBasicV ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Результат void

DrawStripComplex() публичный Метод

public DrawStripComplex ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Результат void

DrawStripEGA() публичный Метод

public DrawStripEGA ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Результат void

DrawStripRaw() публичный Метод

public DrawStripRaw ( PixelNavigator navDst, BinaryReader src, int height, bool transpCheck ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
transpCheck bool
Результат void

Fill() публичный статический Метод

public static Fill ( PixelNavigator dst, byte color, int width, int height ) : void
dst PixelNavigator
color byte
width int
height int
Результат void

Fill() публичный статический Метод

public static Fill ( PixelNavigator dst, ushort color, int width, int height ) : void
dst PixelNavigator
color ushort
width int
height int
Результат void

Fill() публичный статический Метод

public static Fill ( Surface surface, Rect r, int color ) : void
surface NScumm.Core.Graphics.Surface
r NScumm.Core.Graphics.Rect
color int
Результат void

Fill() публичный статический Метод

public static Fill ( byte dst, int dstPitch, byte color, int w, int h ) : void
dst byte
dstPitch int
color byte
w int
h int
Результат void

Gdi() публичный Метод

public Gdi ( ScummEngine vm, GameInfo game ) : System
vm ScummEngine
game NScumm.Scumm.IO.GameInfo
Результат System

GetMaskBuffer() публичный Метод

public GetMaskBuffer ( int x, int y, int i ) : PixelNavigator
x int
y int
i int
Результат PixelNavigator

Init() публичный Метод

public Init ( ) : void
Результат void

PrepareDrawBitmap() защищенный Метод

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
Результат void

ResetBackground() публичный Метод

public ResetBackground ( int top, int bottom, int strip ) : void
top int
bottom int
strip int
Результат void

RoomChanged() публичный Метод

public RoomChanged ( Room room ) : void
room Room
Результат void

SaveOrLoad() публичный Метод

public SaveOrLoad ( Serializer serializer ) : void
serializer NScumm.Scumm.IO.Serializer
Результат void

SetGfxUsageBit() публичный Метод

public SetGfxUsageBit ( int strip, int bit ) : void
strip int
bit int
Результат void

SetMaskHeight() публичный Метод

public SetMaskHeight ( int height ) : void
height int
Результат void

TestGfxAnyUsageBits() публичный Метод

public TestGfxAnyUsageBits ( int strip ) : bool
strip int
Результат bool

TestGfxOtherUsageBits() публичный Метод

public TestGfxOtherUsageBits ( int strip, int bit ) : bool
strip int
bit int
Результат bool

TestGfxUsageBit() публичный Метод

public TestGfxUsageBit ( int strip, int bit ) : bool
strip int
bit int
Результат bool

UnkDecode10() публичный Метод

public UnkDecode10 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Результат void

UnkDecode11() публичный Метод

public UnkDecode11 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Результат void

UnkDecode8() публичный Метод

public UnkDecode8 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Результат void

UnkDecode9() публичный Метод

public UnkDecode9 ( PixelNavigator navDst, BinaryReader src, int height ) : void
navDst PixelNavigator
src System.IO.BinaryReader
height int
Результат void

WriteRoomColor() публичный Метод

public WriteRoomColor ( PixelNavigator navDst, int color ) : void
navDst PixelNavigator
color int
Результат void

Описание свойств

NumStrips публичное свойство

public int NumStrips
Результат int

NumZBuffer публичное свойство

public int NumZBuffer
Результат int

_objectMode защищенное свойство

Flag which is true when an object is being rendered, false otherwise.
protected bool _objectMode
Результат bool

_vm защищенное свойство

protected ScummEngine _vm
Результат ScummEngine