C# Class SharpQuake.Drawer

Draw_functions, GL_functions
Mostrar archivo Open project: Memorix101/SharpQuake Class Usage Examples

Public Properties

Property Type Description
CurrentTexture int
LightMapFormat PixelFormat

Public Methods

Method Description
BeginDisc ( ) : void
Bind ( int texnum ) : void
CachePic ( string path ) : glpic_t
DrawAlphaPic ( int x, int y, glpic_t pic, float alpha ) : void
DrawCharacter ( int x, int y, int num ) : void
DrawConsoleBackground ( int lines ) : void
DrawPic ( int x, int y, glpic_t pic ) : void
DrawString ( int x, int y, string str ) : void
DrawTransPic ( int x, int y, glpic_t pic ) : void
EndDisc ( ) : void
FadeScreen ( ) : void
Fill ( int x, int y, int w, int h, int c ) : void
GenerateTextureNumber ( ) : int

gets texture_extension_number++

GenerateTextureNumberRange ( int count ) : int

gets texture_extension_number++

Init ( ) : void
LoadTexture ( string identifier, int width, int height, ByteArraySegment data, bool mipmap, bool alpha ) : int

GL_LoadTexture

PicFromWad ( string name ) : glpic_t
SelectTexture ( MTexTarget target ) : void

GL_SelectTexture

SetTextureFilters ( TextureMinFilter min, TextureMagFilter mag ) : void
TileClear ( int x, int y, int w, int h ) : void
TransPicTranslate ( int x, int y, glpic_t pic, byte translation ) : void

Draw_TransPicTranslate Only used for the player color selection menu

Private Methods

Method Description
AllocScrapBlock ( int w, int h, int &x, int &y ) : int
CharToConback ( int num, ByteArraySegment dest, ByteArraySegment drawChars ) : void
Drawer ( ) : System
LoadTexture ( glpic_t pic, ByteArraySegment data ) : int

GL_LoadPicTexture

MipMap ( uint src, int width, int height ) : void
ResampleTexture ( uint src, int srcWidth, int srcHeight, uint &dest, int destWidth, int destHeight ) : void
TextureMode_f ( ) : void

Draw_TextureMode_f

Upload32 ( uint data, int width, int height, bool mipmap, bool alpha ) : void
Upload8 ( ByteArraySegment data, int width, int height, bool mipmap, bool alpha ) : void

GL_Upload8

UploadScrap ( ) : void

Method Details

BeginDisc() public static method

public static BeginDisc ( ) : void
return void

Bind() public static method

public static Bind ( int texnum ) : void
texnum int
return void

CachePic() public static method

public static CachePic ( string path ) : glpic_t
path string
return glpic_t

DrawAlphaPic() public static method

public static DrawAlphaPic ( int x, int y, glpic_t pic, float alpha ) : void
x int
y int
pic glpic_t
alpha float
return void

DrawCharacter() public static method

public static DrawCharacter ( int x, int y, int num ) : void
x int
y int
num int
return void

DrawConsoleBackground() public static method

public static DrawConsoleBackground ( int lines ) : void
lines int
return void

DrawPic() public static method

public static DrawPic ( int x, int y, glpic_t pic ) : void
x int
y int
pic glpic_t
return void

DrawString() public static method

public static DrawString ( int x, int y, string str ) : void
x int
y int
str string
return void

DrawTransPic() public static method

public static DrawTransPic ( int x, int y, glpic_t pic ) : void
x int
y int
pic glpic_t
return void

EndDisc() public static method

public static EndDisc ( ) : void
return void

FadeScreen() public static method

public static FadeScreen ( ) : void
return void

Fill() public static method

public static Fill ( int x, int y, int w, int h, int c ) : void
x int
y int
w int
h int
c int
return void

GenerateTextureNumber() public static method

gets texture_extension_number++
public static GenerateTextureNumber ( ) : int
return int

GenerateTextureNumberRange() public static method

gets texture_extension_number++
public static GenerateTextureNumberRange ( int count ) : int
count int
return int

Init() public static method

public static Init ( ) : void
return void

LoadTexture() public static method

GL_LoadTexture
public static LoadTexture ( string identifier, int width, int height, ByteArraySegment data, bool mipmap, bool alpha ) : int
identifier string
width int
height int
data ByteArraySegment
mipmap bool
alpha bool
return int

PicFromWad() public static method

public static PicFromWad ( string name ) : glpic_t
name string
return glpic_t

SelectTexture() public static method

GL_SelectTexture
public static SelectTexture ( MTexTarget target ) : void
target MTexTarget
return void

SetTextureFilters() public static method

public static SetTextureFilters ( TextureMinFilter min, TextureMagFilter mag ) : void
min TextureMinFilter
mag TextureMagFilter
return void

TileClear() public static method

public static TileClear ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

TransPicTranslate() public static method

Draw_TransPicTranslate Only used for the player color selection menu
public static TransPicTranslate ( int x, int y, glpic_t pic, byte translation ) : void
x int
y int
pic glpic_t
translation byte
return void

Property Details

CurrentTexture public_oe static_oe property

public static int CurrentTexture
return int

LightMapFormat public_oe static_oe property

public static PixelFormat LightMapFormat
return PixelFormat