2010-12-27 01:01:25 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* VertexPositionColor.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX VertexPositionColor definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_GRAPHICS_VERTEXPOSITIONCOLOR_
|
|
|
|
|
#define _XFX_GRAPHICS_VERTEXPOSITIONCOLOR_
|
|
|
|
|
|
|
|
|
|
#include "Color.h"
|
|
|
|
|
#include <Vector3.h>
|
2012-09-28 20:36:02 +00:00
|
|
|
|
#include "IVertexType.h"
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#include "VertexElement.h"
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
using namespace System;
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Describes a custom vertex format structure that contains position and color information.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
struct VertexPositionColor : IVertexType, Object
|
2010-12-27 01:01:25 +00:00
|
|
|
|
{
|
2012-09-28 20:36:02 +00:00
|
|
|
|
private:
|
|
|
|
|
static const VertexElement vertexArray[];
|
|
|
|
|
|
|
|
|
|
public:
|
2010-12-27 01:01:25 +00:00
|
|
|
|
Vector3 Position;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
XFX::Graphics::Color Color;
|
|
|
|
|
|
|
|
|
|
VertexDeclaration getVertexDeclaration() const;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
VertexPositionColor();
|
|
|
|
|
VertexPositionColor(const Vector3 position, const XFX::Graphics::Color color);
|
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 VertexPositionColor& other) const;
|
|
|
|
|
bool operator==(const VertexPositionColor& other) const;
|
2010-12-27 01:01:25 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXPOSITIONCOLOR_
|