Lines Matching defs:texture

49  * Default texture combine environment state.  This is used to initialize
50 * a context's texture units and as the basis for converting "classic"
51 * texture environmnets to ARB_texture_env_combine style values.
66 * Used by glXCopyContext to copy texture state from one context to another.
84 * XXX strictly speaking, we should compare texture names/ids and
90 /* copy texture object bindings, not contents of texture objects */
163 * Convert "classic" texture environment to ARB_texture_env_combine style
167 * \param mode Classic texture environment mode (i.e., \c GL_REPLACE,
169 * \param texBaseFormat Base format of the texture associated with the
170 * texture unit.
280 "Invalid texture env mode 0x%x in calculate_derived_texenv",
294 active_texture(GLenum texture, bool no_error)
296 const GLuint texUnit = texture - GL_TEXTURE0;
302 _mesa_enum_to_string(texture));
313 _mesa_error(ctx, GL_INVALID_ENUM, "glActiveTexture(texture=%s)",
314 _mesa_enum_to_string(texture));
341 _mesa_ActiveTexture_no_error(GLenum texture)
343 active_texture(texture, true);
348 _mesa_ActiveTexture(GLenum texture)
350 active_texture(texture, false);
356 _mesa_ClientActiveTexture(GLenum texture)
359 GLuint texUnit = texture - GL_TEXTURE0;
363 _mesa_enum_to_string(texture));
369 _mesa_error(ctx, GL_INVALID_ENUM, "glClientActiveTexture(texture=%s)",
370 _mesa_enum_to_string(texture));
386 * \note This routine refers to derived texture attribute values to
521 * Examine texture unit's combine/env state to update derived state.
623 /* Setup texgen for those texture coordinate sets that are in use */
673 * pointing to the same texture image unit within a program
695 /* If we've reached this point, we didn't find a complete texture of the
700 * texture is not complete, as defined in section 8.17, (0, 0, 0, 1)
704 * Mesa implements this by creating a hidden texture object with a pixel of
753 /* Loop over bindless samplers bound to texture units.
792 /* If a shader already dictated what texture target was used for this
804 * three-dimensional, or cube map texture, respectively. If more
808 * • cube map texture
809 * • three-dimensional texture
810 * • rectangular texture
811 * • two-dimensional texture
812 * • one-dimensional texture"
817 * "If a texture unit is disabled or has an invalid or incomplete
818 * texture (as defined in section 8.17) bound to it, then blending
819 * is disabled for that texture unit. If the texture environment
820 * for a given enabled texture unit references a disabled texture
821 * unit, or an invalid or incomplete texture that is bound to
822 * another unit, then the results of texture blending are
848 /* if we get here, we know this texture unit is enabled */
883 * \note This routine refers to derived texture matrix values to
923 * Programs dictate specific texture targets to be enabled, and for a draw
924 * call to be valid they can't conflict about which texture targets are
934 /* Now, clear out the _Current of any disabled texture units. */
943 /* add fallback texture for SampleMapATI if there is nothing */
1025 * Initialize texture state for the given context.
1056 /* initialize current texture object ptrs to the shared default objects */
1097 /* After we're done initializing the context's texture state the default
1098 * texture objects' refcounts should be at least
1118 * Free dynamically-allocted texture data attached to the given context.
1127 /* The _Current texture could account for another reference */
1135 /* Free proxy texture objects */
1149 * Update the default texture objects in the given context to reference those