- 博客(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
680
原创 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
510
转载 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
1163
转载 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
859
转载 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
712
转载 分析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
1299
原创 transparentblt
透明位图的显示作者:王骏下载本文示例代码包含透明色的位图的绘制方法有多种,最简单的方法是调用现成的函数:TransparentBlt,也可以通过自己的代码实现类似TransparentBlt的功能,实现过程也有两种形式,一种是事先做一张掩码位图,另一种是动态生成掩码位图。本文将介绍动态生成掩码位图绘制具有透明区域位图的方法。一、TransparentBlt 函数的使用 TransparentBlt
2008-06-30 11:15:00
975
原创 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
671
原创 队列化消息与非队列化消息 & & Windows消息机制要点
我们已经谈到过,Windows给窗口发送消息,这意味着Windows呼叫窗口消息处理程序。但是,Windows程序也有一个消息循环,它呼叫GetMessage从消息队列中取出消息,并且呼叫DispatchMessage将消息发送给窗口消息处理程序。那么,Windows程序是依次等待消息(类似于普通程序中相同的键盘输入),然后将消息送到某地方去的吗?或者,它是直接从程序外面接收消息的吗?
2008-01-19 17:25:00
637
Creating Games in C++: A Step-by-Step Guide
2008-08-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人