Lines Matching refs:height

346     public void setSize(int width, int height) {
348 mHeight = height;
352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1);
355 mScreenHeight = height;
356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0);
486 public void drawRect(float x, float y, float width, float height, GLPaint paint) {
487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint);
491 private void draw(int type, int offset, int count, float x, float y, float width, float height,
493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth());
496 private void draw(int type, int offset, int count, float x, float y, float width, float height,
499 draw(mDrawParameters, type, count, x, y, width, height);
555 float height) {
556 setMatrix(params, x, y, width, height);
566 private void setMatrix(ShaderParameter[] params, float x, float y, float width, float height) {
568 Matrix.scaleM(mTempMatrix, 0, width, height, 1f);
575 public void fillRect(float x, float y, float width, float height, int color) {
576 draw(GLES20.GL_TRIANGLE_STRIP, OFFSET_FILL_RECT, COUNT_FILL_VERTEX, x, y, width, height,
582 public void drawTexture(BasicTexture texture, int x, int y, int width, int height) {
583 if (width <= 0 || height <= 0) {
587 mTempTargetRect.set(x, y, x + width, y + height);
608 if (target.width() <= 0 || target.height() <= 0) {
635 mTempTextureMatrix[5] = source.height();
645 int height = texture.getHeight();
660 float yBound = (float) height / texHeight;
662 target.bottom = target.top + target.height() * (yBound - source.top) / source.height();
679 target.width(), target.height());
766 if (target.width() <= 0 || target.height() <= 0) {
780 fillRect(target.left, target.top, target.width(), target.height(), toColor);
920 int height = texture.getTextureHeight();
921 GLES20.glTexImage2D(target, 0, format, width, height, 0, format, type, null);
993 public void getBounds(Rect bounds, int x, int y, int width, int height) {
995 Matrix.scaleM(mTempMatrix, 0, width, height, 1f);