コード例 #1
0
        public void Resize(int width, int height)
        {
            this.BaseWidth  = width;
            this.BaseHeight = height;

            this.sourcegbuffer.Maybe(gb => gb.Init(Width, Height));

            InitTextures();
            destinationgbuffer.Maybe(gb =>
            {
                gb.SetSlot(0, frame[0]);
                gb.Init(Width, Height);
            });

            this.modelview  = Matrix4.Identity * Matrix4.CreateTranslation(0.0f, 0.0f, -1.0f);
            this.FrameBlend = MaxAlpha;
        }