mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added TypeInfo for all relevant types Added comments Updated DependencyProperty to work with System::Type Fixed casing on PropertyMetadata
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
/*****************************************************************************
|
|
* VertexElement.h *
|
|
* *
|
|
* XFX::Graphics::VertexElement structure definition file *
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
*****************************************************************************/
|
|
#ifndef _XFX_GRAPHICS_VERTEXELEMENT_
|
|
#define _XFX_GRAPHICS_VERTEXELEMENT_
|
|
|
|
#include <System/Object.h>
|
|
#include <System/Types.h>
|
|
#include <Graphics/Enums.h>
|
|
|
|
using namespace System;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
/**
|
|
* Defines input vertex data to the pipeline.
|
|
*/
|
|
struct VertexElement : Object
|
|
{
|
|
int Offset;
|
|
int UsageIndex;
|
|
VertexElementFormat_t VertexElementFormat;
|
|
VertexElementUsage_t VertexElementUsage;
|
|
|
|
VertexElement(const int offset, const VertexElementFormat_t elementFormat, const VertexElementUsage_t elementUsage, const int usageIndex);
|
|
VertexElement(const VertexElement &obj);
|
|
|
|
bool Equals(Object const * const obj) const;
|
|
int GetHashCode() const;
|
|
static const Type& GetType();
|
|
const String ToString() const;
|
|
|
|
bool operator!=(const VertexElement& other) const;
|
|
bool operator==(const VertexElement& other) const;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_VERTEXELEMENT_
|