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 7996857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:48:48+00:00 2026-06-04T14:48:48+00:00

Well, i have my issues with gluCylinder(), it’s not letting me do the things.

  • 0

Well, i have my issues with gluCylinder(), it’s not letting me do the things. What i’m trying to do is to give no-top to the cylinder and fill it inside.

void GLWindow::paintGL()
{
    glClear(GL_COLOR_BUFFER_BIT);
    glColor3f(1,0,0);
    glBegin(GL_POLYGON);
    GLUquadricObj *obj = gluNewQuadric();

    gluCylinder(obj, 1.0, 1, 3, 30, 30);

    glEnd();
}

So the question is, how do i give the Cylinder no-top (Means, it doesn’t have top), i’ve been trying to modify the “top” parameter but had no success on it and how do i fill it inside?

  • 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-06-04T14:48:50+00:00Added an answer on June 4, 2026 at 2:48 pm

    So the question is, how do i give the Cylinder no-top (Means, it doesn’t have top),

    GLU doesn’t support this. BTW: GLU is not part of OpenGL, its a companion library and has been phased out ages ago. Just implement your own cylinder drawing code.

    how do i fill it inside?

    You mean like a solid? With OpenGL you can’t. Heck OpenGL doesn’t even know cylinders or objects at all. All it sees are vertices it interprets as the attributes to draw single points, lines or triangles. There’s no scene, there are no geometric objects.

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

Sidebar

Related Questions

Well I have 2 issues but my main concern right now is my catch
Our company is trying to transition to WordPress Multisite but we have several issues
I have been have issues trying to retrieve the values from a treeMap that
I have some issues when I'm trying to deploy my application in windows azure.
Well i have a QIODevice where i want to store data. But have issues
I have an issue regarding an recursive count which works well in SQL server,
Please i have an issue with my form background image display. It works well
I have a serious issue with Liferay 6.1 themes , I know well about
Well hi, guess what, I have an IE positioning issue! This is in 8,
well i have a configuration like this in the components part of my config

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.