上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

D3DFVF_XYZ和D3DFVF_XYZRHW的区别

摘要: D3DFVF_XYZ和D3DFVF_XYZRHW有什么区别?以前好像没有仔细思考过,只是见到Beginning DirectX9中如是说:The RHW value, which stands for Reciprocal of Homogeneous W[1], tells Direct3D that the vertices that are being used are already in screen coordinates. This value is normally used in fog and clipping calculations and should be set 阅读全文
posted @ 2012-06-30 08:37 zengqh 阅读(240) 评论(0) 推荐(0) 编辑

VS header and source

摘要: header://// Copyright (c) 2013-2014 the enn project.// // Permission is hereby granted, free of charge, to any person obtaining a copy// of this softw... 阅读全文
posted @ 2012-06-27 00:16 zengqh 阅读(231) 评论(0) 推荐(0) 编辑

lua 调用C/C++

摘要: /*** Copyright (c) By zengqh.** This program is just for fun or demo, in the hope that it * will be useful, you can redistribute it and/or modify freely.** Time: 2012/06/26* File: demo.cpp* Blog: http://www.cnblogs.com/zengqh/**/#include <Windows.h>#include <stdlib.h>#include <stdio.h 阅读全文
posted @ 2012-06-26 22:11 zengqh 阅读(228) 评论(0) 推荐(0) 编辑

qt creator 无法调试

摘要: 最近安装了qt sdk1.2来学习,发现无法调试!出现以下错误“None of the debugger engines 'cdb engine,gdb engine' capable of debugging binaries of the type 'x86-windows-msvc2010-pe-32bit' is configured correctly”。参考了qt的reference document “http://doc.qt.nokia.com/qtcreator-snapshot/creator-debugger-engines.html#s 阅读全文
posted @ 2012-06-17 15:27 zengqh 阅读(469) 评论(0) 推荐(0) 编辑

6.12

摘要: 今天搬家了,希望这是一个安静的地方。上天保佑我吧。 阅读全文
posted @ 2012-06-12 11:53 zengqh 阅读(101) 评论(0) 推荐(0) 编辑

这狗日的生活

摘要: 本来很想平静,无奈这狗日的生活总是叫人不安生。本来不想做愤青,可是这无奈的人生总是让人想骂娘。任何事情都是不顺眼的茬子,任何人都是坎坷道路上的狗屎,你踩不上也要恶心你一下。于是我很想愤恨地用破坏来发泄我心中的怨怼。可是咱是有素质的人。于是只能让这种狗日的心情留在心中折磨的自己撕心裂肺还无处发泄于是崩溃在变态的边缘恨不得下一秒钟要么自己爆炸要么地球毁灭。只有这样,世界才会安静。 阅读全文
posted @ 2012-06-11 02:42 zengqh 阅读(329) 评论(0) 推荐(0) 编辑

小楼一夜听春雨,天下谁人不识君?

摘要: 在江湖中,男人都是不幸的. 他们不得不用一只手握紧冰冷的武器,而另一只手去握紧仇恨或者是欲望.然后,在寒夜里一个人慢慢喝着某种烈酒,复杂地说一句---人在江湖,身不由己。 江湖里的女人却更为不幸,无论是温婉清丽妩媚风流还是天真单纯,有心计或者没有的,她们跌跌撞撞,只不过是,要在一个男人的世界里寻找着最原始的幸福。到最后,找到的,通常只有幻灭。 幸福就像是刻在弯刀上的那句诗,春雨只有一夜,人却可能惆怅一生。 青青,秦可情,谢小玉,她们都是这样的追寻者,也都是欲望的牺牲品。这里,讲了命运,也讲了女人。 但它始终不是一个明快的故事,画面诗意色调丰富人很美意味却太沧桑。每个人的话语里... 阅读全文
posted @ 2012-05-23 12:59 zengqh 阅读(265) 评论(0) 推荐(0) 编辑

glsl之多重纹理演示

摘要: 源代码:http://download.csdn.net/detail/netrookie/4316081vertex shader:struct MaterialParameters { vec4 emission; vec4 ambient; vec4 diffuse; vec4 specular; float shininess;};struct LightSourceParameters { vec4 ambient; vec4 diffuse; vec4 specular; vec4 position; vec4 halfV... 阅读全文
posted @ 2012-05-20 16:58 zengqh 阅读(959) 评论(0) 推荐(0) 编辑

glsl之纹理演示

摘要: 前几章的shader有点问题,为什么在公司的机器上运行正常呢。代码:http://download.csdn.net/detail/netrookie/4315735vertex shader:struct MaterialParameters { vec4 emission; vec4 ambient; vec4 diffuse; vec4 specular; float shininess;};struct LightSourceParameters { vec4 ambient; vec4 diffuse; vec4 specular; vec4 po... 阅读全文
posted @ 2012-05-20 14:10 zengqh 阅读(971) 评论(0) 推荐(0) 编辑

聚光灯模型

摘要: 参考:http://www.lighthouse3d.com/tutorials/glsl-tutorial/spot-light-per-pixel/例子源代码:http://download.csdn.net/detail/netrookie/4311805glsl vertex shaderstruct MaterialParameters { vec4 emission; vec4 ambient; vec4 diffuse; vec4 specular; float shininess;};struct LightSourceParameters { vec4... 阅读全文
posted @ 2012-05-18 14:55 zengqh 阅读(299) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页