Beispiel #1
0
        public IGraphicsControl Internal_CreateGraphicsControl()
        {
            var ret = new GLControlWrapper_GdiPlus(this);

            //create a render target for this control
            RenderTargetWrapper rtw = new RenderTargetWrapper(this);

            rtw.Control             = ret;
            ret.RenderTargetWrapper = rtw;

            return(ret);
        }
Beispiel #2
0
        public unsafe RenderTarget CreateRenderTarget(int w, int h)
        {
            TextureWrapper tw = new TextureWrapper();

            tw.SDBitmap = new Bitmap(w, h, sdi.PixelFormat.Format32bppArgb);
            var tex = new Texture2d(this, tw, w, h);

            RenderTargetWrapper rtw = new RenderTargetWrapper(this);
            var rt = new RenderTarget(this, rtw, tex);

            rtw.Target = rt;
            return(rt);
        }