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

  • Home
  • SEARCH
  • 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 6210973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:15:21+00:00 2026-05-24T06:15:21+00:00

This may sound really obvious but how can I find the points along the

  • 0

This may sound really obvious but how can I find the points along the edge of the screen in order to know if a moving object has hit the edge of the screen.

Thankyou

  • 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-24T06:15:22+00:00Added an answer on May 24, 2026 at 6:15 am

    Given you have orthographic projection, you can easily know where your edges are by knowing the values you’ve passed into the glOrtho() function.

    For example, consider this line:

    glOrtho(0.0f, width, 0.0f, height, 0.0f, 1.0f);
    

    Here you can decide how big influence a single float will have in your program. You can find more information about this here.

    However, in this scenario your left edge is 0.0 and your bottom edge is 0.0. Your top edge is defined by height and your right edge is defined by width.

    In this way you don’t have to rely on a specific screen size since your world will always be as big as you define. For example, you don’t need to define the orthographical width and height by the width and height parameters, but instead use some data telling your application how big your world should be.

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

Sidebar

Related Questions

This may sound like a stupid question but I can't seem to find an
I know this may sound stupid, but i really want to know :) im
This may sound really stupid. but I've got a strange problem with the D
I know this may sound like a weird question to ask but I would
This may not really sound hard to do but it is currently killing me.
hey guys i know this may sound stupid, but i am stuck with this
This may sound really stupid but I have to ask cause I'm not finding
Good afternoon, This may sound like a silly question, but it would be really
I know this question may sound silly, but I am learning (at least trying)
This may sound really noobish, and I'm probably missing something really stupid.. But, I'm

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.