コード例 #1
0
 public Line(Model.Vec2Float p1, Model.Vec2Float p2, float width, Model.ColorFloat color)
 {
     this.P1    = p1;
     this.P2    = p2;
     this.Width = width;
     this.Color = color;
 }
コード例 #2
0
 public PlacedText(string text, Model.Vec2Float pos, Model.TextAlignment alignment, float size, Model.ColorFloat color)
 {
     this.Text      = text;
     this.Pos       = pos;
     this.Alignment = alignment;
     this.Size      = size;
     this.Color     = color;
 }
コード例 #3
0
ファイル: Camera.cs プロジェクト: kant2002/codecraft
 public Camera(Model.Vec2Float center, float rotation, float attack, float distance, bool perspective)
 {
     this.Center      = center;
     this.Rotation    = rotation;
     this.Attack      = attack;
     this.Distance    = distance;
     this.Perspective = perspective;
 }
コード例 #4
0
 public DebugState(Model.Vec2Int windowSize, Model.Vec2Float mousePosWindow, Model.Vec2Float mousePosWorld, string[] pressedKeys, Model.Camera camera, int playerIndex)
 {
     this.WindowSize     = windowSize;
     this.MousePosWindow = mousePosWindow;
     this.MousePosWorld  = mousePosWorld;
     this.PressedKeys    = pressedKeys;
     this.Camera         = camera;
     this.PlayerIndex    = playerIndex;
 }
コード例 #5
0
 public ColoredVertex(Model.Vec2Float position, Model.ColorFloat color)
 {
     this.Position = position;
     this.Color    = color;
 }
コード例 #6
0
 public Rect(Model.Vec2Float pos, Model.Vec2Float size, Model.ColorFloat color)
 {
     this.Pos   = pos;
     this.Size  = size;
     this.Color = color;
 }
コード例 #7
0
 public ColoredVertex(Model.Vec2Float?worldPos, Model.Vec2Float screenOffset, Model.Color color)
 {
     this.WorldPos     = worldPos;
     this.ScreenOffset = screenOffset;
     this.Color        = color;
 }