Exemple #1
0
        public void Draw(float _x, float _y, float _w, float _h, Color _col, float _gutterRatio = HUD.DEFAULT_GUTTER_RATIO)
        {
            float _ACTIVE_AREA = _h * _gutterRatio;
            float _GUTTER      = (_h - _ACTIVE_AREA) / ((totalRows - 1));
            float _ROW_HEIGHT  = _ACTIVE_AREA / totalRows;

            for (int i = 0; i < totalRows; i++)
            {
                int      _ROW_INDEX = ((currentRow + totalRows) - i) % totalRows;
                BitArray _ROW_CELLS = rows[_ROW_INDEX];
                GL_DRAW.Draw_RECT_CELLS(_x, _y + (i * _ROW_HEIGHT) + (i * _GUTTER), _w, _ROW_HEIGHT, _ROW_CELLS, _col, 1);
            }
        }