/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
H A D | Camera.java | 189 * @param viewportX the coordinate of the bottom left corner of the viewport in glViewport coordinates.
193 public Vector3 unproject (Vector3 screenCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight) {
argument 195 x = x - viewportX;
231 * @param viewportX the coordinate of the bottom left corner of the viewport in glViewport coordinates.
235 public Vector3 project (Vector3 worldCoords, float viewportX, float viewportY, float viewportWidth, float viewportHeight) {
argument 237 worldCoords.x = viewportWidth * (worldCoords.x + 1) / 2 + viewportX;
246 * @param viewportX the coordinate of the bottom left corner of the viewport in glViewport coordinates.
251 public Ray getPickRay (float screenX, float screenY, float viewportX, float viewportY, float viewportWidth,
argument 253 unproject(ray.origin.set(screenX, screenY, 0), viewportX, viewportY, viewportWidth, viewportHeight);
254 unproject(ray.direction.set(screenX, screenY, 1), viewportX, viewport [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | es2fRandomFragmentOpTests.cpp | 137 int viewportX = de::min(quad.posA.x(), quad.posB.x()); 149 gl.viewport(baseX+viewportX, baseY+viewportY, viewportW, viewportH); 153 static void setGLState (glu::CallLogWrapper& wrapper, const RenderState& state, int viewportX, int viewportY) 158 wrapper.glScissor(viewportX+state.scissorRectangle.left, viewportY+state.scissorRectangle.bottom, 302 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); 331 m_callLogWrapper.glViewport(viewportX, viewportY, width, height); 335 setGLState(m_callLogWrapper, cmd->state, viewportX, viewportY); local 343 renderQuad(gl, *m_renderer, cmd->quad, viewportX, viewportY); 371 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedImg.getAccess());
|
H A D | es2fDitheringTests.cpp | 247 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportWid); local 254 GLU_CHECK_CALL(glViewport(viewportX, viewportY, viewportWid, viewportHei)); 272 glu::readPixels(m_renderCtx, viewportX, viewportY, renderedImg.getAccess()); 365 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportWid); local 370 GLU_CHECK_CALL(glViewport(viewportX, viewportY, viewportWid, viewportHei)); 388 glu::readPixels(m_renderCtx, viewportX, viewportY, renderedImg.getAccess());
|
H A D | es2fDepthRangeTests.cpp | 147 const int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW); local 169 glViewport(viewportX, viewportY, viewportW, viewportH); 226 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedFrame.getAccess()); 296 const int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW); local 319 glViewport(viewportX, viewportY, viewportW, viewportH); 373 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedFrame.getAccess());
|
H A D | es2fShaderBuiltinVarTests.cpp | 512 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); local 515 gl.viewport(viewportX, viewportY, width, height); 524 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, testImg.getAccess()); 585 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); local 628 gl.viewport(viewportX, viewportY, width/2, height); 632 gl.viewport(viewportX + width/2, viewportY, width-width/2, height); 636 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, testImg.getAccess());
|
H A D | es2fDepthStencilTests.cpp | 414 void render (const vector<ClearCommand>& clears, int viewportX, int viewportY) argument 427 glScissor(clear.rect.left+viewportX, clear.rect.bottom+viewportY, clear.rect.width, clear.rect.height); 434 void render (gls::FragmentOpUtil::QuadRenderer& renderer, const RenderCommand& command, int viewportX, int viewportY) argument 466 glViewport(command.rect.left+viewportX, command.rect.bottom+viewportY, command.rect.width, command.rect.height); 615 int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-m_renderTarget.width); local 645 render(m_baseClears, viewportX, viewportY); 649 render(*m_renderer, *cmd, viewportX, viewportY); 652 render(*m_renderer, testCmd, viewportX, viewportY); 656 render(*m_renderer, *cmd, viewportX, viewportY); 696 glu::readPixels(m_context.getRenderContext(), viewportX, viewport [all...] |
H A D | es2fBlendTests.cpp | 211 int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth() - m_viewportW); local 248 glViewport(viewportX, viewportY, m_viewportW, m_viewportH); 268 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedImg.getAccess());
|
H A D | es2fStencilTests.cpp | 290 int viewportX = rnd.getInt(0, renderTarget.getWidth()-width); local 292 IVec4 viewport = IVec4(viewportX, viewportY, width, height);
|
H A D | es2fTextureUnitTests.cpp | 762 int viewportX = rnd.getInt(0, renderTarget.getWidth() - viewportWidth); local 794 sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS|sglr::GLCONTEXT_LOG_PROGRAMS, tcu::IVec4(viewportX, viewportY, viewportWidth, viewportHeight));
|
/external/deqp/modules/gles3/functional/ |
H A D | es3fRandomFragmentOpTests.cpp | 137 int viewportX = de::min(quad.posA.x(), quad.posB.x()); 149 gl.viewport(baseX+viewportX, baseY+viewportY, viewportW, viewportH); 153 static void setGLState (glu::CallLogWrapper& wrapper, const RenderState& state, int viewportX, int viewportY) 158 wrapper.glScissor(viewportX+state.scissorRectangle.left, viewportY+state.scissorRectangle.bottom, 302 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); 331 m_callLogWrapper.glViewport(viewportX, viewportY, width, height); 335 setGLState(m_callLogWrapper, cmd->state, viewportX, viewportY); local 343 renderQuad(gl, *m_renderer, cmd->quad, viewportX, viewportY); 371 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedImg.getAccess());
|
H A D | es3fDitheringTests.cpp | 247 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportWid); local 254 GLU_CHECK_CALL(glViewport(viewportX, viewportY, viewportWid, viewportHei)); 272 glu::readPixels(m_renderCtx, viewportX, viewportY, renderedImg.getAccess()); 363 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportWid); local 368 GLU_CHECK_CALL(glViewport(viewportX, viewportY, viewportWid, viewportHei)); 386 glu::readPixels(m_renderCtx, viewportX, viewportY, renderedImg.getAccess());
|
H A D | es3fFragDepthTests.cpp | 131 int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW); local 140 gl.viewport(viewportX, viewportY, viewportW, viewportH); 233 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedFrame.getAccess()); 302 int viewportX = rnd.getInt(0, renderTarget.getWidth()-viewportW); local 312 gl.viewport(viewportX, viewportY, viewportW, viewportH); 399 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedFrame.getAccess());
|
H A D | es3fShaderBuiltinVarTests.cpp | 538 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); local 541 gl.viewport(viewportX, viewportY, width, height); 550 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, testImg.getAccess()); 611 const int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-width); local 657 gl.viewport(viewportX, viewportY, width/2, height); 661 gl.viewport(viewportX + width/2, viewportY, width-width/2, height); 665 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, testImg.getAccess()); 976 const int viewportX = rnd.getInt(0, width-viewportW); local 984 gl.viewport (viewportX, viewportY, viewportW, viewportH); 1005 glu::readPixels(m_context.getRenderContext(), viewportX, viewport [all...] |
H A D | es3fDepthStencilTests.cpp | 414 void render (const vector<ClearCommand>& clears, int viewportX, int viewportY) argument 427 glScissor(clear.rect.left+viewportX, clear.rect.bottom+viewportY, clear.rect.width, clear.rect.height); 434 void render (gls::FragmentOpUtil::QuadRenderer& renderer, const RenderCommand& command, int viewportX, int viewportY) argument 466 glViewport(command.rect.left+viewportX, command.rect.bottom+viewportY, command.rect.width, command.rect.height); 615 int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth()-m_renderTarget.width); local 645 render(m_baseClears, viewportX, viewportY); 649 render(*m_renderer, *cmd, viewportX, viewportY); 652 render(*m_renderer, testCmd, viewportX, viewportY); 656 render(*m_renderer, *cmd, viewportX, viewportY); 696 glu::readPixels(m_context.getRenderContext(), viewportX, viewport [all...] |
H A D | es3fBlendTests.cpp | 259 int viewportX = rnd.getInt(0, m_renderWidth - m_viewportWidth); local 296 glViewport(viewportX, viewportY, m_viewportWidth, m_viewportHeight); 316 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, renderedImg.getAccess());
|
H A D | es3fStencilTests.cpp | 293 int viewportX = rnd.getInt(0, renderTarget.getWidth()-width); local 295 IVec4 viewport = IVec4(viewportX, viewportY, width, height);
|
H A D | es3fShaderDerivateTests.cpp | 653 const int viewportX = useFbo ? 0 : rnd.getInt(0, m_context.getRenderTarget().getWidth() - viewportSize.x()); local 767 gl.viewport(viewportX, viewportY, viewportSize.x(), viewportSize.y()); 802 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, result); 811 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY,
|
H A D | es3fTransformFeedbackTests.cpp | 1076 int viewportX = rnd.getInt(0, width-viewportW); 1138 gl.viewport(viewportX, viewportY, viewportW, viewportH); 1283 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, frameWithTf.getAccess()); 1298 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, frameWithoutTf.getAccess());
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/ |
H A D | ScissorStack.java | 121 public static void calculateScissors (Camera camera, float viewportX, float viewportY, float viewportWidth,
argument 125 camera.project(tmp, viewportX, viewportY, viewportWidth, viewportHeight);
131 camera.project(tmp, viewportX, viewportY, viewportWidth, viewportHeight);
|
/external/deqp/modules/gles2/accuracy/ |
H A D | es2aVaryingInterpolationTests.cpp | 161 int viewportX = rnd.getInt(0, m_context.getRenderTarget().getWidth() - viewportWidth); local 259 glViewport(viewportX, viewportY, viewportWidth, viewportHeight); 265 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, rendered.getAccess());
|
/external/deqp/modules/gles3/accuracy/ |
H A D | es3aVaryingInterpolationTests.cpp | 165 int viewportX = rnd.getInt(0, renderTarget.getWidth() - viewportWidth); local 266 glViewport(viewportX, viewportY, viewportWidth, viewportHeight); 272 glu::readPixels(m_context.getRenderContext(), viewportX, viewportY, rendered.getAccess());
|
/external/deqp/modules/glshared/ |
H A D | glsRandomShaderCase.cpp | 477 int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportWidth); local 545 glViewport(viewportX, viewportY, viewportWidth, viewportHeight); 557 glu::readPixels(m_renderCtx, viewportX, viewportY, readBuf.getAccess()); 562 glu::readPixels(m_renderCtx, viewportX, viewportY, rendered.getAccess());
|
H A D | glsFragOpInteractionCase.cpp | 288 const int viewportX = de::min(quad.posA.x(), quad.posB.x()); 301 ctx.viewport(viewportX, viewportY, viewportW, viewportH); 463 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportW); 480 m_glCtx = new sglr::GLContext(m_renderCtx, m_testCtx.getLog(), sglr::GLCONTEXT_LOG_CALLS|sglr::GLCONTEXT_LOG_PROGRAMS, IVec4(viewportX, viewportY, viewportW, viewportH));
|
H A D | glsShaderLibraryCase.cpp | 922 const int viewportX = rnd.getInt(0, renderTarget.getWidth() - width); 1113 gl.viewport(viewportX, viewportY, width, height); 1300 glu::readPixels(m_renderCtx, viewportX, viewportY, surface.getAccess());
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fAdvancedBlendTests.cpp | 398 const int viewportX = rnd.getInt(0, m_renderWidth - m_viewportWidth); local 452 gl.viewport(viewportX, viewportY, m_viewportWidth, m_viewportHeight); 525 glu::readPixels(renderCtx, viewportX, viewportY, renderedImg.getAccess());
|