自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

转载 notepad++ 正则表达式(记录)

\t 制表符.\n 新行.. 匹配任意字符.| 匹配表达式左边和右边的字符. 例如, "ab|bc" 匹配 "ab" 或者 "bc".[] 匹配列表之中的任何单个字符. 例如, "[ab]" 匹配 "a" 或者 "b". "[0-9]" 匹配任意数字.[^] 匹配列表之外的任何单个字符. 例如, "[^ab]" 匹配 "a" 和 "b" 以外的字符. "[^0-9]

2016-12-15 15:18:02 638

原创 c++调用类内部使用成员变量和inline函数的区别

test code:#include "stdafx.h"#include class Obj{public:void Say(){printf("I'm Obj. \n");};};class Foo{public:Foo(){m_pObj = new Obj();}void SayObjByMember(){m_p

2016-12-14 11:26:22 468

转载 gpu debug brief

GPU Debugging on Android DevicesHere are some notes on getting the GPU/OpenGL ES debuggers working with devices.NVidia’s Tegra tool seems the best (even has integrated mesh viewer). Qualcomm’s A

2016-09-09 19:44:32 1079

转载 cpu gpu瓶颈

Locating the BottleneckLocating the bottleneck is half the battle in optimization, because it enables you to make intelligent decisions about focusing your actual optimization efforts. Figure 28-2

2016-07-05 17:06:37 794

转载 android打印堆栈--自测通过

#include #include #include #include namespace {struct BacktraceState{    void** current;    void** end;};static _Unwind_Reason_Code unwindCallback(struct _Unwind_Co

2016-07-05 17:04:25 661

转载 分析android crash log(记录未实验)

2 c/c++, 通常情况下,可以通过segment fault 等错误即信号 SIGSEGV(11) 做出相应处理,即设置SIGSEGV的handler调用libc的backtrace,即可打印对于的callback stack;定位问题所在;但在android 中, bionic 不提供类似功能,而且只能通过logcat才能看到log信息,但是我们也可以根据android出错信息获得调用堆栈信

2016-07-04 11:42:49 1202

原创 transparentblt

透明位图的显示作者:王骏下载本文示例代码包含透明色的位图的绘制方法有多种,最简单的方法是调用现成的函数:TransparentBlt,也可以通过自己的代码实现类似TransparentBlt的功能,实现过程也有两种形式,一种是事先做一张掩码位图,另一种是动态生成掩码位图。本文将介绍动态生成掩码位图绘制具有透明区域位图的方法。一、TransparentBlt 函数的使用 TransparentBlt

2008-06-30 11:15:00 937

原创 VC中在listctrl中嵌入进度条

VC中在listctrl中嵌入进度条 其实要实现这个很容易,以下是自绘ListCtrl的代码,首先继承CListCtrl,然后增加函数:void CProcessList::OnCustomDraw(NMHDR *pNMHDR, LRESULT *pResult){ //draw each item.set txt color,bkcolor.... NMLVCUSTOMDRAW* pLVCD =

2008-06-28 14:39:00 625

原创 队列化消息与非队列化消息 & & Windows消息机制要点

我们已经谈到过,Windows给窗口发送消息,这意味着Windows呼叫窗口消息处理程序。但是,Windows程序也有一个消息循环,它呼叫GetMessage从消息队列中取出消息,并且呼叫DispatchMessage将消息发送给窗口消息处理程序。那么,Windows程序是依次等待消息(类似于普通程序中相同的键盘输入),然后将消息送到某地方去的吗?或者,它是直接从程序外面接收消息的吗?

2008-01-19 17:25:00 580

Creating Games in C++: A Step-by-Step Guide

Do you love video games? Ever wondered if you could create one of your own, with all the bells and whistles? It\'s not as complicated as you\'d think, and you don\'t need to be a math whiz or a programming genius to do it. In fact, everything you need to create your first game, \"Invasion of the Slugwroths,\" is included in this book and CD-ROM. Author David Conger starts at square one, introducing the tools of the trade and all the basic concepts for getting started programming with C++, the language that powers most current commercial games. Plus, he\'s put a wealth of top-notch (and free) tools on the CD-ROM, including the Dev-C++ compiler, linker, and debugger--and his own LlamaWorks2D game engine. Step-by-step instructions and ample illustrations take you through game program structure, integrating sound and music into games, floating-point math, C++ arrays, and much more. Using the sample programs and the source code to run them, you can follow along as you learn. Bio: David Conger has been programming professionally for over 23 years. Along with countless custom business applications, he has written several PC and online games. Conger also worked on graphics firmware for military aircraft, and taught computer science at the university level for four years. Conger has written numerous books on C, C++, and other computer-related topics. He lives in western Washington State and has also published a collection of Indian folk tales.<br>

2008-08-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除