iOS/buildlibs/armv7/allegro-4.4.2/addons/allegrogl/src/videovtb.c
/* Will make a (potentially piece-wise) texture out of the specified bitmap
 * Source -must- be a memory bitmap or memory subbitmap (created by Allegro
 * only).
 *
 */
Will make a (potentially piece-wise) texture out of the specified bitmap
Source -must- be a memory bitmap or memory subbitmap (created by Allegro
only).
Will make a ( potentially piece - wise ) texture out of the specified bitmap Source - must - be a memory bitmap or memory subbitmap ( created by Allegro only ) .
static BITMAP *allegro_gl_make_video_bitmap(BITMAP *bmp) {
	void *ptr = &bmp->extra;
	AGL_VIDEO_BITMAP **pvid = (AGL_VIDEO_BITMAP**)ptr;
	if (allegro_gl_make_video_bitmap_helper0(bmp->w, bmp->h, 0, 0, pvid)) {
		goto agl_error;
	}
	return bmp;
agl_error:
	allegro_gl_destroy_video_bitmap(bmp);
	return NULL;
}
static BITMAP * allegro_gl_make_video_bitmap ( BITMAP * bmp ) { void * ptr = & bmp -> extra ; AGL_VIDEO_BITMAP * * pvid = ( AGL_VIDEO_BITMAP * * ) ptr ; if ( allegro_gl_make_video_bitmap_helper0 ( bmp -> w , bmp -> h , 0 , 0 , pvid ) ) { goto agl_error ; } return bmp ; agl_error : allegro_gl_destroy_video_bitmap ( bmp ) ; return NULL ; }
Will make a (potentially piece-wise) texture out of the specified bitmap
 Source -must- be a memory bitmap or memory subbitmap (created by Allegro
 only).
Will make a ( potentially piece - wise ) texture out of the specified bitmap Source - must - be a memory bitmap or memory subbitmap ( created by Allegro only ) .
/* Grab a pointer to the bitmap data to patch */ /* Convert bitmap to texture */