Vertex t: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:Vertex_t}} | ||
This is a | This data structure is used in many drawing operations. Note that the two vectors do not use the same coordinate system. ''m_Position'' is in screenspace and ''_TexCoord'' is a texture coordinate (in normalized UV space). | ||
struct Vertex_t | struct Vertex_t | ||
{ | { | ||
| Line 15: | Line 15: | ||
} | } | ||
Vector2D m_Position; | [[Vector2D]] m_Position; | ||
Vector2D m_TexCoord; | Vector2D m_TexCoord; | ||
}; | }; | ||
[[Category:ISurface]][[Category:Helpers]] | [[Category:ISurface]][[Category:Helpers]] | ||
[[Category:Structures]] | |||
Latest revision as of 01:15, 30 November 2011
This data structure is used in many drawing operations. Note that the two vectors do not use the same coordinate system. m_Position is in screenspace and _TexCoord is a texture coordinate (in normalized UV space).
struct Vertex_t
{
Vertex_t() {}
Vertex_t( const Vector2D &pos, const Vector2D &coord = Vector2D( 0, 0 ) )
{
m_Position = pos;
m_TexCoord = coord;
}
void Init( const Vector2D &pos, const Vector2D &coord = Vector2D( 0, 0 ) )
{
m_Position = pos;
m_TexCoord = coord;
}
Vector2D m_Position;
Vector2D m_TexCoord;
};