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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:31:48+00:00 2026-06-13T17:31:48+00:00

I have a problem whit my little Opengl/freeglut/c++ 2D editor project. the editor allows

  • 0

I have a problem whit my little Opengl/freeglut/c++ 2D editor project.

the editor allows you to draw a quad or a triangle(Object). You can resize the object by draging a corner of the object where ever you want.
you can also move the object around the screen if the object is active (you click on a object to make it active).

Now the problem that I’m having is to do whit the area that you click on to make the object active. The activation area used to be just a quad around the object (get the width and height of the object and so on) (Blue dots on the Picture show the activation area borders)

http://i48.tinypic.com/muyh41.png

But I want the activation area to be the area of the object not a quad around it.
So the question is how would you check if the mouse was clicked inside area like in picture above or below this text?

http://i49.tinypic.com/abmli8.png

  • 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-13T17:31:49+00:00Added an answer on June 13, 2026 at 5:31 pm

    OpenGL is just a drawing API and (Free)GLUT just a minimalistic framework for creating a window with an OpenGL context attached. Neither of them will help you there.

    You must manually perform a ray triangle intersection test

    These links may be of interest for you

    http://www.lighthouse3d.com/tutorials/maths/ray-triangle-intersection/

    http://www.gamedev.net/topic/447861-ray–triangle-intersection-code/

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

Sidebar

Related Questions

I have a problem whit binding in wpf i have a textbox where i
i have a problem with my listview. I have a list whit headers. List:
I have a replication cluster whit a couple of nodes - they can communicate
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem: How I can insert a row and delete it X
I have problem with this method in NLog library: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents(object state) It consume too
I have problem whit slugify routing parameter. I want to replace all intervals and
I have problem with nuget packet management when using a shared project among different
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This

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.