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

Unified Diff: native_client_sdk/src/examples/hello_world_instance3d/matrix.h

Issue 15011003: ppapi_simple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright Created 7 years, 7 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: native_client_sdk/src/examples/hello_world_instance3d/matrix.h
diff --git a/native_client_sdk/src/examples/hello_world_instance3d/matrix.h b/native_client_sdk/src/examples/hello_world_instance3d/matrix.h
deleted file mode 100644
index ed094eda094c092ab37d33ea973419894e2da10f..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/examples/hello_world_instance3d/matrix.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef EXAMPLES_HELLO_WORLD_GLES_MATRIX_H
-#define EXAMPLES_HELLO_WORLD_GLES_MATRIX_H
-
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/** @file matrix.cc
- * Implements simple matrix manipulation functions.
- */
-
-//-----------------------------------------------------------------------------
-#define _USE_MATH_DEFINES 1
-#include <limits.h>
-#include <math.h>
-#include <GLES2/gl2.h>
-
-typedef GLfloat Matrix_t[16];
-
-/// Since GLES2 doesn't have all the nifty matrix transform functions that GL
-/// has, we emulate some of them here for the sake of sanity from:
-/// http://www.opengl.org/wiki/GluPerspective_code
-void glhFrustumf2(Matrix_t mat,
- GLfloat left,
- GLfloat right,
- GLfloat bottom,
- GLfloat top,
- GLfloat znear,
- GLfloat zfar);
-
-void glhPerspectivef2(Matrix_t mat,
- GLfloat fovyInDegrees,
- GLfloat aspectRatio,
- GLfloat znear,
- GLfloat zfar);
-
-void identity_matrix(Matrix_t mat);
-void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat);
-void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat);
-void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
-
-#endif // EXAMPLES_HELLO_WORLD_GLES_MATRIX_H

Powered by Google App Engine
This is Rietveld 408576698