Ogre手动绘制立方体以及添加材质

摘要: 转载,嗯,原始不知道是谁了,不管了,我看的也是转的。1.用Ogre来绘制一个立方体ManualObject* cube;cube = mSceneMgr->createManualObject("cube");cube->begin("cubeMaterial"); // 顶点 cube->position( -100, -100, -100); //0 cube->colour(0.0, 0.0, 0.0); cube->position( 100, -100, -100); //1 cube->colour(1.0 阅读全文
posted @ 2013-08-06 10:49 预见未来 阅读(616) 评论(0) 推荐(0) 编辑

分享一个二维码库,LibQREncode

摘要: 库下载地址:http://pan.baidu.com/share/link?shareid=665942038&uk=1007415423建立一个工程,库是源码,直接添加头文件和c文件即可,不必多说。#include "stdafx.h"#include #include #include #include #include #include #include #include #include "qrencode.h"// -------------------------------------------------------// --- 阅读全文
posted @ 2013-08-02 15:25 预见未来 阅读(3586) 评论(4) 推荐(0) 编辑

AutoCAD ObjectARX和RealDWG的基本数据操作

摘要: .dwg文件的读取。拥有RealDWG或者ObjectARX不必多说。安装RealDWG后RealDWG目录下的Samples看看。新建工程配置好Inc,Lib,附加依赖等。不必多说。需要将AcDbHostApplicationServices实现一遍。sample自带的即可,也可自己按照自己的来写。 1 int Verbose = 0; 2 int Copy = 0; 3 int Header = 0; 4 int Tables = 0; 5 int doExtents = 0; 6 int showErased = 0; 7 int resolveXrefs = 0; 8 ... 阅读全文
posted @ 2013-08-01 15:36 预见未来 阅读(3992) 评论(3) 推荐(0) 编辑