blob: 17d520daf03ac4fc6ac3afdda00dc3e2eee49f1e [file] [log] [blame]
Owen Linf9a0a432011-08-17 22:07:43 +08001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.gallery3d.ui;
18
19import android.graphics.RectF;
20
21import javax.microedition.khronos.opengles.GL11;
22
23public class GLCanvasStub implements GLCanvas {
24 public void setSize(int width, int height) {}
25 public void clearBuffer() {}
26 public void setCurrentAnimationTimeMillis(long time) {}
27 public long currentAnimationTimeMillis() {
28 throw new UnsupportedOperationException();
29 }
30 public void setAlpha(float alpha) {}
31 public float getAlpha() {
32 throw new UnsupportedOperationException();
33 }
34 public void multiplyAlpha(float alpha) {}
35 public void translate(float x, float y, float z) {}
Chih-Chung Chang174cac82012-02-16 07:27:03 +080036 public void translate(float x, float y) {}
Owen Linf9a0a432011-08-17 22:07:43 +080037 public void scale(float sx, float sy, float sz) {}
38 public void rotate(float angle, float x, float y, float z) {}
39 public boolean clipRect(int left, int top, int right, int bottom) {
40 throw new UnsupportedOperationException();
41 }
42 public int save() {
43 throw new UnsupportedOperationException();
44 }
45 public int save(int saveFlags) {
46 throw new UnsupportedOperationException();
47 }
48 public void setBlendEnabled(boolean enabled) {}
49 public void restore() {}
50 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {}
51 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {}
52 public void fillRect(float x, float y, float width, float height, int color) {}
53 public void drawTexture(
54 BasicTexture texture, int x, int y, int width, int height) {}
55 public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer,
56 int uvBuffer, int indexBuffer, int indexCount) {}
57 public void drawTexture(BasicTexture texture,
58 int x, int y, int width, int height, float alpha) {}
59 public void drawTexture(BasicTexture texture, RectF source, RectF target) {}
60 public void drawMixed(BasicTexture from, BasicTexture to,
61 float ratio, int x, int y, int w, int h) {}
62 public void drawMixed(BasicTexture from, int to,
63 float ratio, int x, int y, int w, int h) {}
64 public void drawMixed(BasicTexture from, BasicTexture to,
65 float ratio, int x, int y, int width, int height, float alpha) {}
66 public BasicTexture copyTexture(int x, int y, int width, int height) {
67 throw new UnsupportedOperationException();
68 }
69 public GL11 getGLInstance() {
70 throw new UnsupportedOperationException();
71 }
72 public boolean unloadTexture(BasicTexture texture) {
73 throw new UnsupportedOperationException();
74 }
75 public void deleteBuffer(int bufferId) {
76 throw new UnsupportedOperationException();
77 }
78 public void deleteRecycledResources() {}
79 public void multiplyMatrix(float[] mMatrix, int offset) {}
80}