349 struct sprite *new_sprites;
352 TRACE(
"iface %p, texture %p, rect %s, center %p, position %p, color 0x%08x.\n",
358 if (!
This->allocated_sprites)
361 This->allocated_sprites = 32;
363 else if (
This->allocated_sprites <=
This->sprite_count)
366 This->sprites,
This->allocated_sprites * 2 *
sizeof(*
This->sprites));
369 This->sprites = new_sprites;
370 This->allocated_sprites *= 2;
377 if(
This->sprite_count) {
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;
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;
407 This->sprites[
This->sprite_count].transform=
This->transform;
408 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)