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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:58:50+00:00 2026-06-11T01:58:50+00:00

I drew some quad like this with OpenGL: _______ _______ | || | |

  • 0

I drew some quad like this with OpenGL:

 _______  _______
|       ||       |
|       ||       |
|       ||       |
|_______||_______|

currently I draw second quad using firstQuad.pos.x + width which is calculated manually.but when I want to scale them in at center point, I was wondering is it the right way to use calculated value, or use glTranslatef one by one, then glTranslatef to center of them, then use glScalef to scale them in? or how to do it right?

  • 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-11T01:58:52+00:00Added an answer on June 11, 2026 at 1:58 am

    Unless you are updating quad’s position firstQuad according to your transformations, yes, you will have to use the GL matrix manipulation functions as you described. I’m assuming you are using legacy GL here (2.1 and older), modern releases no longer provide matrix manipulation functions.

    What you must understand is that a GL transformation must be seen as a transformation on the base and origin that will be used for further draw calls, until reset to a previous state with glPopMatrix().

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

Sidebar

Related Questions

I'm using Gnuplot to draw a graph. In the graph I drew three smooth
I'm absolutely new to DirectX and I'd like to draw some untransformed primitives with
I am new to iphone development, and i'm currently using xcode 4.2. I drew
Every time I want to draw an image (goodCell.png in this case..), at some
I'm using this code to colorize some images of a UIButton subclass: UIImage *img
I drew some circles on the Form1 using GDI+ , and the center of
I'm trying to use Python/Turtle to achieve a result like this: https://i.stack.imgur.com/lz4Eb.png I drew
I have some custom table view cells that takes a while to draw, so
Firstly, please go to this url: celebritywallpaperbase picture #1 is Drew Barrymore smile picture
I'm trying to use the Sprite Class in Microsoft.DirectX.Direct3D to draw some sprites to

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.