Lines Matching defs:texture

69     TRACE("(%p) : About to load texture: dirtified(%u).\n", This, *dirty);
77 * when loading offscreen render targets into their texture. */
91 /* TODO: This is not necessarily needed with hw palettized texture support. */
93 /* Make sure the texture is reloaded because of the palette change,
101 /* If the texture is marked dirty or the srgb sampler setting has changed
138 /* Clean out the texture name we gave to the surface so that the
224 /* Unload all the surfaces and reset the texture name. If UnLoad was called on the
491 HRESULT cubetexture_init(IWineD3DCubeTextureImpl *texture, UINT edge_length, UINT levels,
511 WARN("(%p) : Texture cannot be created with a format of WINED3DFMT_UNKNOWN.\n", texture);
517 WARN("(%p) : Tried to create not supported cube texture.\n", texture);
544 texture->lpVtbl = &IWineD3DCubeTexture_Vtbl;
546 hr = basetexture_init((IWineD3DBaseTextureImpl *)texture, levels, WINED3DRTYPE_CUBETEXTURE,
564 /* Precalculated scaling for 'faked' non power of two texture coords. */
565 texture->baseTexture.pow2Matrix[0] = 1.0f;
566 texture->baseTexture.pow2Matrix[5] = 1.0f;
567 texture->baseTexture.pow2Matrix[10] = 1.0f;
568 texture->baseTexture.pow2Matrix[15] = 1.0f;
572 /* Precalculated scaling for 'faked' non power of two texture coords. */
573 texture->baseTexture.pow2Matrix[0] = ((float)edge_length) / ((float)pow2_edge_length);
574 texture->baseTexture.pow2Matrix[5] = ((float)edge_length) / ((float)pow2_edge_length);
575 texture->baseTexture.pow2Matrix[10] = ((float)edge_length) / ((float)pow2_edge_length);
576 texture->baseTexture.pow2Matrix[15] = 1.0f;
577 texture->baseTexture.pow2Matrix_identity = FALSE;
582 for (i = 0; i < texture->baseTexture.levels; ++i)
599 format, usage, pool, i /* Level */, j, &texture->surfaces[j][i]
604 format, usage, pool, i /* Level */, j, &texture->surfaces[j][i]
609 FIXME("(%p) Failed to create surface, hr %#x.\n", texture, hr);
610 texture->surfaces[j][i] = NULL;
611 cubetexture_cleanup(texture);
615 IWineD3DSurface_SetContainer(texture->surfaces[j][i], (IWineD3DBase *)texture);
616 TRACE("Created surface level %u @ %p.\n", i, texture->surfaces[j][i]);
617 surface_set_texture_target(texture->surfaces[j][i], cube_targets[j]);
621 texture->baseTexture.internal_preload = cubetexture_internal_preload;
624 if (VBOXSHRC_IS_SHARED(texture))
627 for (i = 0; i < texture->baseTexture.levels; ++i)
631 VBOXSHRC_COPY_SHAREDATA((IWineD3DSurfaceImpl*)texture->surfaces[j][i], texture);
635 for (i = 0; i < texture->baseTexture.levels; ++i)
639 Assert(!((IWineD3DSurfaceImpl*)texture->surfaces[j][i])->texture_name);
643 IWineD3DSurface_LoadLocation(texture->surfaces[0][0], SFLAG_INTEXTURE, NULL);
644 if (!VBOXSHRC_IS_SHARED_OPENED(texture))
647 *shared_handle = VBOXSHRC_GET_SHAREHANDLE(texture);
652 Assert(*shared_handle == VBOXSHRC_GET_SHAREHANDLE(texture));
655 for (i = 0; i < texture->baseTexture.levels; ++i)
659 Assert((*shared_handle) == (HANDLE)((IWineD3DSurfaceImpl*)texture->surfaces[j][i])->texture_name);