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

Getting Started Guide : Hello Triangle incorrect method args type #102

Open
useCallback opened this issue Mar 14, 2024 · 1 comment
Open

Comments

@useCallback
Copy link

Description:

In the Getting started guide in the Hello Triangle section , there is an Incorrect arguments type for the OnFramebufferResize method

Current content:

protected override void OnFramebufferResize(ResizeEventArgs e)
{
    base.OnFramebufferResize(e);

    GL.Viewport(0, 0, e.Width, e.Height);
}

https://github.com/opentk/opentk.net/blob/dd939cffe4680dc396b28af2c4c5d58dc222658d/learn/chapter1/2-hello-triangle.md?plain=1#L104C1-L112C1

Expected content:

protected override void OnFramebufferResize(FramebufferResizeEventArgs e)
        {
            base.OnFramebufferResize(e);
            GL.Viewport(0, 0, e.Width, e.Height);

        }
@NogginBops
Copy link
Member

Good catch! Must have missed that when I added that part to the tutorial.
Will fix this next time I work on the website.

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

No branches or pull requests

2 participants