2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* VertexPositionTexture.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX::Graphics::VertexPositionTexture structure definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|
|
|
|
#define _XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
#include "IVertexType.h"
|
2013-05-05 18:18:41 +02:00
|
|
|
#include "VertexDeclaration.h"
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
struct Vector2;
|
|
|
|
struct Vector3;
|
|
|
|
|
|
|
|
namespace Graphics
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Describes a custom vertex format structure that contains position and one set of texture coordinates.
|
|
|
|
*/
|
2013-06-02 14:32:43 +02:00
|
|
|
struct VertexPositionTexture : IVertexType, Object
|
2013-05-05 18:18:41 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
static const VertexElement vertexArray[];
|
|
|
|
|
|
|
|
public:
|
|
|
|
Vector3 Position;
|
|
|
|
Vector2 TextureCoordinate;
|
|
|
|
VertexDeclaration getVertexDeclaration() const;
|
|
|
|
|
|
|
|
VertexPositionTexture();
|
|
|
|
VertexPositionTexture(const Vector3 position, const Vector2 textureCoordinate);
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator!=(const VertexPositionTexture& other) const;
|
|
|
|
bool operator==(const VertexPositionTexture& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXPOSITIONTEXTURE_
|