Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: How To Install OpenGL In Visual Studio 2017 Community Edition?

  1. #1
    Newbie Newbie
    Join Date
    Jun 2018
    Posts
    1

    How To Install OpenGL In Visual Studio 2017 Community Edition?

    Hello, so I have been writing an application in C# and OpenGL in Microsoft Visual Studio 2017 Community Edition.

    However, when I try to compile the application, I get an error from Visual Studio saying this

    Severity Code
    Description Project
    File Line
    Suppression State
    Error CS0246 The type or namespace name 'OpenGL' could not be found (are you missing a using directive or an assembly reference?)

    What the the steps for installing OpenGL in this edition of Visual Studio (for use in C#)?

    Thank you.

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2018
    Posts
    4

    Use NuGet to add a library to your project

    When you've made your project and are in your workspace, right click on references, click manage NuGet packages, from there click browse and search for your prefered GL access, I use SharpGL for WPF, but there is also CSGL and OpenTK but they are limited to using winforms.

    -Shadow

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •