Skip to content

GLControl 3 to 4 Migration Questions #20

@sdreb3421

Description

@sdreb3421
  1. The old GLControl constructor could take a GraphicsMode object where the color bits, depth bits, stencil bits and sample count was specified. I've found that the new contructor takes GlControlSettings, but it appears that only sample count can be set. Where to set the remaining bit values?
  2. If creating the control programmatically, is it necessary to set the API, API Version, and compatibility? What should they be set to? Is this the version of OpenTK seen in Nuget, or is it the version set at the top of the shader (ie # version 330 core)? I'm currently using
    new GLControlSettings() { NumberOfSamples = 8, API = ContextAPI.OpenGL, APIVersion = new Version("3.3.0.0"), Profile = ContextProfile.Core };

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.0questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions