346 TRACE(
"iface %p, texture %p, rect %s, center %p, position %p, color 0x%08x.\n",
352 if (!
This->allocated_sprites)
355 This->allocated_sprites = 32;
357 else if (
This->allocated_sprites <=
This->sprite_count)
359 This->allocated_sprites +=
This->allocated_sprites / 2;
361 This->sprites,
This->allocated_sprites *
sizeof(*
This->sprites));
368 if(
This->sprite_count) {
386 This->sprites[
This->sprite_count].center.x=0.0f;
387 This->sprites[
This->sprite_count].center.y=0.0f;
388 This->sprites[
This->sprite_count].center.z=0.0f;
389 }
else This->sprites[
This->sprite_count].center=*center;
392 This->sprites[
This->sprite_count].pos.x=0.0f;
393 This->sprites[
This->sprite_count].pos.y=0.0f;
394 This->sprites[
This->sprite_count].pos.z=0.0f;
395 }
else This->sprites[
This->sprite_count].pos=*position;
398 This->sprites[
This->sprite_count].transform=
This->transform;
399 This->sprite_count++;
#define D3DERR_INVALIDCALL
#define D3DXSPRITE_DO_NOT_ADDREF_TEXTURE
#define IDirect3DTexture9_AddRef(p)
static struct d3dx9_sprite * impl_from_ID3DXSprite(ID3DXSprite *iface)
#define IDirect3DTexture9_GetLevelDesc(p, a, b)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
const char * wine_dbgstr_rect(const RECT *rect)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)