C# Class Engine.GlobalPrimitives

ファイルを表示 Open project: Radnen/sphere-sfml

Public Properties

Property Type Description
Target RenderTarget

Public Methods

Method Description
ApplyColorMask ( ColorInstance color ) : void
FilledCircle ( double x, double y, double radius, ColorInstance color ) : void
GetVector ( ObjectInstance obj ) : Vector2f

Attempts to translate a JS object: {x: 0, y: 0} into a Vector2f point.

GradientCircle ( double x, double y, double radius, ColorInstance inner, ColorInstance outer, [ antialias = false ) : void
GradientLine ( double x1, double y1, double x2, double y2, ColorInstance color1, ColorInstance color2 ) : void
GradientRectangle ( double x, double y, double width, double height, ColorInstance c1, ColorInstance c2, ColorInstance c3, ColorInstance c4 ) : void
GradientTriangle ( ObjectInstance A, ObjectInstance B, ObjectInstance C, ColorInstance color1, ColorInstance color2, ColorInstance color3 ) : void
Line ( double x1, double y1, double x2, double y2, ColorInstance color ) : void
LineSeries ( ArrayInstance points, ColorInstance color ) : void
OutlinedCircle ( double x, double y, double radius, ColorInstance color, [ size = 1.0 ) : void
OutlinedRectangle ( double x, double y, double width, double height, ColorInstance color, [ thickness = 1.0 ) : void
OutlinedRectangles ( ArrayInstance items, ColorInstance color ) : void
Point ( double x, double y, ColorInstance color ) : void
PointSeries ( ArrayInstance points, ColorInstance color ) : void
Polygon ( ArrayInstance points, ColorInstance color, [ inverse = false ) : void
Rectangle ( double x, double y, double width, double height, ColorInstance color ) : void
Triangle ( double x1, double y1, double x2, double y2, double x3, double y3, ColorInstance color ) : void

Private Methods

Method Description
GlobalPrimitives ( ) : System

Method Details

ApplyColorMask() public static method

public static ApplyColorMask ( ColorInstance color ) : void
color Engine.Objects.ColorInstance
return void

FilledCircle() public static method

public static FilledCircle ( double x, double y, double radius, ColorInstance color ) : void
x double
y double
radius double
color Engine.Objects.ColorInstance
return void

GetVector() public static method

Attempts to translate a JS object: {x: 0, y: 0} into a Vector2f point.
public static GetVector ( ObjectInstance obj ) : Vector2f
obj Jurassic.Library.ObjectInstance
return Vector2f

GradientCircle() public static method

public static GradientCircle ( double x, double y, double radius, ColorInstance inner, ColorInstance outer, [ antialias = false ) : void
x double
y double
radius double
inner Engine.Objects.ColorInstance
outer Engine.Objects.ColorInstance
antialias [
return void

GradientLine() public static method

public static GradientLine ( double x1, double y1, double x2, double y2, ColorInstance color1, ColorInstance color2 ) : void
x1 double
y1 double
x2 double
y2 double
color1 Engine.Objects.ColorInstance
color2 Engine.Objects.ColorInstance
return void

GradientRectangle() public static method

public static GradientRectangle ( double x, double y, double width, double height, ColorInstance c1, ColorInstance c2, ColorInstance c3, ColorInstance c4 ) : void
x double
y double
width double
height double
c1 Engine.Objects.ColorInstance
c2 Engine.Objects.ColorInstance
c3 Engine.Objects.ColorInstance
c4 Engine.Objects.ColorInstance
return void

GradientTriangle() public static method

public static GradientTriangle ( ObjectInstance A, ObjectInstance B, ObjectInstance C, ColorInstance color1, ColorInstance color2, ColorInstance color3 ) : void
A Jurassic.Library.ObjectInstance
B Jurassic.Library.ObjectInstance
C Jurassic.Library.ObjectInstance
color1 Engine.Objects.ColorInstance
color2 Engine.Objects.ColorInstance
color3 Engine.Objects.ColorInstance
return void

Line() public static method

public static Line ( double x1, double y1, double x2, double y2, ColorInstance color ) : void
x1 double
y1 double
x2 double
y2 double
color Engine.Objects.ColorInstance
return void

LineSeries() public static method

public static LineSeries ( ArrayInstance points, ColorInstance color ) : void
points Jurassic.Library.ArrayInstance
color Engine.Objects.ColorInstance
return void

OutlinedCircle() public static method

public static OutlinedCircle ( double x, double y, double radius, ColorInstance color, [ size = 1.0 ) : void
x double
y double
radius double
color Engine.Objects.ColorInstance
size [
return void

OutlinedRectangle() public static method

public static OutlinedRectangle ( double x, double y, double width, double height, ColorInstance color, [ thickness = 1.0 ) : void
x double
y double
width double
height double
color Engine.Objects.ColorInstance
thickness [
return void

OutlinedRectangles() public static method

public static OutlinedRectangles ( ArrayInstance items, ColorInstance color ) : void
items Jurassic.Library.ArrayInstance
color Engine.Objects.ColorInstance
return void

Point() public static method

public static Point ( double x, double y, ColorInstance color ) : void
x double
y double
color Engine.Objects.ColorInstance
return void

PointSeries() public static method

public static PointSeries ( ArrayInstance points, ColorInstance color ) : void
points Jurassic.Library.ArrayInstance
color Engine.Objects.ColorInstance
return void

Polygon() public static method

public static Polygon ( ArrayInstance points, ColorInstance color, [ inverse = false ) : void
points Jurassic.Library.ArrayInstance
color Engine.Objects.ColorInstance
inverse [
return void

Rectangle() public static method

public static Rectangle ( double x, double y, double width, double height, ColorInstance color ) : void
x double
y double
width double
height double
color Engine.Objects.ColorInstance
return void

Triangle() public static method

public static Triangle ( double x1, double y1, double x2, double y2, double x3, double y3, ColorInstance color ) : void
x1 double
y1 double
x2 double
y2 double
x3 double
y3 double
color Engine.Objects.ColorInstance
return void

Property Details

Target public_oe static_oe property

public static RenderTarget Target
return RenderTarget