Esempio n. 1
0
 public void DrawQuad(int texture, Vector3 bottomLeft, Vector3 bottomRight,
                      Vector3 topLeft, Vector3 topRight, GLColor bottomLeftColor, GLColor bottomRightColor,
                      GLColor topLeftColor, GLColor topRightColor)
 {
     _quad[0] = new GLVertex(bottomLeft.Xy, _bottomLeft, bottomLeftColor);
     _quad[1] = new GLVertex(bottomRight.Xy, _bottomRight, bottomRightColor);
     _quad[2] = new GLVertex(topRight.Xy, _topRight, topRightColor);
     _quad[3] = new GLVertex(topLeft.Xy, _topLeft, topLeftColor);
     DrawQuad(texture, _quad);
 }
 public AGSSlicedImageBorder(IGLUtils glUtils)
 {
     _glUtils = glUtils;
     _white   = Colors.White.ToGLColor();
 }
Esempio n. 3
0
 public GLVertex(Vector2 position, Vector2 texCoord, GLColor color)
     :   this(position, texCoord, color.R, color.G, color.B, color.A)
 {
 }