Lines Matching defs:texture
41 HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT levels, WINED3DRESOURCETYPE resource_type,
54 WARN("Too many texture levels %d", levels);
58 hr = resource_init((IWineD3DResource *)texture, resource_type, device,
70 texture->baseTexture.levels = levels;
71 texture->baseTexture.filterType = (usage & WINED3DUSAGE_AUTOGENMIPMAP) ? WINED3DTEXF_LINEAR : WINED3DTEXF_NONE;
72 texture->baseTexture.LOD = 0;
73 texture->baseTexture.texture_rgb.dirty = TRUE;
74 texture->baseTexture.texture_srgb.dirty = TRUE;
75 texture->baseTexture.is_srgb = FALSE;
76 texture->baseTexture.pow2Matrix_identity = TRUE;
78 texture->baseTexture.t_mirror = FALSE;
80 texture->baseTexture.t_mirror = FALSE;
83 if (texture->resource.format_desc->Flags & WINED3DFMT_FLAG_FILTERING)
85 texture->baseTexture.minMipLookup = minMipLookup;
86 texture->baseTexture.magLookup = magLookup;
90 texture->baseTexture.minMipLookup = minMipLookup_noFilter;
91 texture->baseTexture.magLookup = magLookup_noFilter;
140 /* The d3d9:texture test shows that SetLOD is ignored on non-managed
144 TRACE("Ignoring SetLOD on %s texture, returning 0\n", debug_d3dpool(This->resource.pool));
194 * Or should we delay the applying until the texture is used for drawing? For now, apply
261 /* Initialise the state of the texture object
287 TRACE("(%p) : About to bind texture\n", This);
298 /* Generate a texture name if we don't already have one */
307 TRACE("Assigned shared texture %d\n", gl_tex->name);
315 TRACE("Generated texture %d\n", gl_tex->name);
325 /* Tell opengl to try and keep this texture in video ram (well mostly) */
332 /* chromium code on host fails to resolve texture name to texture obj for some reason
335 /* Initialise the state of the texture object
341 /* This means double binding the texture at creation, but keeps the code simpler all
353 /* Bind the texture */
358 /* For a new texture we have to set the textures levels after binding the texture.
360 * also need to set the texture dimensions before the texture is set
361 * Beware that texture rectangles do not support mipmapping, but set the maxmiplevel if we're
362 * relying on the partial GL_ARB_texture_non_power_of_two emulation with texture rectangles
378 WARN("This texture doesn't have an openGL texture assigned to it\n");
435 /* This function relies on the correct texture being bound and loaded. */