2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* VertexPositionNormalTexture.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX::Graphics::VertexPositionNormalTexture 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_VERTEXPOSITIONNORMALTEXTURE_
|
|
|
|
#define _XFX_GRAPHICS_VERTEXPOSITIONNORMALTEXTURE_
|
|
|
|
|
|
|
|
#include "IVertexType.h"
|
|
|
|
#include <Vector2.h>
|
|
|
|
#include <Vector3.h>
|
|
|
|
#include "VertexElement.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Describes a custom vertex format structure that contains position, normal data, and one set of texture coordinates.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct VertexPositionNormalTexture : IVertexType, Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static const VertexElement vertexArray[];
|
|
|
|
|
|
|
|
public:
|
|
|
|
Vector3 Position;
|
|
|
|
Vector3 Normal;
|
|
|
|
Vector2 TextureCoordinate;
|
|
|
|
VertexDeclaration getVertexDeclaration() const;
|
2013-08-13 20:04:25 +02:00
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
VertexPositionNormalTexture();
|
|
|
|
VertexPositionNormalTexture(const Vector3 position, const Vector3 normal, const Vector2 textureCoordinate);
|
2013-08-13 20:04:25 +02:00
|
|
|
|
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-08-13 20:04:25 +02:00
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
bool operator!=(const VertexPositionNormalTexture& other) const;
|
|
|
|
bool operator==(const VertexPositionNormalTexture& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXPOSITIONNORMALTEXTURE_
|