C# Class Terraria.Lighting

Afficher le fichier Open project: EmuDevs/EDTerraria Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AddLight ( Vector2 position, Vector3 rgb ) : void
position Vector2
rgb Vector3
Résultat void

AddLight() public static méthode

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

AddLight() public static méthode

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

BlackOut() public static méthode

public static BlackOut ( ) : void
Résultat void

Brightness() public static méthode

public static Brightness ( int x, int y ) : float
x int
y int
Résultat float

BrightnessAverage() public static méthode

public static BrightnessAverage ( int x, int y, int width, int height ) : float
x int
y int
width int
height int
Résultat float

GetBlackness() public static méthode

public static GetBlackness ( int x, int y ) : Color
x int
y int
Résultat Color

GetColor() public static méthode

public static GetColor ( int x, int y ) : Color
x int
y int
Résultat Color

GetColor() public static méthode

public static GetColor ( int x, int y, Color oldColor ) : Color
x int
y int
oldColor Color
Résultat Color

GetColor4Slice() public static méthode

public static GetColor4Slice ( int centerX, int centerY, Color &slices ) : void
centerX int
centerY int
slices Color
Résultat void

GetColor4Slice_New() public static méthode

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
Résultat void

GetColor4Slice_New() public static méthode

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

GetColor9Slice() public static méthode

public static GetColor9Slice ( int centerX, int centerY, Color &slices ) : void
centerX int
centerY int
slices Color
Résultat void

GetSubLight() public static méthode

public static GetSubLight ( Vector2 position ) : Vector3
position Vector2
Résultat Vector3

Initialize() public static méthode

public static Initialize ( bool resize = false ) : void
resize bool
Résultat void

LightTiles() public static méthode

public static LightTiles ( int firstX, int lastX, int firstY, int lastY ) : void
firstX int
lastX int
firstY int
lastY int
Résultat void

NextLightMode() public static méthode

public static NextLightMode ( ) : void
Résultat void

PreRenderPhase() public static méthode

public static PreRenderPhase ( ) : void
Résultat void

doColors() public static méthode

public static doColors ( ) : void
Résultat void

Property Details

LightingThreads public_oe static_oe property

public static int LightingThreads
Résultat int

RGB public_oe static_oe property

public static bool RGB
Résultat bool

brightness public_oe static_oe property

public static float brightness
Résultat float

defBrightness public_oe static_oe property

public static float defBrightness
Résultat float

lightMode public_oe static_oe property

public static int lightMode
Résultat int

maxRenderCount public_oe static_oe property

public static int maxRenderCount
Résultat int

maxX public_oe static_oe property

public static int maxX
Résultat int

maxY public_oe static_oe property

public static int maxY
Résultat int

minX public_oe static_oe property

public static int minX
Résultat int

minY public_oe static_oe property

public static int minY
Résultat int

offScreenTiles public_oe static_oe property

public static int offScreenTiles
Résultat int

offScreenTiles2 public_oe static_oe property

public static int offScreenTiles2
Résultat int

scrX public_oe static_oe property

public static int scrX
Résultat int

scrY public_oe static_oe property

public static int scrY
Résultat int