登录
首页 » 图形图像 » 这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildVie...

这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildVie...

于 2022-03-16 发布 文件大小:1.27 kB
0 124
下载积分: 2 下载次数: 1

代码说明:

这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildView() 析构函数 BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射 BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数 BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻译消息 int CChildView::OnCreate( LPCREATESTRUCT lpCreateStruct ) 窗口创建好后进入此函数 完成openGL的初始化 void CChildView::OnSize( UINT nType, int cx, int cy ) 当窗口大小发生改变时重新设置OPenGL的视口参数。 void CChildView::OnDestroy() 销毁窗口 -It is written in MFC to use openGL viewport code. CChildView:: CChildView () constructor CChildView:: ~ CChildView () destructor BEGIN_MESSAGE_MAP (CChildView, CWnd) message map BOOL CChildView:: PreCreateWindow (CREATESTRUCT & cs) to create a window to reset the window parameters BOOL CChildView:: PreTranslateMessage (MSG* pMsg ) translation of the message int CChildView:: OnCreate (LPCREATESTRUCT lpCreateStruct) window is created and entered this function to complete openGL initialization void CChildView:: OnSize (UINT nType, int

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 从资源管理器显示PNG
    可以加载PNG图片的PictureBox控件, 这个代码是一个PNG显示的类文件,可以从资源文件中加载PNG图片(资源文件需要为自定义资源), 也可以指定文件路径加载PNG图片。可以加载到PictureBox控件,也可以作为窗体背景显示, 可以设置是否使用alpha透明显示以及是否使用透明色,可以指定显示坐标位置。 也可以重叠显示,速度还是蛮快的。感兴趣的朋友大家可以测试一下。 最后有人能改成PictureBox控件,呵呵,大家努力哦
    2022-01-26 05:44:30下载
    积分:1
  • 3d地模型,空格键可以停止/开始动画,回车键随机生成新的地...
    3d地形模型,空格键可以停止/开始动画,回车键随机生成新的地形-3d terrain model, the space bar can stop/start animation, the ENTER key randomly generate new terrain
    2022-03-28 17:36:11下载
    积分:1
  • This is a high
    这是OpenGL高级编程与可视化系统开发(系统开发篇)源码 -This is a high-level programming with OpenGL visualization system development (system development articles) source
    2022-03-15 07:35:34下载
    积分:1
  • Includes 24
    里面包括24位真彩色图像类和其基础处理的类,包括灰度化,二值化和形态学操作-Includes 24-bit true color image processing based on class and class, including the gray-scale and binary morphological operations and
    2023-07-09 06:40:03下载
    积分:1
  • Paintlib是移植可用于的加载、存储和处理。
    paintlib是一个可移植的用于图像加载、保存和处理的C++类库。可从BMP, GIF, JPEG, PCX, PGM, PICT, PNG, PSD, TGA, TIFF和WMF文件中加载图像,且可保存为BMP, JPEG, PNG和TIFF格式。既可通过在过滤器类中执行过滤, 也可通过直接访问位图来进行图像处理。提供了完整的C++源码。-paintlib is a transplant can be used to image loading, storage and handling of the C library. From BMP, GIF, JPEG, PCX, PGM, PICT, PNG, PSD, TGA, TIFF, and WMF files to load images and the retention of BMP, JPEG, PNG and TIFF formats. Both filters through the implementation of category filters, are also available via direct access to Bitmap image processing. For a complete C source code.
    2022-01-22 01:30:11下载
    积分:1
  • 读取BMP的VC源代码,但读取后显示的是灰度的
    读取BMP图像的VC源代码,但读取后显示的是灰度的-read BMP images VC source code, but after reading shows the intensity of
    2023-07-25 05:05:05下载
    积分:1
  • 切换屏幕在原始尺寸与全屏中切换,而且向你演示即使全屏文字也不会按比例放大,还有一个退出动画的按钮;不过你可能要DOWN回去之后才能看到它的效果...
    切换屏幕在原始尺寸与全屏中切换,而且向你演示即使全屏文字也不会按比例放大,还有一个退出动画的按钮;不过你可能要DOWN回去之后才能看到它的效果-Switch the screen size and full-screen in the original switch, but also to the presentation you will not even full-screen text in proportion to enlarge, there is a quit button animation but you may have to go back DOWN to see it after the effects of
    2022-09-26 08:25:03下载
    积分:1
  • delphi画正弦曲线,抛砖引玉,发挥后可完成绘的一些功能
    delphi画正弦曲线,抛砖引玉,发挥后可完成绘图的一些功能-delphi painting sine curve, something to play after the completion of some functional mapping
    2022-01-26 05:54:41下载
    积分:1
  • Three
    三维绘图,Test1,不错的程序,,大家快下啊,希望对大家有帮助 -Three-dimensional graphics, Test1, good procedures, we soon ah, I hope all of you help
    2022-10-15 22:25:03下载
    积分:1
  • some skills of creator & vega !
    creator vega 技术贴全书,介绍了许多vega的使用技巧。-some skills of creator & vega !
    2023-01-16 17:10:03下载
    积分:1
  • 696518资源总数
  • 105651会员总数
  • 15今日下载