Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


OpenGL opengl

This topic is 7057 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some OpenGl question(I use VC6.0 to develop MFC program): I want my program to display a Bezier curve, then use mouse to locate control-point. So control-point would be display at the position that mouse point to. In the mouse-message, "CPoint point" regard left-top angle of the window clientarea as coordinate origin (0.0), use pixel as unit. But in some sample Bezier program, control-point use the center of the clientarea as coordinate origin (0.0), and I don''t know what is its coordinate unit. What is the proportion relation between this coordinate unit and pixel? Which variable is clientarea''s length and width stored in? How to get the variable in mouse message process function? please help me, thanks.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!