1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/AlphaTestEffect.h
Tom Lint 3a960b5829 Updated comments
Added some new Type infos
Removed excess whitespace
Added some new files
Implemented missing methods
2013-08-13 20:04:25 +02:00

59 lines
1.2 KiB
C++

/*****************************************************************************
* AlphaTestEffect.h *
* *
* XFX::Graphics::AlphaTestEffect definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#ifndef _XFX_GRAPHICS_ALPHATESTEFFECT_
#define _XFX_GRAPHICS_ALPHATESTEFFECT_
#include "Effect.h"
#include <Matrix.h>
#include <Vector3.h>
using namespace System;
namespace XFX
{
namespace Graphics
{
class Texture2D;
/**
* Contains a configurable effect that supports alpha testing.
*/
class AlphaTestEffect : public Effect
{
private:
static byte effectCode[];
protected:
AlphaTestEffect(AlphaTestEffect const * const cloneSource);
void OnApply();
public:
float Alpha;
CompareFunction_t AlphaFunction;
Vector3 DiffuseColor;
Vector3 FogColor;
bool FogEnabled;
float FogEnd;
float FogStart;
Matrix Projection;
int ReferenceAlpha;
Texture2D* Texture;
bool VertexColorEnabled;
Matrix View;
Matrix World;
AlphaTestEffect(GraphicsDevice * const device);
Effect* Clone() const;
static const Type& GetType();
};
}
}
#endif //_XFX_GRAPHICS_ALPHATESTEFFECT_