上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 61 下一页

2008年11月12日

简单搜索题:马的走法

摘要: 一个4×5的棋盘,输入马的起始坐标,求马能返回初始位置的所有不同走法的总数(马走过的位置不能重复,马走“日”字)。 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#include using namespace std; c... 阅读全文

posted @ 2008-11-12 20:36 Phinecos(洞庭散人) 阅读(1021) 评论(0) 推荐(0) 编辑

MFC同源子窗口的实现

摘要: MFC里的静态拆分窗口是一种很有意思的效果,但它们毕竟不是独立的窗口,还框在一个大窗口中, 那么要使用真正完全独立的窗口怎么做呢?本文参考侯捷的《深入浅出MFC》的第13章的思路,实现了多个独立的视图窗口,代码如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHig... 阅读全文

posted @ 2008-11-12 19:05 Phinecos(洞庭散人) 阅读(1559) 评论(1) 推荐(0) 编辑

2008年11月8日

我的译作

摘要: 开博以来翻译的一些文章 阅读全文

posted @ 2008-11-08 11:56 Phinecos(洞庭散人) 阅读(3272) 评论(0) 推荐(0) 编辑

2008年11月7日

《基于MFC的OpenGL编程》Part 19 Creating a Virtual Reality Walkthrough Application

摘要: 本文是整个系列文章的最后一篇,将创建一个完整的虚拟office应用程序(如图所示)来做为ending. 1,在CCY457OpenGLView类中加入下述变量,用来保存office内各个物体的显示列表 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter... 阅读全文

posted @ 2008-11-07 16:39 Phinecos(洞庭散人) 阅读(5445) 评论(5) 推荐(0) 编辑

《基于MFC的OpenGL编程》Part 18 Reading objects from the OBJ File Format

摘要: 本文将介绍如何从Obj文件格式中创建3D对象,我们使用的是Nate Miller的obj格式加载类。 This would be very useful to create large Virtual Reality applications as we could make use of the readily available 3D model files or make ... 阅读全文

posted @ 2008-11-07 16:06 Phinecos(洞庭散人) 阅读(5090) 评论(9) 推荐(0) 编辑

《基于MFC的OpenGL编程》Part 17 Shadows

摘要: Shadows Conceptually drawing a shadow is quite simple. A shadow is produced when an object keeps light from a source from striking some object or surface behind the object, casting the shad... 阅读全文

posted @ 2008-11-07 15:33 Phinecos(洞庭散人) 阅读(3908) 评论(12) 推荐(1) 编辑

《基于MFC的OpenGL编程》Part 16 Reflection

摘要: Reflections Adding reflections to a program too can improve its realism to a great extent. Here we'll look at a simple method to create reflection where we simply redraw the object with an appropr... 阅读全文

posted @ 2008-11-07 14:58 Phinecos(洞庭散人) 阅读(2851) 评论(1) 推荐(0) 编辑

《基于MFC的OpenGL编程》Part 15 Selection

摘要: Selection Selection is a powerful feature of OpenGL that allows you click at some position of the OpenGL window using the mouse and determine which of your objects lie beneath it. The act of selecting... 阅读全文

posted @ 2008-11-07 14:29 Phinecos(洞庭散人) 阅读(3455) 评论(1) 推荐(0) 编辑

2008年11月6日

《基于MFC的OpenGL编程》Part 14 Quadrics

摘要: 本文在第11篇文章的基础上,为其加入显示各种二次曲面的代码; Quadrics Every quadric has a few settings associated with it. We have to create a quadric first and then customize its settings to render the shape we want. ... 阅读全文

posted @ 2008-11-06 17:12 Phinecos(洞庭散人) 阅读(2760) 评论(0) 推荐(0) 编辑

《基于MFC的OpenGL编程》Part 13 Creating 2D and 3D Text

摘要: wglUseFontBitmaps函数 The wglUseFontBitmaps() function creates a set of bitmap display lists based on the glyphs in the currently selected font in the current DC for use in the current OpenGL RC. It bas... 阅读全文

posted @ 2008-11-06 16:47 Phinecos(洞庭散人) 阅读(3846) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 61 下一页

导航