Lines Matching defs:texture

67  * Allocate and initialize a new texture object.  But don't put it into the
68 * texture object hash table.
73 * \param shared the shared GL state structure to contain the texture object
74 * \param name integer name for the texture object
79 * \return pointer to new texture object.
93 * Initialize a new texture object to default values.
94 * \param obj the texture object
95 * \param name the texture name
96 * \param target the texture target
161 * Some texture initialization can't be finished until we know which
190 * Deallocate a texture object struct. It should have already been
191 * removed from the texture object pool.
195 * \param texObj the texture object to delete.
208 /* free the texture images */
229 * Copy texture object state from one texture object to another.
232 * \param dest destination texture object.
233 * \param src source texture object.
275 * Free all texture images of the given texture object.
278 * \param t texture object.
302 * Check if the given texture object is valid by examining its Target field.
321 _mesa_problem(NULL, "invalid reference to a deleted texture object");
324 _mesa_problem(NULL, "invalid texture object Target 0x%x, Id = %u",
332 * Reference (or unreference) a texture object.
345 /* Unreference the old texture */
364 _mesa_problem(NULL, "Unable to delete texture, no context");
372 /* reference new texture */
376 /* this texture's being deleted (look just above) */
378 _mesa_problem(NULL, "referencing deleted texture object");
394 * Mark a texture object as incomplete. There are actually three kinds of
396 * 1. "base incomplete": the base level of the texture is invalid so no
398 * 2. "mipmap incomplete": a non-base level of the texture is invalid so
400 * 3. "texture incompleteness": some combination of texture state and
401 * sampler state renders the texture incomplete.
403 * \param t texture object
429 * Examine a texture object to determine if it is complete.
435 * \param t texture object.
437 * According to the texture target, verifies that each of the mipmaps is
486 incomplete(t, BASE, "texture width or height or depth = 0");
490 /* Check if the texture values are integer */
543 /* This texture object was created with glTexStorage1/2/3D() so we
572 * Note: we don't care about the current texture sampler state here.
573 * To determine texture completeness we'll either look at _BaseComplete
657 * Check if the given cube map texture is "cube complete" as defined in
695 * Mark a texture object dirty. It forces the object to be incomplete
699 * \param texObj texture object.
714 * Return pointer to a default/fallback texture of the given type/target.
715 * The texture is an RGBA texture with all texels = (0,0,0,1).
717 * incomplete texture.
723 /* create fallback texture now */
780 /* create texture object */
802 /* initialize level[0] texture image */
828 * Compute the size of the given texture object, in bytes.
876 /* plus, the default texture objects */
885 invalidate_tex_image_error_check(struct gl_context *ctx, GLuint texture,
890 * "If <texture> is zero or is not the name of a texture, the error
894 * spec. We have to get the texture object before we can validate the
895 * other parameters against values in the texture object.
897 struct gl_texture_object *const t = _mesa_lookup_texture(ctx, texture);
898 if (texture == 0 || t == NULL) {
899 _mesa_error(ctx, GL_INVALID_VALUE, "%s(texture)", name);
906 * of the maximum texture width, height, or depth, the error
916 * "If the target of <texture> is TEXTURE_RECTANGLE, TEXTURE_BUFFER,
946 * Generate texture names.
948 * \param n number of texture names to be generated.
949 * \param textures an array in which will hold the generated texture names.
953 * Calls _mesa_HashFindFreeKeyBlock() to find a block of free texture
954 * IDs which are stored in \p textures. Corresponding empty texture
974 * This must be atomic (generation and allocation of texture IDs)
980 /* Allocate new, empty texture objects */
1003 * Check if the given texture object is bound to the current draw or
1031 * Check if the given texture object is bound to any texture image units and
1058 * \param textures array of texture IDs to be deleted.
1062 * If we're about to delete a texture that's currently bound to any
1063 * texture unit, unbind the texture first. Decrement the reference
1064 * count on the texture object and delete it if it's zero.
1065 * Recall that texture objects can be shared among several rendering
1086 /* Check if texture is bound to any framebuffer objects.
1092 /* Check if this texture is currently bound to any texture units.
1101 /* The texture _name_ is now free for re-use.
1108 /* Unreference the texobj. If refcount hits zero, the texture
1119 * Convert a GL texture target enum such as GL_TEXTURE_2D or GL_TEXTURE_3D
1120 * into the corresponding Mesa texture target index.
1165 * Bind a named texture to a texturing target.
1167 * \param target texture target.
1168 * \param texName texture name.
1172 * Determines the old texture object bound and returns immediately if rebinding
1173 * the same texture. Get the current texture which is either a default texture
1174 * if name is null, a named texture from the hash, or a new texture if the
1175 * given texture name is new. Increments its reference count, binds it, and
1176 * calls dd_function_table::BindTexture. Decrements the old texture reference
1200 * Get pointer to new texture object (newTexObj)
1203 /* Use a default texture object */
1207 /* non-default texture object */
1212 /* the named texture object's target doesn't match the given target */
1227 /* if this is a new texture id, allocate a texture object now */
1244 /* Check if this texture is only used by this context and is already bound.
1262 * texture object will be decremented. It'll be deleted if the
1275 * Set texture priorities.
1278 * \param texName texture names.
1279 * \param priorities corresponding texture priorities.
1283 * Looks up each texture in the hash, clamps the corresponding priority between
1317 * See if textures are loaded in texture memory.
1320 * \param texName array with the texture names.
1344 /* We only do error checking on the texture names */
1363 * See if a name corresponds to a texture.
1365 * \param texture texture name.
1367 * \return GL_TRUE if texture name corresponds to a texture, or GL_FALSE
1375 _mesa_IsTexture( GLuint texture )
1381 if (!texture)
1384 t = _mesa_lookup_texture(ctx, texture);
1392 * Simplest implementation of texture locking: grab the shared tex
1396 * This is used to deal with synchronizing things when a texture object
1398 * the texture.
1422 _mesa_InvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset,
1432 t = invalidate_tex_image_error_check(ctx, texture, level,
1438 * <dim> is the size of the dimension of the texture image, and <b> is
1439 * the size of the border of that texture image, otherwise
1441 * don't exist in a given texture target)."
1454 * "For texture targets that don't have certain dimensions, this
1456 * example, to invalidate a portion of a two-dimensional texture,
1566 _mesa_InvalidateTexImage(GLuint texture, GLint level)
1572 invalidate_tex_image_error_check(ctx, texture, level,