2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* VertexPositionTexture.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX VertexPositionTexture definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2012-03-29 22:02:43 +00:00
|
|
|
|
#ifndef _XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|
|
|
|
|
#define _XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
#include "VertexDeclaration.h"
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
struct Vector2;
|
|
|
|
|
struct Vector3;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Describes a custom vertex format structure that contains position and one set of texture coordinates.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
struct VertexPositionTexture : Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2012-09-28 20:36:02 +00:00
|
|
|
|
private:
|
|
|
|
|
static const VertexElement vertexArray[];
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
public:
|
|
|
|
|
Vector3 Position;
|
|
|
|
|
Vector2 TextureCoordinate;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
VertexDeclaration getVertexDeclaration() const;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
VertexPositionTexture();
|
|
|
|
|
VertexPositionTexture(const Vector3 position, const Vector2 textureCoordinate);
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool Equals(const Object* obj) const;
|
|
|
|
|
int GetHashCode() const;
|
|
|
|
|
int GetType() const;
|
|
|
|
|
const char* ToString() const;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool operator!=(const VertexPositionTexture& other) const;
|
|
|
|
|
bool operator==(const VertexPositionTexture& other) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|