Lines Matching refs:bitmap

44      * return the internal format as defined by OpenGL ES of the supplied bitmap.
45 * @param bitmap
46 * @return the internal format of the bitmap.
48 public static int getInternalFormat(Bitmap bitmap) {
49 if (bitmap == null) {
52 if (bitmap.isRecycled()) {
53 throw new IllegalArgumentException("bitmap is recycled");
55 int result = native_getInternalFormat(bitmap);
63 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
64 * is one. If the bitmap is stored in a compressed format, it may not have
66 * @throws IllegalArgumentException if the bitmap does not have a type.
67 * @param bitmap
68 * @return the OpenGL ES type of the bitmap.
70 public static int getType(Bitmap bitmap) {
71 if (bitmap == null) {
74 if (bitmap.isRecycled()) {
75 throw new IllegalArgumentException("bitmap is recycled");
77 int result = native_getType(bitmap);
89 * Unlike glTexImage2D() bitmap cannot be null and will raise an exception
94 * sure to set it properly according to the supplied bitmap.
96 * Whether or not bitmap can have non power of two dimensions depends on
103 * @param bitmap
107 Bitmap bitmap, int border) {
108 if (bitmap == null) {
111 if (bitmap.isRecycled()) {
112 throw new IllegalArgumentException("bitmap is recycled");
114 if (native_texImage2D(target, level, internalformat, bitmap, -1, border)!=0) {
122 * internalformat of the bitmap must be compatible with the specified
128 * @param bitmap
133 Bitmap bitmap, int type, int border) {
134 if (bitmap == null) {
137 if (bitmap.isRecycled()) {
138 throw new IllegalArgumentException("bitmap is recycled");
140 if (native_texImage2D(target, level, internalformat, bitmap, type, border)!=0) {
151 * @param bitmap
154 public static void texImage2D(int target, int level, Bitmap bitmap,
156 if (bitmap == null) {
159 if (bitmap.isRecycled()) {
160 throw new IllegalArgumentException("bitmap is recycled");
162 if (native_texImage2D(target, level, -1, bitmap, -1, border)!=0) {
172 * Unlike glTexSubImage2D() bitmap cannot be null and will raise an exception
177 * sure to set it properly according to the supplied bitmap.
179 * Whether or not bitmap can have non power of two dimensions depends on
187 * @param bitmap
190 Bitmap bitmap) {
191 if (bitmap == null) {
194 if (bitmap.isRecycled()) {
195 throw new IllegalArgumentException("bitmap is recycled");
197 int type = getType(bitmap);
198 if (native_texSubImage2D(target, level, xoffset, yoffset, bitmap, -1, type)!=0) {
211 * @param bitmap
215 Bitmap bitmap, int format, int type) {
216 if (bitmap == null) {
219 if (bitmap.isRecycled()) {
220 throw new IllegalArgumentException("bitmap is recycled");
222 if (native_texSubImage2D(target, level, xoffset, yoffset, bitmap, format, type)!=0) {
282 native private static int native_getInternalFormat(Bitmap bitmap);
283 native private static int native_getType(Bitmap bitmap);
285 Bitmap bitmap, int type, int border);
287 Bitmap bitmap, int format, int type);