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

Unified Diff: nacltoons/src/physics_layer.h

Issue 12380036: [nacltoons] Add design resolution. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 months 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
Index: nacltoons/src/physics_layer.h
diff --git a/nacltoons/src/physics_layer.h b/nacltoons/src/physics_layer.h
index 4bf4b7adef97b5021f65127c639a303dde052a4b..feca478876c47b70a3107c2123e06f7c4892bbea 100644
--- a/nacltoons/src/physics_layer.h
+++ b/nacltoons/src/physics_layer.h
@@ -50,6 +50,8 @@ class PhysicsLayer : public CCLayerColor {
void DrawLine(CCPoint& start, CCPoint& end);
// Called by ccTouchesBegan to draw a single point.
void DrawPoint(CCPoint& location);
+ // Clamp brush location to within the visible area
+ void ClampBrushLocation(CCPoint& point);
void AddLineToBody(b2Body *body, CCPoint start, CCPoint end);
void AddSphereToBody(b2Body *body, CCPoint* location);

Powered by Google App Engine
This is Rietveld 408576698