public OffscreenCEFClient(Size windowSize, bool hideScrollbars = false)
        {
            this._loadHandler   = new OffscreenLoadHandler(this, hideScrollbars);
            this._renderHandler = new OffscreenRenderHandler(windowSize.Width, windowSize.Height, this);

            this.sPixelBuffer = new byte[windowSize.Width * windowSize.Height * 4];

            MelonModLogger.Log("Constructed Offscreen Client");
        }
Пример #2
0
    public OffscreenClient(int pWidth, int pHeight)
    {
        mOnLoad   = new OffscreenLoadHandler();
        mOnRender = new OffscreenRenderHandler(pWidth, pHeight);

        sPixelLock   = new object();
        sPixelBuffer = new byte[pWidth * pHeight * 4];

        LogUtilility.LogI("Constructed Offscreen Client");
    }
Пример #3
0
        public OffscreenCEFClient(int windowWidth, int windowHeight, bool hideScrollbars, Texture2D texture, OffscreenCEF behaviour)
        {
            this._texture       = texture;
            this._windowWidth   = windowWidth;
            this._windowHeight  = windowHeight;
            this._loadHandler   = new OffscreenLoadHandler(this, hideScrollbars);
            this._renderHandler = new OffscreenRenderHandler(this);
            this.behaviour      = behaviour;

            this.sPixelBuffer = new byte[windowWidth * windowHeight * 4];

            Debug.Log("Constructed Offscreen Client");
        }