GWN: Add immVertex4f.

This commit is contained in:
Clément Foucault 2018-03-29 20:13:00 +02:00
parent b3ef5a04d1
commit c48b6fae9a
2 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,7 @@ void immSkipAttrib(unsigned attrib_id);
// this is most often used for 2D or 3D position (similar to glVertex)
void immVertex2f(unsigned attrib_id, float x, float y);
void immVertex3f(unsigned attrib_id, float x, float y, float z);
void immVertex4f(unsigned attrib_id, float x, float y, float z, float w);
void immVertex2i(unsigned attrib_id, int x, int y);

View File

@ -710,6 +710,12 @@ void immVertex3f(unsigned attrib_id, float x, float y, float z)
immEndVertex();
}
void immVertex4f(unsigned attrib_id, float x, float y, float z, float w)
{
immAttrib4f(attrib_id, x, y, z, w);
immEndVertex();
}
void immVertex2i(unsigned attrib_id, int x, int y)
{
immAttrib2i(attrib_id, x, y);