ObjGameKit  Diff

Differences From Artifact [4f0798e904]:

To Artifact [fe85b4a420]:


186
187
188
189
190
191
192



































193
194
195
196
197
198
{
	al_draw_tinted_scaled_bitmap(bitmap, ogk_color_to_allegro(tint),
	    region.origin.x, region.origin.y, region.size.width,
	    region.size.height, position.x, position.y,
	    scale.width * al_get_bitmap_width(bitmap),
	    scale.height * al_get_bitmap_height(bitmap), 0);
}




































- (ALLEGRO_BITMAP*)OGK_allegroBitmap
{
	return bitmap;
}
@end







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>






186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
	al_draw_tinted_scaled_bitmap(bitmap, ogk_color_to_allegro(tint),
	    region.origin.x, region.origin.y, region.size.width,
	    region.size.height, position.x, position.y,
	    scale.width * al_get_bitmap_width(bitmap),
	    scale.height * al_get_bitmap_height(bitmap), 0);
}

- (void)drawAtPosition: (of_point_t)position
	      rotation: (ogk_rotation_t)rotation
{
	al_draw_rotated_bitmap(bitmap, rotation.center.x, rotation.center.y,
	    position.x, position.y, rotation.angle, 0);
}

- (void)drawAtPosition: (of_point_t)position
		 scale: (of_dimension_t)scale
	      rotation: (ogk_rotation_t)rotation
{
	al_draw_scaled_rotated_bitmap(bitmap, rotation.center.x,
	    rotation.center.y, position.x, position.y, scale.width,
	    scale.height, rotation.angle, 0);
}

- (void)drawAtPosition: (of_point_t)position
	      rotation: (ogk_rotation_t)rotation
		  tint: (ogk_color_t)tint
{
	al_draw_tinted_rotated_bitmap(bitmap, ogk_color_to_allegro(tint),
	    rotation.center.x, rotation.center.y, position.x, position.y,
	    rotation.angle, 0);
}

- (void)drawAtPosition: (of_point_t)position
		 scale: (of_dimension_t)scale
	      rotation: (ogk_rotation_t)rotation
		  tint: (ogk_color_t)tint
{
	al_draw_tinted_scaled_rotated_bitmap(bitmap, ogk_color_to_allegro(tint),
	    rotation.center.x, rotation.center.y, position.x, position.y,
	    scale.width, scale.height, rotation.angle, 0);
}

- (ALLEGRO_BITMAP*)OGK_allegroBitmap
{
	return bitmap;
}
@end