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

Side by Side Diff: native_client_sdk/src/examples/fullscreen_tumbler/transforms.h

Issue 13106002: [NaCl SDK] A bunch of spelling fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix presubmit Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXAMPLES_TUMBLER_TRANSFORMS_H_ 5 #ifndef EXAMPLES_TUMBLER_TRANSFORMS_H_
6 #define EXAMPLES_TUMBLER_TRANSFORMS_H_ 6 #define EXAMPLES_TUMBLER_TRANSFORMS_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 // A very simple set of 4x4 matrix routines. In all these routines, the input 10 // A very simple set of 4x4 matrix routines. In all these routines, the input
11 // matrix is assumed to be a 4x4 of GLfloats. 11 // matrix is assumed to be a 4x4 of GLfloats.
12 12
13 namespace transform_4x4 { 13 namespace transform_4x4 {
14 14
15 // Pre-multply |m| with a projection transformation 4x4 matrix from a 15 // Pre-multiply |m| with a projection transformation 4x4 matrix from a
16 // truncated pyramid viewing frustum. 16 // truncated pyramid viewing frustum.
17 void Frustum(GLfloat* m, 17 void Frustum(GLfloat* m,
18 GLfloat left, 18 GLfloat left,
19 GLfloat right, 19 GLfloat right,
20 GLfloat bottom, 20 GLfloat bottom,
21 GLfloat top, 21 GLfloat top,
22 GLfloat near_z, 22 GLfloat near_z,
23 GLfloat far_z); 23 GLfloat far_z);
24 24
25 // Replace |m| with the 4x4 identity matrix. 25 // Replace |m| with the 4x4 identity matrix.
(...skipping 10 matching lines...) Expand all
36 GLfloat near_z, 36 GLfloat near_z,
37 GLfloat far_z); 37 GLfloat far_z);
38 38
39 // Pre-multiply |m| with a matrix that represents a translation by |tx|, |ty|, 39 // Pre-multiply |m| with a matrix that represents a translation by |tx|, |ty|,
40 // |tz|. 40 // |tz|.
41 void Translate(GLfloat* m, GLfloat tx, GLfloat ty, GLfloat tz); 41 void Translate(GLfloat* m, GLfloat tx, GLfloat ty, GLfloat tz);
42 } // namespace transform_4x4 42 } // namespace transform_4x4
43 43
44 #endif // EXAMPLES_TUMBLER_TRANSFORMS_H_ 44 #endif // EXAMPLES_TUMBLER_TRANSFORMS_H_
45 45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698