需要帮助的OpenGL. [英] need help for opengl.

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

问题描述

大家好.
我想使用openGL创建3D模型查看器应用程序.控制台应用程序有很多示例.但是我想用interface(buttons ... etc)创建它.帮我.
谢谢.

hello every one.,
i want to create 3d model viewer application using openGL. there is lot of examples with console application. but i want to create it with interface(buttons...etc). help me.
thank you.

推荐答案

我经常创建基于mfc对话框的应用程序.会有一个静态控件,该控件将用于初始化渲染上下文,并且绘制所有对象那个静态窗口.
其他gui项将放置在主队列中,并将处理其事件以更改输出图像.一个示例应用程序是http://www.codeproject.com/Messages/4260392/Re-How-does-Pixel-Shader-choose-the-Edge-Points.aspx
I often creates mfc dialog based application.. there will be a static control, which will be used for initializing rendering context, and all objects drawn in that static window.
Other gui items will be placed in the main dailog, and its events will be handled to change output image. One sample app is http://www.codeproject.com/Messages/4260392/Re-How-does-Pixel-Shader-choose-the-Edge-Points.aspx


很老但可以从MSDN使用OpenGL示例GLEasy-
OpenGL I:快速开始示例 [
Pretty old but working OpenGL sample GLEasy from MSDN -
OpenGL I: Quick Start Sample[^]
Shows rotating figures (cube, pyramid, dodechahedron) in MFC. No buttons, but with Toolbar, Status bar and Menus.
To make default Debug version, run -
C:>nmake /f GLEASY.MAK 


否则会产生错误-
GLEASY.MAK(51):致命错误U1007:名称中不允许使用双引号
停.
如果您还想在Windows中学习一些OpenGL编程,这里对您有帮助-
OpenGL III:构建OpenGL C ++类 [ OpenGL参考 [


Otherwise it generates error -
GLEASY.MAK(51) : fatal error U1007: double quotation mark not allowed in name
Stop.
If you also want to learn a bit of OpenGL programming in Windows, here is it to help -
OpenGL III: Building an OpenGL C++ Class[^]
and OpenGL reference[^]


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

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