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

Side by Side Diff: samples/o3djs/fps.js

Issue 151062: Fix a minor doc issue in fps.js (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 * </script> 138 * </script>
139 * <div id="o3d" style="width: 600px; height: 600px"></div> 139 * <div id="o3d" style="width: 600px; height: 600px"></div>
140 * </body></html> 140 * </body></html>
141 * </pre> 141 * </pre>
142 * 142 *
143 * @param {!o3d.Pack} pack Pack to create objects in. 143 * @param {!o3d.Pack} pack Pack to create objects in.
144 * @param {number} clientWidth width of client area. 144 * @param {number} clientWidth width of client area.
145 * @param {number} clientHeight Height of client area. 145 * @param {number} clientHeight Height of client area.
146 * @param {!o3d.RenderNode} opt_parent RenderNode to use as parent for 146 * @param {!o3d.RenderNode} opt_parent RenderNode to use as parent for
147 * ViewInfo that will be used to render the FPS with. 147 * ViewInfo that will be used to render the FPS with.
148 * @return {!o3djs.fps.FPSManager} The created FPSManager.
148 */ 149 */
149 o3djs.fps.createFPSManager = function(pack, 150 o3djs.fps.createFPSManager = function(pack,
150 clientWidth, 151 clientWidth,
151 clientHeight, 152 clientHeight,
152 opt_parent) { 153 opt_parent) {
153 return new o3djs.fps.FPSManager(pack, clientWidth, clientHeight, opt_parent); 154 return new o3djs.fps.FPSManager(pack, clientWidth, clientHeight, opt_parent);
154 }; 155 };
155 156
156 /** 157 /**
157 * A class for displaying frames per second. 158 * A class for displaying frames per second.
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 this.updateTransform_(); 459 this.updateTransform_();
459 }; 460 };
460 461
461 /** 462 /**
462 * Sets the color of this ColorRect. 463 * Sets the color of this ColorRect.
463 * @param {!o3djs.math.Vector4} color initial color. 464 * @param {!o3djs.math.Vector4} color initial color.
464 */ 465 */
465 o3djs.fps.ColorRect.prototype.setColor = function(color) { 466 o3djs.fps.ColorRect.prototype.setColor = function(color) {
466 this.colorParam_.value = color; 467 this.colorParam_.value = color;
467 }; 468 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698