1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/AlphaTestEffect.h

59 lines
1.2 KiB
C
Raw Permalink Normal View History

/*****************************************************************************
* 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>
2013-07-11 20:00:07 +02:00
using namespace System;
namespace XFX
{
namespace Graphics
{
class Texture2D;
2013-07-11 20:00:07 +02:00
/**
* Contains a configurable effect that supports alpha testing.
*/
class AlphaTestEffect : public Effect
{
2013-07-11 20:00:07 +02:00
private:
static byte effectCode[];
2013-07-11 20:00:07 +02:00
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_