CG/OpenGL
gamefish7
这个作者很懒,什么都没留下…
展开
-
[转] 如何去掉有的opengl程序所具有的命令行窗口?
众所周知,控制台应用程序一般都会显示一个控制台窗口(虚拟DOS窗口),但很多时候控制台程序的执行逻辑根本不需要与用户进行交互,所以显示这个难看的窗口纯属多余,那么如何将它屏蔽掉呢?下面我向大家介绍一种方法。 操作系统装载应用程序后,做完初始化工作就转到程序的入口点执行。程序的默认入口点实际上是由连接程序设置的,不同的连接器选择的入口函数也不尽相同。在VC下,连接器对控制台程序设置的入口函数是 m原创 2005-07-03 11:46:00 · 2501 阅读 · 0 评论 -
[转] How to install the glut libraries and dll's into windows
How to install the glut libraries and dlls into windowsWith thanks to Kamil Saykali of the EdCenter:This part will show how to install the glut libraries and dlls (to download it go to http://realit原创 2005-07-03 11:38:00 · 1137 阅读 · 0 评论 -
刚才发现了glut的一个小细节!
当你点击鼠标的时候,glutPassiveMotionFunc()居然比glutMouseFunc()先执行!刚得出的结论,不知对不对。原创 2005-04-22 00:32:00 · 930 阅读 · 0 评论 -
glNormal*()的作用
[OpenGL Redbook p47] Use glNormal*() to set the current normal to the value of the argument passed in. Subsequent calls to glVertex*() cause the specified vertices to be assigned the current normal. O原创 2005-04-27 10:11:00 · 13772 阅读 · 3 评论 -
[纠错][Interactive Computer Graphics]书随例子bit.c中的错误
[Interactive Computer Graphics --a top-down approach with opengl]bit.c错误:窗口大小改变后,点鼠标左键,光标处的贴图位置不再准确。修正:程序中宽和高(w和h)搞错了。第15行,ww变量改成hh第37行,ww=w改成hh=h第48行,glRasterPos2i(x, ww-y);改成glRasterPos2i(x, hh-y);原创 2005-05-01 23:34:00 · 1200 阅读 · 0 评论