Lines Matching refs:textures
470 * we can try to detect possible use of deleted textures.
670 /* Buffer textures are always considered complete. The obvious case where
807 * MULTISAMPLE and MULTISAMPLE_ARRAY textures
1096 * Compute total size (in bytes) of all textures for the given context.
1186 * the rest of Mesa to encourage Mesa internals to use nameless textures,
1192 GLsizei n, GLuint *textures, const char *caller)
1196 if (!textures)
1204 _mesa_HashFindFreeKeys(ctx->Shared->TexObjects, textures, n);
1209 texObj = _mesa_new_texture_object(ctx, textures[i], target);
1226 GLsizei n, GLuint *textures, const char *caller)
1236 create_textures(ctx, target, n, textures, caller);
1251 * \param textures an array in which will hold the generated texture names.
1256 * IDs which are stored in \p textures. Corresponding empty texture
1260 _mesa_GenTextures_no_error(GLsizei n, GLuint *textures)
1263 create_textures(ctx, 0, n, textures, "glGenTextures");
1268 _mesa_GenTextures(GLsizei n, GLuint *textures)
1271 create_textures_err(ctx, 0, n, textures, "glGenTextures");
1279 * \param textures an array in which will hold the generated texture names.
1284 * IDs which are stored in \p textures. Corresponding empty texture
1288 _mesa_CreateTextures_no_error(GLenum target, GLsizei n, GLuint *textures)
1291 create_textures(ctx, target, n, textures, "glCreateTextures");
1296 _mesa_CreateTextures(GLenum target, GLsizei n, GLuint *textures)
1312 create_textures_err(ctx, target, n, textures, "glCreateTextures");
1357 * unbind it if so (revert to default textures).
1408 * Unbinds all textures bound to the given texture image unit.
1429 * Delete named textures.
1431 * \param n number of textures to be deleted.
1432 * \param textures array of texture IDs to be deleted.
1443 delete_textures(struct gl_context *ctx, GLsizei n, const GLuint *textures)
1447 if (!textures)
1451 if (textures[i] > 0) {
1453 = _mesa_lookup_texture(ctx, textures[i]);
1502 _mesa_DeleteTextures_no_error(GLsizei n, const GLuint *textures)
1505 delete_textures(ctx, n, textures);
1510 _mesa_DeleteTextures(GLsizei n, const GLuint *textures)
1522 delete_textures(ctx, n, textures);
1615 * Note: Multisample textures don't need to flag GL_TEXTURE_BIT because
1873 const GLuint *textures, bool no_error)
1877 if (textures) {
1900 if (textures[i] != 0) {
1905 if (current && current->Name == textures[i])
1908 texObj = _mesa_lookup_texture_locked(ctx, textures[i]);
1916 * in <textures> is not zero or the name of an existing
1920 "glBindTextures(textures[%d]=%u is not zero "
1922 i, textures[i]);
1931 /* Unbind all textures in the range <first> through <first>+<count>-1 */
1939 _mesa_BindTextures_no_error(GLuint first, GLsizei count, const GLuint *textures)
1942 bind_textures(ctx, first, count, textures, true);
1947 _mesa_BindTextures(GLuint first, GLsizei count, const GLuint *textures)
1965 bind_textures(ctx, first, count, textures, false);
1972 * \param n number of textures.
2015 * See if textures are loaded in texture memory.
2017 * \param n number of textures to query.
2021 * \return GL_TRUE if all textures are resident and
2024 * Note: we assume all textures are always resident