此作业的帮助 [英] Help for this Assignment

查看:72
本文介绍了此作业的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用C ++编写并编译OpenGL程序,该程序可实现``free-
手绘图''工具.一个免费的手绘图工具允许用户按以下方式绘制线条:
用户可以在屏幕上自由移动鼠标指针.您的程序应
有2个附加功能:

一个).该程序仅应在按住鼠标左键时绘制.

b).鼠标右键上应该有一个菜单,该菜单允许
用户清除屏幕,在颜色之间进行更改(红色,绿色和蓝色)
或退出应用程序.

提示:定义了两个处理函数,一个处理鼠标单击,另一个
处理鼠标动作.为了处理菜单回调,需要菜单
同时管理菜单的功能

Write and compile an OpenGL program in C++ which implements the ''free-
hand drawing'' tool. A free hand drawing tool allows the user to draw lines as
the user moves the mouse pointer freely in the screen. Your program should
have 2 additional features:

a). The program should only draw when the left mouse button is held down.

b). There should be a menu bound to the right mouse button which allows
the user to clear the screen, change between colors (red green and blue)
or exit the application.

Hint: de ne two handler functions, one that deals with mouse clicks and one
that deals with mouse motion. In order to process menu callbacks de ne a menu
function as well which manages the menus

推荐答案

我们不为人们做作业.这不是因为我们认为自己在这种普通的编码上胜于其他,而是因为如果我们为您完成工作,您将不会学到任何东西.那天,当我上学时,我的老师给了我完成作业所需的一切.我希望这些条件在现代学校中仍然盛行.即使他没有(或者当他提供上述信息时您根本没有注意),您仍然拥有大量的互联网资源供您直接使用,您所要做的就是键入"google"到达那里.
We don''t homework for people. It''s not because we feel that we''re superior or above that kind of mundane coding, but because YOU won''t learn anything if WE do the work for you. Back in the day, when I was going to school, my instructor gave me everything I needed to complete homework assignments. I would hope those conditions still prevail in modern schools. Even if he didn''t (or you simply weren''t paying attention when he WAS providing said information), you have overwhelmingly vast resources of the internet at your immediate disposal, and all you have to do is type "google" to get there.


这篇关于此作业的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆