Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dorodnic committed Feb 7, 2018
1 parent e5380a8 commit 489c9a6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/pointcloud/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ auto data = pipe.wait_for_frames(); // Wait for next set of frames from the came
Using helper functions on the `frameset` object we check for new depth and color frames. We pass it to the `pointcloud` object to use as the texture, and also give it to OpenGL with the help of the `texture` class. We generate a new pointcloud.
```cpp
// Wait for the next set of frames from the camera
auto frames = pipe.wait_for_frames();
auto depth = frames.get_depth_frame();
auto frames = pipe.wait_for_frames();
auto depth = frames.get_depth_frame();

// Generate the pointcloud and texture mappings
points = pc.calculate(depth);
// Generate the pointcloud and texture mappings
points = pc.calculate(depth);

auto color = frames.get_color_frame();
auto color = frames.get_color_frame();

// Tell pointcloud object to map to this color frame
pc.map_to(color);
// Tell pointcloud object to map to this color frame
pc.map_to(color);

// Upload the color frame to OpenGL
app_state.tex.upload(color);
// Upload the color frame to OpenGL
app_state.tex.upload(color);

```

Expand Down

0 comments on commit 489c9a6

Please sign in to comment.