예제 #1
0
파일: RVIShape.cs 프로젝트: ien646/RVI
        public static RVIShape CreateRect(RVIRectangle rect, int color32)
        {
            RVIVector2 v1 = new RVIVector2(rect.x, rect.y);
            RVIVector2 v2 = new RVIVector2(rect.x + rect.w, rect.y);
            RVIVector2 v3 = new RVIVector2(rect.x + rect.w, rect.y + rect.h);
            RVIVector2 v4 = new RVIVector2(rect.x, rect.y + rect.h);

            RVIShape result = new RVIShape();

            result.VertexList.Add(v1);
            result.VertexList.Add(v2);
            result.VertexList.Add(v3);
            result.VertexList.Add(v4);
            result.VertexList.Add(v1);
            result.VertexList.Add(v4);
            result.VertexList.Add(v3);
            result.VertexList.Add(v2);

            result.Color32 = color32;

            return(result);
        }
예제 #2
0
        public void Rect(byte[] data)
        {
            RVIRectangle rect = RVIPackets.Server_Rect.ReadRect(data);

            this._interface.DrawRect(new RVIVector2(rect.x, rect.y), rect.w, rect.h);
        }
예제 #3
0
파일: RVITextInput.cs 프로젝트: ien646/RVI
 public RVITextInput(RVIRectangle rect, string name, string content)
 {
     this.Rect    = rect;
     this.Content = content;
 }