Vertex format delete: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{FuncTitle|vertex_format_delete|}}
{{FuncTitle|vertex_format_delete|}}
== Description ==
== Description ==
Deletes the given vertex buffer format. After this function is called you can no longer use the vertex format and any vertex buffers that were given this format in [[vertex_begin]] can no longer be submitted unless a new format is specified with another call to [[vertex_begin]].
Deletes the given vertex buffer format from memory. After this function is called you can no longer use the vertex format and any vertex buffers that were given this format in [[vertex_begin]] can no longer be submitted unless a new format is specified with another call to [[vertex_begin]].


== Parameters ==
== Parameters ==
Line 15: Line 15:
== Example Call ==
== Example Call ==
<syntaxhighlight lang="edl">
<syntaxhighlight lang="edl">
// demonstrates beginning and ending a new vertex format
// demonstrates deleting a vertex format from memory
vertex_format_begin();
vertex_format_delete(vf_position_color);
vertex_format_add_position();
vertex_format_add_color();
vf_position_color = vertex_format_end();
</syntaxhighlight>
</syntaxhighlight>


__NOTOC__
__NOTOC__
{{Function:GM}}
{{Function:GM}}

Revision as of 00:32, 18 June 2018

Description

Deletes the given vertex buffer format from memory. After this function is called you can no longer use the vertex format and any vertex buffers that were given this format in vertex_begin can no longer be submitted unless a new format is specified with another call to vertex_begin.

Parameters

Parameter Description
none This function has no parameters.

Return Values

void: This function does not return anything.

Example Call

// demonstrates deleting a vertex format from memory
vertex_format_delete(vf_position_color);