Scene_blend 設定與情境的混合方式,有兩種形式1. scene_blend<add|modulate|alpha_blend>這個格式比較簡單常用Add——渲染的結果將被以相加的方式加入到情境之中,與Scene_blend one one 等價,對爆炸,火焰,光照,幽靈等效果比較好。Modulate——渲染的結果與情境相乘。對煙、玻璃杯和單個的透明效果很好。與scene_blend src_color one_minus_src_colour等價Alpha_blend——
之前的代碼是這樣寫的:CFileFind find;find.FindFile("test");CString strPath = find.GetFilePath();結果程式就中斷了。原來:在MSDN中是這樣說的Call this member function to open a file search.After calling FindFile to begin the file search, call FindNextFile to retrieve subsequent
當前mobile平台上主流的C++開發環境有Windows Mobile, Symbian, Brew, Linux等等, 為了加速應用程式在各個平台上的開發, 通常的辦法是做一個跨平台的架構(Cross Platform Framework)。那樣很多平台無關的代碼共用無疑加速了開發,現在關鍵的問題是如何做到這樣平台抽象層。我們看到過很多和下面類似的代碼:/*** salThread.h -- declare of a sal thead* ScanLife** Created by
題目出自:http://fayaa.com/tiku/view/3/嗯,照舊,據傳說是MS/Google等等IT名企業的面試題:給定一個字串,比如:the quick brown fox jumps over the lazy dog.請設計程式將這個句子倒轉,即,完成以後如下:dog. lazy the over jumps fox brown quick theBTW: 時間空間都很重要Update:給出一個解以後,面試官一般會讓你“原地”倒轉,即:不允許分配一個O(n)的空間,要求空間O(
最近這個東西很多被問及,軟體動態升級的時候可能可以用到,在這裡做一下記錄。就知道的方法有2個, 一個是通過ShellExecuteEx直接運行對應的CAB檔案。一個是調用CreateProcess用wceload來調用這個CAB。 兩個方法都可以,下面是寫的測試程式中的代碼: case ID_HELP_INSTALL1:{// Specify an action for the application to perform, flags and other
brew mobile phone推出有一段時間了,在模擬器上也嘗試了一點新的東西, 比如他的Flash開發就是亮點.雖然到現在我們沒有拿到手機但是可以看得出,這個Flash開發還是非常強大的. 下面先轉載一段brew mp上的關於環境搭建的部分內容. This section explains the installation procedure for setting up a Brew MP Flash development environment using Adobe
Palm Garnet OS development environment installation. Extract the cw9palm file and install the code warrior v9.0 for palm.Attention: Make sure that the extract path name is not long since Windows won’t support path name longer that 260 characters
這個問題也是演算法導論上提過的問題。注意這個問題是Subsequence不是Substring。substring的話就是子串,子串的要求的連續相等的字元序列,而subsequence不要求連續。比如說ABCD和ABD。他們的longest common subsequence就是ABD。而Longest common substring就是AB。這個問題和Edit