Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3695316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:36:12+00:00 2026-05-19T04:36:12+00:00

Is there a method to create/specify a custom window for GLUT instead of using

  • 0

Is there a method to create/specify a custom window for GLUT instead of using the glutCreateWindow method? I’d like to modify certain elements of the window, such as removing the border, possibly rounding the corners, etc.

There doesn’t seem to be any built-in functions to set a certain HWND handle as the targetted GLUT window (on Windows).

Any ideas?
Jengerer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:36:12+00:00Added an answer on May 19, 2026 at 4:36 am

    Glut, and OpenGL which Glut is built on, are intended to be crossplatform. Every platform has it’s own ideas about what makes a window. To work around this OpenGL has it’s own concept of windows, or rendering contexts. A rendering context is a chunk of memory where a DIB (Device Independent Bitmap) is rendered, which generally doesn’t include window decorations (The borders, the X, the window icon, etc…). Unless there are platform specific extension which I am not aware of there is no way to pass Glut an HWND, which is specific to windows.

    You may be able to create a rendering context somewhere else, such as in your own code or in another library. Once created there may be a way to pass this context or a pointer to the context into Glut. OpenGL this supports and so do many libraries built on top of it.

    I am not sure why you want to alter window decorations, if the situation allows it might be easier to use a library that supports this natively rather than rigging Glut into a solution. I know SDL, Ogre3d have limited abilities to control the window decorations (I don’t think either can round the corners though), and if you really want to work with Glut it is possible to get either of those libraries to give you a pointer to the OpenGL rendering context they use. I haven’t used QT but I know it provides easier access to the kind of control you want and will be able to create an OpenGL context for you.

    However, after looking at the documentation for Glut at http://www.opengl.org/documentation/specs/glut/spec3/spec3.html it does not use the word “context”. This might mean that if you use Glut you are limited to the window decoration tools it provides. Which might mean that you either have to drop glut and use a library which does more, or settle for the window decorations the OS provides.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if there is a method to create share buttons
I'm trying to create an extension method using CodeDOM. There doesn't seem to be
The object inherits from NSObject. Is there a method to create a copy of
is there a method for svn to explicitly create the cached name/password settings for
I would like to create a junit test suite using JUnit 4 where the
Imagine C# code like this ISomeInterface someVar = creator.Create(typeof(SomeClass), typeof(ISomeInterface)); What should happen? Method
I've written an method that does some graphics calculations. There, you can specify a
In ActiveRecord there is a default_scope class method to specify a default scope. For
I created a method to unmarshall my xml (item.xml) file .But if there are
I need to create a method to generate a unit vector in three dimensions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.