C# Class Engine.Objects.SurfaceInstance

Inheritance: Jurassic.Library.ObjectInstance
Afficher le fichier Open project: Radnen/sphere-sfml Class Usage Examples

Méthodes publiques

Méthode Description
Blend ( System.Color c1, System.Color &c2 ) : void
FastBlend ( int c1, int c2, float weight ) : int
FastBlend2 ( int c1, int c2 ) : int
GetBytes ( ) : Byte[]
GetColorAt ( int x, int y ) : System.Color
GradientLine ( byte buf, int x1, int y1, int x2, int y2, int c1, int c2 ) : void
Line ( byte buf, int x1, int y1, int x2, int y2, int c ) : void
SetPixel ( byte buffer, int x, int y, System.Color &c ) : void
SetPixelFast ( byte buffer, int offset, int c2, BlendModes m ) : void
SetPixelFast ( byte buffer, int x, int y, int c ) : void
SetReplace ( int x, int y, System.Color dest ) : void
SurfaceInstance ( ScriptEngine parent, byte pixels, int width, int height ) : System
SurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
SurfaceInstance ( ScriptEngine parent, string filename ) : System

Private Methods

Méthode Description
Blit ( double x, double y ) : void
BlitImage ( int x, int y, ImageInstance instance ) : void
BlitMaskSurface ( SurfaceInstance surf, int ox, int oy, ColorInstance mask ) : void
BlitSurface ( SurfaceInstance surf, int x, int y ) : void
Clone ( ) : SurfaceInstance
CloneSection ( int ox, int oy, int w, int h ) : SurfaceInstance
ColorBlend ( System.Color &source, System.Color &dest, System.Color &out_c ) : void
CreateImage ( ) : ImageInstance
DrawImage ( byte buf, int ox, int oy, byte pixels, int width, int height ) : void
DrawImage ( int ox, int oy, byte pixels, int width, int height ) : void
DrawImageMask ( byte buf, int ox, int oy, byte pixels, int width, int height, int mask ) : void
DrawText ( FontInstance font, int x, int y, string text ) : void
FilledCircle ( int ox, int oy, int r, ColorInstance color, [ antialias = false ) : void
FlipHorizontally ( ) : void
FlipVertically ( ) : void
GetPixel ( int x, int y ) : ColorInstance
GradientLine ( int x1, int y1, int x2, int y2, ColorInstance col1, ColorInstance col2 ) : void
GradientRectangle ( int ox, int oy, int w, int h, ColorInstance col1, ColorInstance col2, ColorInstance col3, ColorInstance col4 ) : void
Init ( ) : void
Line ( int x1, int y1, int x2, int y2, ColorInstance color ) : void
LineSeries ( ArrayInstance points, ColorInstance color ) : void
OutlinedCircle ( int ox, int oy, int r, ColorInstance color, [ antialias = false ) : void
OutlinedRectangle ( int x, int y, int w, int h, ColorInstance color ) : void
PointSeries ( ArrayInstance array, ColorInstance color ) : void
Rectangle ( int ox, int oy, int w, int h, ColorInstance color ) : void
ReplaceColor ( ColorInstance colorA, ColorInstance colorB ) : void
Rescale ( int width, int height ) : SurfaceInstance
Resize ( int width, int height ) : SurfaceInstance
Rotate ( double radians, bool resize ) : void
RotateX ( int x, int y, double rad, int m_x, int m_y ) : int
RotateY ( int x, int y, double rad, int m_x, int m_y ) : int
Save ( string filename ) : void
SetAddBlend ( int x, int y, System.Color dest ) : void
SetAlpha ( int v ) : void
SetAlphaBlend ( int x, int y, System.Color dest ) : void
SetBlendMode ( int mode ) : void
SetPixel ( int x, int y, ColorInstance color ) : void
SetSubtractBlend ( int x, int y, System.Color dest ) : void
ToString ( ) : string
Update ( ) : void
WeightedBlend ( System.Color &source, System.Color &dest, double w, System.Color &out_c ) : void

Method Details

Blend() public static méthode

public static Blend ( System.Color c1, System.Color &c2 ) : void
c1 System.Color
c2 System.Color
Résultat void

FastBlend() public static méthode

public static FastBlend ( int c1, int c2, float weight ) : int
c1 int
c2 int
weight float
Résultat int

FastBlend2() public static méthode

public static FastBlend2 ( int c1, int c2 ) : int
c1 int
c2 int
Résultat int

GetBytes() public méthode

public GetBytes ( ) : Byte[]
Résultat Byte[]

GetColorAt() public méthode

public GetColorAt ( int x, int y ) : System.Color
x int
y int
Résultat System.Color

GradientLine() public méthode

public GradientLine ( byte buf, int x1, int y1, int x2, int y2, int c1, int c2 ) : void
buf byte
x1 int
y1 int
x2 int
y2 int
c1 int
c2 int
Résultat void

Line() public méthode

public Line ( byte buf, int x1, int y1, int x2, int y2, int c ) : void
buf byte
x1 int
y1 int
x2 int
y2 int
c int
Résultat void

SetPixel() public méthode

public SetPixel ( byte buffer, int x, int y, System.Color &c ) : void
buffer byte
x int
y int
c System.Color
Résultat void

SetPixelFast() public static méthode

public static SetPixelFast ( byte buffer, int offset, int c2, BlendModes m ) : void
buffer byte
offset int
c2 int
m BlendModes
Résultat void

SetPixelFast() public méthode

public SetPixelFast ( byte buffer, int x, int y, int c ) : void
buffer byte
x int
y int
c int
Résultat void

SetReplace() public méthode

public SetReplace ( int x, int y, System.Color dest ) : void
x int
y int
dest System.Color
Résultat void

SurfaceInstance() public méthode

public SurfaceInstance ( ScriptEngine parent, byte pixels, int width, int height ) : System
parent ScriptEngine
pixels byte
width int
height int
Résultat System

SurfaceInstance() public méthode

public SurfaceInstance ( ScriptEngine parent, int width, int height, System.Color bg_color ) : System
parent ScriptEngine
width int
height int
bg_color System.Color
Résultat System

SurfaceInstance() public méthode

public SurfaceInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
Résultat System