2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* 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;
|
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
|
|
|
class Texture2D;
|
|
|
|
|
2013-07-11 20:00:07 +02:00
|
|
|
/**
|
|
|
|
* Contains a configurable effect that supports alpha testing.
|
|
|
|
*/
|
2013-06-02 14:32:43 +02:00
|
|
|
class AlphaTestEffect : public Effect
|
|
|
|
{
|
2013-07-11 20:00:07 +02:00
|
|
|
private:
|
2013-08-13 20:04:25 +02:00
|
|
|
static byte effectCode[];
|
2013-07-11 20:00:07 +02:00
|
|
|
|
2013-06-02 14:32:43 +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;
|
2013-08-13 20:04:25 +02:00
|
|
|
static const Type& GetType();
|
2013-06-02 14:32:43 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_ALPHATESTEFFECT_
|