Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2100)

Unified Diff: native_client_sdk/src/doc/cds2014/cpp.rst

Issue 731323003: Revising cds2014 samples based on first round of feedback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add html Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/doc_generated/sdk/download.html ('k') | native_client_sdk/src/doc/cds2014/python.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/cds2014/cpp.rst
diff --git a/native_client_sdk/src/doc/cds2014/cpp.rst b/native_client_sdk/src/doc/cds2014/cpp.rst
index e217aca594c67c0e6155ae55ef4ba42847c899df..9c62ffb2f1fcf13a56c55e84d9ec5fc23d51f1e8 100644
--- a/native_client_sdk/src/doc/cds2014/cpp.rst
+++ b/native_client_sdk/src/doc/cds2014/cpp.rst
@@ -73,6 +73,8 @@ Before you begin, you'll want to copy our fire program to a new name,
since you might decide later that you like fire better, I know I do::
cp fire.cc water.cc
+ git add water.cc
+ git commit -am "adding water"
For this codelab, you'll only need to change `water.cc`.
@@ -93,7 +95,7 @@ our flame effect is actually monochrome. A single intensity
value is used in the flame simulation. This is then converted
to color based on a multi-color gradient.
To alter the color-scheme, locate this palette, and exchange
-the red component for blue.
+the red component (first) with blue (third).
Hint: Focus your energies on the CreatePalette function.
@@ -111,14 +113,6 @@ The simulation of fire loops over each pixel,
bottom row to top row,
diffusing "fire stuff" behind the sweep.
You'll want to reverse this.
-Note the simulation buffer is stored in |row_major| from bottom to top.
-Accesses of + width and - width are used to reach rows above and below
-the current line.
-
-.. |row_major| raw:: html
-
- <a href="http://en.wikipedia.org/wiki/Row-major_order"
- target="_blank">Row-major order</a>
Hint: You'll need to change the y loop direction in the UpdateFlames function.
« no previous file with comments | « native_client_sdk/doc_generated/sdk/download.html ('k') | native_client_sdk/src/doc/cds2014/python.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698