コード例 #1
0
ファイル: Anim.cs プロジェクト: lichen123456789/ECS_2D
 public static void Draw_MATRIX_ANIM_FRAME(List <BitArray> _frames, int _frame, int _cellsX, int _cellsY, int _totalFrames, float _x, float _y, float _w, Color _col, float _rotation = 0)
 {
     GL_DRAW.Draw_MATRIX_RECT(_x, _y, _w, GL_DRAW.LockAspect_Y(_w), _cellsX, _cellsY, _col, _frames[_frame % _totalFrames], _rotation);
 }
コード例 #2
0
ファイル: GL_TXT.cs プロジェクト: mambotuna/DOTS-training
    public static void Draw_Glyph(char _char, float _x, float _y, float _size, Color _col, float _rotation = 1)
    {
        BitArray _CELLS = GL_FONT_3x5.Get(_char);

        GL_DRAW.Draw_MATRIX_RECT(_x, _y, _size * 3, -GL_DRAW.LockAspect_Y(_size * 5), 3, 5, _col, _CELLS, _rotation);
    }