/frameworks/rs/scriptc/ |
H A D | rs_math.rsh | 98 * @param near plane 105 float4 *near, float4 *far) { 127 near->x = viewProj->m[3] + viewProj->m[2]; 128 near->y = viewProj->m[7] + viewProj->m[6]; 129 near->z = viewProj->m[11] + viewProj->m[10]; 130 near->w = viewProj->m[15] + viewProj->m[14]; 145 len = length(near->xyz); 146 *near /= len; 158 * @param near plane 165 float4 *near, float [all...] |
H A D | rs_matrix.rsh | 239 * @param near 243 rsMatrixLoadOrtho(rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far); 253 * @param near 257 rsMatrixLoadFrustum(rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far); 265 * @param near 269 rsMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 272 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 276 m[10]= -2.f / (far - near); 279 m[14]= -(far + near) / (far - near); 282 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 284 m[0] = 2.f * near / (right - left); 285 m[5] = 2.f * near / (top - bottom); 288 m[10]= -(far + near) / (far - near); 290 m[14]= -2.f * far * near / (fa 294 loadPerspective(float fovy, float aspect, float near, float far) argument [all...] |
H A D | rsMatrix4x4.h | 49 void loadPerspective(float fovy, float aspect, float near, float far);
|
H A D | rsRuntime.h | 197 float bottom, float top, float near, float far); 199 float bottom, float top, float near, float far); 200 void rsrMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | Camera.java | 41 mData.near = 0.1f; 63 mData.near = n;
|
H A D | ColladaParser.java | 462 float near = getFloat(camera, "znear");
467 sceneCamera.setNear(near);
|
/frameworks/native/include/ui/ |
H A D | mat4.h | 134 static tmat44 ortho(T left, T right, T bottom, T top, T near, T far); 136 static tmat44 frustum(T left, T right, T bottom, T top, T near, T far); 232 tmat44<T> tmat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { argument 236 m[2][2] = -2 / (far - near); 239 m[3][2] = -(far + near) / (far - near); 244 tmat44<T> tmat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { argument 248 T C = (far + near) / (far - near); 249 T D = (2 * far * near) / (fa [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 266 * @param near 271 float near, float far) { 278 if (near == far) { 279 throw new IllegalArgumentException("near == far"); 284 final float r_depth = 1.0f / (far - near); 290 final float tz = -(far + near) * r_depth; 320 * @param near 325 float near, float far) { 332 if (near == far) { 333 throw new IllegalArgumentException("near 269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument 323 frustumM(float[] m, int offset, float left, float right, float bottom, float top, float near, float far) argument [all...] |
H A D | GLErrorWrapper.java | 231 public void glDepthRangef(float near, float far) { argument 233 mgl.glDepthRangef(near, far); 237 public void glDepthRangex(int near, int far) { argument 239 mgl.glDepthRangex(near, far); 334 float near, float far) { 336 mgl.glFrustumf(left, right, bottom, top, near, far); 340 public void glFrustumx(int left, int right, int bottom, int top, int near, argument 343 mgl.glFrustumx(left, right, bottom, top, near, far); 608 float near, float far) { 610 mgl.glOrthof(left, right, bottom, top, near, fa 333 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 607 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 614 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
H A D | GLLogWrapper.java | 1461 public void glDepthRangef(float near, float far) { argument 1463 arg("near", near); 1467 mgl.glDepthRangef(near, far); 1471 public void glDepthRangex(int near, int far) { argument 1473 arg("near", near); 1477 mgl.glDepthRangex(near, far); 1667 float near, float far) { 1673 arg("near", nea 1666 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 1681 glFrustumx(int left, int right, int bottom, int top, int near, int far) argument 2158 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 2173 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuRuntimeMath.cpp | 83 static void SC_MatrixLoadPerspective(Matrix4x4 *m, float fovy, float aspect, float near, float far) { argument 84 m->loadPerspective(fovy, aspect, near, far);
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Matrix4f.java | 253 * @param n location of the near clipping plane 287 * @param n location of the near clipping plane, must be positive 308 * @param near near cliping plane, must be positive 311 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); 316 loadFrustum(left, right, bottom, top, near, far); 322 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix4f.java | 253 * @param n location of the near clipping plane 287 * @param n location of the near clipping plane, must be positive 308 * @param near near cliping plane, must be positive 311 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); 316 loadFrustum(left, right, bottom, top, near, far); 322 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 372 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 377 data[kScaleZ] = -2.0f / (far - near); 380 data[kTranslateZ] = -(far + near) / (far - near);
|
H A D | Matrix.h | 125 void loadOrtho(float left, float right, float bottom, float top, float near, float far);
|
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 997 return getClass().getSimpleName() + " near " + getSnippet();
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | carousel.rs | 65 float near; 277 0.1f, // near 458 static void loadPerspectiveMatrix(rs_matrix4x4* matrix, float fovy, float aspect, float near, float far) 461 float top = near * tan((float) (fovy * M_PI / 360.0f)); 465 rsMatrixLoadFrustum(matrix, left, right, bottom, top, near, far); 1044 loadPerspectiveMatrix(&projectionMatrix, camera.fov, camera.aspect, camera.near, camera.far);
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 702 GLfloat near = c->transforms.vpt.zNear; local 704 GLfloat A = div2f(far - near); 705 GLfloat B = div2f(far + near);
|