Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getContext("experimental-webgl") fails #16

Open
JimSEOW opened this issue Sep 2, 2016 · 2 comments
Open

getContext("experimental-webgl") fails #16

JimSEOW opened this issue Sep 2, 2016 · 2 comments

Comments

@JimSEOW
Copy link

JimSEOW commented Sep 2, 2016

var ctx = document.createElement('canvas').getContext('experimental-webgl');

What needs to be done to make that works?

    `public object getContext(string contextType)
    {
        if (contextType == "2d") {
            if (this.context == null) {
                this.context = new CanvasRenderingContext2D(this.window, this);
            }
            return this.context;
        }
       else if (contextType == "experimental-webgl")
        {
            if (this.context == null)
            {
                this.context = new CanvasRenderingContext2D(this.window, this);
            }
            return this.context;
        }
        return null;
    }`
@JimSEOW
Copy link
Author

JimSEOW commented Sep 2, 2016

@JimSEOW
Copy link
Author

JimSEOW commented Sep 2, 2016

Getting 3D context from Angle?
microsoft/angle#86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant