Results 1 to 4 of 4

Thread: GLUT VS PURE OPENGL

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2000
    Posts
    1

    GLUT VS PURE OPENGL

    Does GLUT slow down things? Most libraries have a tendancy to do this, so I was just wondering. Or when exactly should one use GLUT? Should final code include GLUT use, or should one make all their own code for the sake of speed? And in the end, is the difference in speed noticable? I'm just wondering if it would be starting a bad habit, using glut that is.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: GLUT VS PURE OPENGL

    GLUT is not that much slower than pure Win32 API calls, or at least you won't see any difference. Infact, GLUT uses the pure Win32 API to do anything. But GLUT is mostly used for two things, learning and testing. Learning, because it's very easy to get it working. And testing becasue you can very quickly write a program that, for example, shows a technique who to do something. And you can write one program, and it will compile on litterally any compiler/platform supporing GLUT and OpenGL. Perfect for distributing small pieces of demonstrationcode.

    And you shouldn't use GLUT unless you want to make extremely portable code. Not because GLUT can't be used to more advanced stuff, it can be used for great games for example, but because when using the pure Win32 API you got nearly maximum control over whats happening. This is something you don't have in GLUT. I suggest you go for Win32 API as fast as you can, it's because of control, not because of slowness/weakness or anything.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: GLUT VS PURE OPENGL

    I agree. Glut is nice to get an app up and running quickly so you can test the OpenGL stuff, but you have a lot more control when using Win32 API calls.
    Deiussum
    Software Engineer and OpenGL enthusiast

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Re: GLUT VS PURE OPENGL

    I built another library named GlutPlus that encapsulates glut in a C++ API. I used virtual and static functions heavily to do this and I see no noticeable difference in performance between several Win32 examples and corresponding GlutPlus versions.
    Obsessive - A word used by the lazy to describe the motivated.

Similar Threads

  1. Diamond GL - pure C++ for OpenGL API (in development)
    By capitalknew in forum OpenGL: General
    Replies: 8
    Last Post: 09-10-2017, 11:57 AM
  2. pure openGL or 3d engine for my project?
    By fp13__ in forum OpenGL: User Software
    Replies: 0
    Last Post: 09-10-2012, 04:08 AM
  3. Pure OpenGL base code
    By MindProse in forum OpenGL: Windows
    Replies: 4
    Last Post: 01-29-2008, 01:01 AM
  4. OpenGL 2.0 - Pure!
    By krychek in forum OpenGL: General
    Replies: 7
    Last Post: 06-06-2004, 12:33 AM
  5. Futurism + pure opengl 2.0
    By fritzlang in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-26-2002, 08:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean