C# Class Terraria.Lighting

ファイルを表示 Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
LightingThreads int
RGB bool
brightness float
defBrightness float
lightMode int
maxRenderCount int
maxX int
maxY int
minX int
minY int
offScreenTiles int
offScreenTiles2 int
scrX int
scrY int

Public Methods

Method Description
AddLight ( Vector2 position, Vector3 rgb ) : void
AddLight ( Vector2 position, float R, float G, float B ) : void
AddLight ( int i, int j, float R, float G, float B ) : void
BlackOut ( ) : void
Brightness ( int x, int y ) : float
BrightnessAverage ( int x, int y, int width, int height ) : float
GetBlackness ( int x, int y ) : Color
GetColor ( int x, int y ) : Color
GetColor ( int x, int y, Color oldColor ) : Color
GetColor4Slice ( int centerX, int centerY, Color &slices ) : void
GetColor4Slice_New ( int centerX, int centerY, VertexColors &vertices, Color centerColor, float scale = 1f ) : void
GetColor4Slice_New ( int centerX, int centerY, VertexColors &vertices, float scale = 1f ) : void
GetColor9Slice ( int centerX, int centerY, Color &slices ) : void
GetSubLight ( Vector2 position ) : Vector3
Initialize ( bool resize = false ) : void
LightTiles ( int firstX, int lastX, int firstY, int lastY ) : void
NextLightMode ( ) : void
PreRenderPhase ( ) : void
doColors ( ) : void

Private Methods

Method Description
callback_LightingSwipe ( object obj ) : void
doColors_Mode0_Swipe ( Lighting swipeData ) : void
doColors_Mode1_Swipe ( Lighting swipeData ) : void
doColors_Mode2_Swipe ( Lighting swipeData ) : void
doColors_Mode3_Swipe ( Lighting swipeData ) : void

Method Details

AddLight() public static method

public static AddLight ( Vector2 position, Vector3 rgb ) : void
position Vector2
rgb Vector3
return void

AddLight() public static method

public static AddLight ( Vector2 position, float R, float G, float B ) : void
position Vector2
R float
G float
B float
return void

AddLight() public static method

public static AddLight ( int i, int j, float R, float G, float B ) : void
i int
j int
R float
G float
B float
return void

BlackOut() public static method

public static BlackOut ( ) : void
return void

Brightness() public static method

public static Brightness ( int x, int y ) : float
x int
y int
return float

BrightnessAverage() public static method

public static BrightnessAverage ( int x, int y, int width, int height ) : float
x int
y int
width int
height int
return float

GetBlackness() public static method

public static GetBlackness ( int x, int y ) : Color
x int
y int
return Color

GetColor() public static method

public static GetColor ( int x, int y ) : Color
x int
y int
return Color

GetColor() public static method

public static GetColor ( int x, int y, Color oldColor ) : Color
x int
y int
oldColor Color
return Color

GetColor4Slice() public static method

public static GetColor4Slice ( int centerX, int centerY, Color &slices ) : void
centerX int
centerY int
slices Color
return void

GetColor4Slice_New() public static method

public static GetColor4Slice_New ( int centerX, int centerY, VertexColors &vertices, Color centerColor, float scale = 1f ) : void
centerX int
centerY int
vertices VertexColors
centerColor Color
scale float
return void

GetColor4Slice_New() public static method

public static GetColor4Slice_New ( int centerX, int centerY, VertexColors &vertices, float scale = 1f ) : void
centerX int
centerY int
vertices VertexColors
scale float
return void

GetColor9Slice() public static method

public static GetColor9Slice ( int centerX, int centerY, Color &slices ) : void
centerX int
centerY int
slices Color
return void

GetSubLight() public static method

public static GetSubLight ( Vector2 position ) : Vector3
position Vector2
return Vector3

Initialize() public static method

public static Initialize ( bool resize = false ) : void
resize bool
return void

LightTiles() public static method

public static LightTiles ( int firstX, int lastX, int firstY, int lastY ) : void
firstX int
lastX int
firstY int
lastY int
return void

NextLightMode() public static method

public static NextLightMode ( ) : void
return void

PreRenderPhase() public static method

public static PreRenderPhase ( ) : void
return void

doColors() public static method

public static doColors ( ) : void
return void

Property Details

LightingThreads public_oe static_oe property

public static int LightingThreads
return int

RGB public_oe static_oe property

public static bool RGB
return bool

brightness public_oe static_oe property

public static float brightness
return float

defBrightness public_oe static_oe property

public static float defBrightness
return float

lightMode public_oe static_oe property

public static int lightMode
return int

maxRenderCount public_oe static_oe property

public static int maxRenderCount
return int

maxX public_oe static_oe property

public static int maxX
return int

maxY public_oe static_oe property

public static int maxY
return int

minX public_oe static_oe property

public static int minX
return int

minY public_oe static_oe property

public static int minY
return int

offScreenTiles public_oe static_oe property

public static int offScreenTiles
return int

offScreenTiles2 public_oe static_oe property

public static int offScreenTiles2
return int

scrX public_oe static_oe property

public static int scrX
return int

scrY public_oe static_oe property

public static int scrY
return int