mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Replaced all copyright symbols with (c) to improve cross-platform reading Added classes to XFX::Audio namespace Added and updated classes in XFX::Graphics namespace Updated event function signature Replaced const char* ToString() with const String& ToString()
51 lines
1.1 KiB
C++
51 lines
1.1 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>
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
class Texture2D;
|
|
|
|
// Contains a configurable effect that supports alpha testing.
|
|
class AlphaTestEffect : public Effect
|
|
{
|
|
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;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_ALPHATESTEFFECT_
|