Lines Matching refs:Array
57 * Look up the array object for the given ID.
60 * Either a pointer to the array object with the specified ID or \c NULL for
72 _mesa_HashLookup(ctx->Array.Objects, id);
77 * For all the vertex arrays in the array object, unbind any pointers
79 * This is done just prior to array object destruction.
92 * Allocate and initialize a new vertex array object.
108 * Delete an array object.
137 /* Unreference the old array object */
161 /* reference new array object */
164 /* this array's being deleted (look just above) */
166 _mesa_problem(NULL, "referencing deleted array object");
185 struct gl_client_array *array, GLint size, GLint type)
187 array->Size = size;
188 array->Type = type;
189 array->Format = GL_RGBA; /* only significant for GL_EXT_vertex_array_bgra */
190 array->Stride = 0;
191 array->StrideB = 0;
192 array->Ptr = NULL;
193 array->Enabled = GL_FALSE;
194 array->Normalized = GL_FALSE;
195 array->Integer = GL_FALSE;
196 array->_ElementSize = size * _mesa_sizeof_type(type);
197 /* Vertex array buffers */
198 _mesa_reference_buffer_object(ctx, &array->BufferObj,
256 * Add the given array object to the array object pool.
263 _mesa_HashInsert(ctx->Array.Objects, obj->Name, obj);
269 * Remove the given array object from the array object pool.
270 * Do not deallocate the array object though.
277 _mesa_HashRemove(ctx->Array.Objects, obj->Name);
325 /* _MaxElement is one past the last legal array element */
343 struct gl_array_object * const oldObj = ctx->Array.ArrayObj;
350 return; /* rebinding the same array object- no change */
353 * Get pointer to new array object (newObj)
356 /* The spec says there is no array object named 0, but we use
359 newObj = ctx->Array.DefaultArrayObj;
362 /* non-default array object */
370 /* For APPLE version, generate a new array object now */
393 _mesa_reference_array_object(ctx, &ctx->Array.ArrayObj, newObj);
416 * Bind a new array.
432 * Delete a set of array objects.
434 * \param n Number of array objects to delete.
435 * \param ids Array of \c n array object IDs.
455 /* If the array object is currently bound, the spec says "the binding
456 * for that object reverts to zero and the default vertex array
459 if ( obj == ctx->Array.ArrayObj ) {
466 /* Unreference the array object.
476 * Generate a set of unique array object IDs and store them in \c arrays.
479 * \param arrays Array of \c n locations to store the IDs.
498 first = _mesa_HashFindFreeKeyBlock(ctx->Array.Objects, n);
500 /* Allocate new, empty array objects and return identifiers */
541 * Determine if ID is the name of an array object.
543 * \param id ID of the potential array object.
544 * \return \c GL_TRUE if \c id is the name of a array object,