/external/mesa3d/src/mesa/main/ |
viewport.c | 27 * \file viewport.c 35 #include "viewport.h" 39 * Set the viewport. 55 * Set new viewport parameters and update derived state (the _WindowMap 59 * \param x, y coordinates of the lower left corner of the viewport rectangle. 60 * \param width width of the viewport rectangle. 61 * \param height height of the viewport rectangle. 80 ctx->Viewport.X = x; 81 ctx->Viewport.Width = width; 82 ctx->Viewport.Y = y [all...] |
state.c | 288 _math_matrix_viewport(&ctx->Viewport._WindowMap, 289 ctx->Viewport.X, ctx->Viewport.Y, 290 ctx->Viewport.Width, ctx->Viewport.Height, 291 ctx->Viewport.Near, ctx->Viewport.Far,
|
context.c | 128 #include "viewport.h" 733 /* Max texture size should be <= max viewport size (render to texture) */ [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_viewport.c | 36 * Update the viewport transformation matrix. Depends on: 37 * - viewport pos/size 51 * Y=0=TOP but OpenGL is Y=0=BOTTOM. So we need to invert the viewport. 65 GLfloat x = (GLfloat)ctx->Viewport.X; 66 GLfloat y = (GLfloat)ctx->Viewport.Y; 67 GLfloat z = ctx->Viewport.Near; 68 GLfloat half_width = (GLfloat)ctx->Viewport.Width * 0.5f; 69 GLfloat half_height = (GLfloat)ctx->Viewport.Height * 0.5f; 70 GLfloat half_depth = (GLfloat)(ctx->Viewport.Far - ctx->Viewport.Near) * 0.5f [all...] |
st_cb_viewport.c | 79 functions->Viewport = st_viewport;
|
/external/mesa3d/src/glx/apple/ |
apple_xgl_api_viewport.c | 46 __ogl_framework_api->Viewport(x, y, width, height);
|
apple_glapi.c | 78 __ogl_framework_api->Viewport(x, y, width, height);
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/viewport/ |
ScreenViewport.java | 17 package com.badlogic.gdx.utils.viewport; 22 /** A viewport where the world size is based on the size of the screen. By default 1 world unit == 1 screen pixel, but this ratio 26 public class ScreenViewport extends Viewport { 29 /** Creates a new viewport using a new {@link OrthographicCamera}. */
|
ScalingViewport.java | 17 package com.badlogic.gdx.utils.viewport; 25 /** A viewport that scales the world using {@link Scaling}. 39 public class ScalingViewport extends Viewport { 42 /** Creates a new viewport using a new {@link OrthographicCamera}. */
|
ExtendViewport.java | 17 package com.badlogic.gdx.utils.viewport; 24 /** A viewport that keeps the world aspect ratio by extending the world in one direction. The world is first scaled to fit within 25 * the viewport, then the shorter dimension is lengthened to fill the viewport. A maximum size can be specified to limit how much 28 public class ExtendViewport extends Viewport { 32 /** Creates a new viewport using a new {@link OrthographicCamera} with no maximum world size. */ 37 /** Creates a new viewport with no maximum world size. */ 42 /** Creates a new viewport using a new {@link OrthographicCamera} and a maximum world size. 48 /** Creates a new viewport with a maximum world size.
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
ViewportTest1.java | 33 import com.badlogic.gdx.utils.viewport.ExtendViewport; 34 import com.badlogic.gdx.utils.viewport.FillViewport; 35 import com.badlogic.gdx.utils.viewport.FitViewport; 36 import com.badlogic.gdx.utils.viewport.ScalingViewport; 37 import com.badlogic.gdx.utils.viewport.ScreenViewport; 38 import com.badlogic.gdx.utils.viewport.StretchViewport; 39 import com.badlogic.gdx.utils.viewport.Viewport; 43 Array<Viewport> viewports; 60 root.add("Press spacebar to change the viewport:").colspan(2).row() [all...] |
ViewportTest2.java | 33 import com.badlogic.gdx.utils.viewport.ExtendViewport; 34 import com.badlogic.gdx.utils.viewport.ScalingViewport; 35 import com.badlogic.gdx.utils.viewport.ScreenViewport; 36 import com.badlogic.gdx.utils.viewport.Viewport; 40 Array<Viewport> viewports; 41 Viewport viewport; field in class:ViewportTest2 66 viewport = viewports.first(); 74 int index = (viewports.indexOf(viewport, true) + 1) % viewports.size [all...] |
ViewportTest3.java | 37 import com.badlogic.gdx.utils.viewport.ExtendViewport; 38 import com.badlogic.gdx.utils.viewport.ScalingViewport; 39 import com.badlogic.gdx.utils.viewport.ScreenViewport; 40 import com.badlogic.gdx.utils.viewport.Viewport; 44 Array<Viewport> viewports; 45 Viewport viewport; field in class:ViewportTest3 76 viewport = viewports.first(); 91 int index = (viewports.indexOf(viewport, true) + 1) % viewports.size [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tiledmappacker/ |
TiledMapPackerTestRender.java | 32 import com.badlogic.gdx.utils.viewport.FitViewport; 33 import com.badlogic.gdx.utils.viewport.Viewport; 55 private Viewport viewport; field in class:TiledMapPackerTestRender 68 viewport = new FitViewport(WORLD_WIDTH, WORLD_HEIGHT); 69 cam = (OrthographicCamera)viewport.getCamera(); 80 viewport.apply(); 97 viewport.update(width, height, CENTER_CAM);
|
/external/mesa3d/src/mesa/tnl/ |
t_rasterpos.c | 362 * XXX some of this code (such as viewport xform, clip testing and setting 412 ctx->Current.RasterPos[0] = (ndc[0] * ctx->Viewport._WindowMap.m[MAT_SX] 413 + ctx->Viewport._WindowMap.m[MAT_TX]); 414 ctx->Current.RasterPos[1] = (ndc[1] * ctx->Viewport._WindowMap.m[MAT_SY] 415 + ctx->Viewport._WindowMap.m[MAT_TY]); 416 ctx->Current.RasterPos[2] = (ndc[2] * ctx->Viewport._WindowMap.m[MAT_SZ] 417 + ctx->Viewport._WindowMap.m[MAT_TZ]) 423 ctx->Viewport.Near, 424 ctx->Viewport.Far);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_cc.c | 52 ccv->min_depth = MIN2(ctx->Viewport.Near, ctx->Viewport.Far); 53 ccv->max_depth = MAX2(ctx->Viewport.Near, ctx->Viewport.Far); 222 /* Emit CC viewport relocation */
|
gen7_viewport_state.c | 38 const GLfloat *v = ctx->Viewport._WindowMap.m; 62 vp->viewport.m00 = v[MAT_SX]; 63 vp->viewport.m11 = v[MAT_SY] * y_scale; 64 vp->viewport.m22 = v[MAT_SZ] * depth_scale; 65 vp->viewport.m30 = v[MAT_TX]; 66 vp->viewport.m31 = v[MAT_TY] * y_scale + y_bias; 67 vp->viewport.m32 = v[MAT_TZ] * depth_scale;
|
gen6_viewport_state.c | 75 const GLfloat *v = ctx->Viewport._WindowMap.m; 91 sfv->viewport.m00 = v[MAT_SX]; 92 sfv->viewport.m11 = v[MAT_SY] * y_scale; 93 sfv->viewport.m22 = v[MAT_SZ] * depth_scale; 94 sfv->viewport.m30 = v[MAT_TX]; 95 sfv->viewport.m31 = v[MAT_TY] * y_scale + y_bias; 96 sfv->viewport.m32 = v[MAT_TZ] * depth_scale;
|
/external/skia/src/gpu/gl/ |
GrGLIRect.h | 27 GR_GL_CALL(gl, Viewport(fLeft, fBottom, fWidth, fHeight)); 40 // want to simultaneously make relative to GL's viewport
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
i915_state.c | 394 * Update the viewport transformation matrix. Depends on: 395 * - viewport pos/size 406 ctx->Viewport.X, 407 ctx->DrawBuffer->Height - ctx->Viewport.Y, 408 ctx->Viewport.Width, 409 -ctx->Viewport.Height, 410 ctx->Viewport.Near, 411 ctx->Viewport.Far, 415 ctx->Viewport.X, 416 ctx->Viewport.Y [all...] |
/external/libgdx/extensions/gdx-bullet/src/com/badlogic/gdx/physics/bullet/ |
DebugDrawer.java | 29 import com.badlogic.gdx.utils.viewport.Viewport; 41 private Viewport viewport; field in class:DebugDrawer 82 if (viewport != null) { 83 camera.project(location, viewport.getScreenX(), viewport.getScreenY(), viewport.getScreenWidth(), 84 viewport.getScreenHeight()); 110 /** Use this in case no {@code glViewport} is in use. Otherwise please supply the used {@link Viewport} t [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_common.c | 323 /* update viewport since it depends on window size */ 324 if (ctx->Driver.Viewport) { 325 ctx->Driver.Viewport(ctx, ctx->Viewport.X, ctx->Viewport.Y, 326 ctx->Viewport.Width, ctx->Viewport.Height); 340 ctx->Viewport.Near, 341 ctx->Viewport.Far); 428 old_viewport = ctx->Driver.Viewport; [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_util.h | 143 struct gl_viewport_attrib *vp = &ctx->Viewport; 160 struct gl_viewport_attrib *vp = &ctx->Viewport;
|
/external/mesa3d/src/mesa/swrast_setup/ |
ss_context.c | 170 ctx->Viewport._WindowMap.m, 268 const GLfloat *m = ctx->Viewport._WindowMap.m;
|
/external/skia/bench/ |
GLBench.cpp | 139 GR_GL_CALL(gl, Viewport(0, 0, screenWidth, screenHeight));
|