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 4 of 4

Thread: Adding GLUT to Visual Studio

  1. #1
    Newbie Newbie
    Join Date
    Jul 2016
    Posts
    3

    Adding GLUT to Visual Studio

    For some reason I can't get all the threads in this topic so I may be asking a question that has been answered.

    I am trying to get freeglut installed in Visual Studio 2015 for C# winforms applications. I have finally found what I believe is the correct reference - glut.dll. I have downloaded it, unzipped it and placed it in a directory of its own. However, when I try to reference it in VS I get the following error message:

    A reference to 'D:\GLUT Files\glut.dll' could not be added. Please make sure that the file is accessible and that it is a valid assembly or COM component.

    I'm sure the file is accessible since this is the way I accessed all the OpenGL .dll's. There must be something wrong with the .dll file but I don't know what. How can I reference this to allow its use in VS? If this isn't the correct .dll file where can I find the correct one.

    Thanks for any help,

    Andy Cruce

  2. #2
    This guide will show you how to set up a Visual Studio OpenGL/GLUT project that will compile in both Windows and Linux, as long as it is a pure OpenGL program. This guide also assumes Visual Studio .NET 2003 (and/or 2002) is already installed and you are familiar with its use.
    http://www.just.edu.jo/~yaser/course...l%20Studio.htm

  3. #3
    Member Regular Contributor
    Join Date
    Jul 2012
    Posts
    460
    You need glut32.dll, not glut.dll.
    Some more information and links to downlands can be found here: https://www.opengl.org/resources/libraries/glut/

  4. #4
    GLUT (pronounced like the glut in gluttony) is the OpenGL Utility Toolkit, a window system independent toolkit for writing OpenGL programs. It implements a simple windowing application programming interface (API) for OpenGL. GLUT makes it considerably easier to learn about and explore OpenGL programming. GLUT provides a portable API so you can write a single OpenGL program that works across all PC and workstation OS platforms.

Posting Permissions

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