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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:30:13+00:00 2026-05-28T02:30:13+00:00

Here is my part of code to show circle on screen but unfortunate circle

  • 0

Here is my part of code to show circle on screen but unfortunate circle is not coming on screen.

glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
 glPushMatrix();
glLoadIdentity();
 glColor3f(0.0f,1.0f,0.0f);
glBegin(GL_LINE_LOOP);

const float DEG2RAD = 3.14159/180;

for (int i=0; i < 360; i++)
{
    float degInRad = i*DEG2RAD;
    glVertex2f(cos(degInRad)*8,sin(degInRad)*8);
}

 glEnd();
glFlush();

I am not understanding code is seems to look ok but circle is not coming on screen.

  • 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-28T02:30:14+00:00Added an answer on May 28, 2026 at 2:30 am

    Your circle is too big. The default viewport is in the range [(-1 -1), (1 1)].

    BTW, you don’t need 360 segments. About 30 is usually adequate, depending on how smooth you want it.

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

Sidebar

Related Questions

Here's some part of my code but I don't want to use android:layout_width=240dp. Please
Here's part of my code for a jQuery word counter. My question is: how
I need a fix for this. here is just part of my code <?php
Here is a part of my html code (video urls marked with a django-template
Just putting part of some code here where I am writing two values to
Here is the first part of my controller code: public class ControlMController : Controller
The following code is taken from here . I removed all Windows NT part
As asked, is it possible? Here's part of my code. I don't know how
I'm fighting with a Zend_dojo_form. Here is (part of) the code: class Application_Form_RegistrationForm extends
I have just inherited some code and part of that code is to show

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.