347{
349 struct sprite *new_sprites;
351
352 TRACE(
"iface %p, texture %p, rect %s, center %p, position %p, color 0x%08x.\n",
354
357
358 if (!
This->allocated_sprites)
359 {
361 This->allocated_sprites = 32;
362 }
363 else if (
This->allocated_sprites <=
This->sprite_count)
364 {
366 This->sprites,
This->allocated_sprites * 2 *
sizeof(*
This->sprites));
367 if (!new_sprites)
369 This->sprites = new_sprites;
370 This->allocated_sprites *= 2;
371 }
375
376
377 if(
This->sprite_count) {
380 } else {
383 }
385
388
391 else
393
395 This->sprites[
This->sprite_count].center.x=0.0f;
396 This->sprites[
This->sprite_count].center.y=0.0f;
397 This->sprites[
This->sprite_count].center.z=0.0f;
399
401 This->sprites[
This->sprite_count].pos.x=0.0f;
402 This->sprites[
This->sprite_count].pos.y=0.0f;
403 This->sprites[
This->sprite_count].pos.z=0.0f;
404 }
else This->sprites[
This->sprite_count].pos=*position;
405
407 This->sprites[
This->sprite_count].transform=
This->transform;
408 This->sprite_count++;
409
411}
static const char * wine_dbgstr_rect(const RECT *prc)
#define IDirect3DTexture9_GetLevelDesc(p, a, b)
#define IDirect3DTexture9_AddRef(p)
#define D3DXSPRITE_DO_NOT_ADDREF_TEXTURE
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)