原创 Visual Studio 2010 User-Defined Macros

http://msdn.microsoft.com/en-us/library/f2t8ztwy.aspx

原创 My physically based simulation book list(To be continued)

Here is the list of the maths and physics books that I might read in the future (no time for rendering books): Maths a

原创 OpenGL程序中與glew相關的未處理異常的解決方案

問題:程序中已經正確包含glew相關的頭文件和庫文件,glew也已經通過glewInit()正確初始化,程序運行到glGenVertexArrays處時仍然出現運行時錯誤: ***.exe(某opengl可執行程序)中的0x*******

原创 Multi-Core CPU articles

Scalable Multithreaded Programming with Thread Pools  http://msdn.microsoft.com/en-us/magazine/gg232758.aspx

原创 [link]Useful Libraries

[1] A C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms: http://eig

原创 《重構--改善既有代碼的設計》讀書筆記之一:起始代碼之C++ Version

爲了更好地理解《重構》一書中的思想,將其代碼用C++形式表現出來並結合書本內容逐步重構。 movie.h: #ifndef MOVIE_H #define MOVIE_H #include <string> using std:

原创 [Link]Google C++ Style Guide

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml 

原创 函數名之對仗詞使用

From 《代碼大全2》 7.3節 add/remove increment/decrement open/close begin/end insert/delete show/hide create/dest

原创 《重構--改善既有代碼的設計》讀書筆記之四:將條件分支語句放入合適類中

要點:最好不要在另一個對象的屬性基礎上運用條件分支語句,如果不得不使用,也應該在對象自己的數據上使用。 方法:getCharge() 和 getFrequentRenterPoints()移動到Movie類中去。 在運用繼承重構代碼之前

原创 《重構--改善既有代碼的設計》讀書筆記之五:運用多態取代條件邏輯(if/else , switch)

先閱讀完《大話設計模式》&《設計模式--可複用面向對象軟件的基礎》中有關State模式的章節,對狀態模式有個較爲深入的瞭解,然後繼續《重構》中1.4節利用State模式表現不同影片的價格狀態。 步驟1: 運用Replace Type Co

原创 筆試面試內容收集

1. 面試中strcpy源碼的判分標準 2. C++面試中string類的一種正確簡明的寫法 To be continued...

原创 SPH fluid simulation methods & source codes (cpu & gpu)

這篇文章主要源於我在知乎上回到的一個問題 請教一篇siggraph上比較好實現的流體模擬論文?  關於 Fluid Simulation,本文主要介紹使用基於 SPH 的方法模擬水的 Siggraph 論文,這類基於 SPH 的方法代碼

原创 Windows 7 (64bit) + visual studio 2010 + cygwin + PBRT(version 2)編譯

源碼地址(github): Physically Based Rendering: From Theory to Implementation (2nd version) 步驟: (1)下載源碼,可以從github上Fork/Clone一

原创 推薦!國外程序員整理的 C++ 資源大全

《推薦!國外程序員整理的 C++ 資源大全》  

原创 面向對象vs面向數據

http://blog.csdn.net/xoyojank/article/details/8739957 要點摘錄: SIMD, Cache friendly 其實大多數做引擎的人都有考慮, 好多人都會說"SSE我很熟"我去, 看