随笔分类 -  OpenGL 编程

摘要:Types of Coordinate Systems Microsoft Windows GDI+ uses three coordinate spaces: world, page, and device. When you make the call myGraphics.DrawLine(&myPen, 0, 0, 160, 80), the points that you pass to the DrawLine method — (0, 0) and (160, 80) — are in the world coordinate space. Before GDI+ can 阅读全文
posted @ 2010-10-10 22:58 JarvisChu 阅读(312) 评论(0) 推荐(1)
摘要:程序运行的结果是改变屏幕的分辨率和颜色深度。一、程序的编写:1. 新建和配置工程新建一个工程,然后在Project->Setting->Link 中,加入OpenGL 相关几个lib文件OpenGL32.lib Glu32.lib GLaux.lib 2. 加入头文件#include <windows.h>#include <GL/gl.h> //OpenGL 核心函数库文件的头文件#include <GL/glu.h>//OpenGL 应用程序函数库的头文件#include <gl/glaux.h>//OpenGL 辅助函数库的头文 阅读全文
posted @ 2010-10-10 20:27 JarvisChu 阅读(963) 评论(0) 推荐(0)