Renamed depth test to depth buffer

Because disabling depth test also disable depth write


Former-commit-id: 0e0b3353c309fb1d702d030accc4349f1f0c6d96
This commit is contained in:
Lynix
2013-05-21 16:16:36 +02:00
parent 3ff5761703
commit 0717823b0e
7 changed files with 58 additions and 119 deletions

View File

@@ -30,15 +30,16 @@ class NAZARA_API NzDebugDrawer
//static void DrawNormals(const NzSubMesh* subMesh);
//static void DrawTangents(const NzSubMesh* subMesh);
static bool Initialize();
static void EnableDepthBuffer(bool depthBuffer);
static bool GetDepthTest();
static float GetLineWidth();
static float GetPointSize();
static NzColor GetPrimaryColor();
static NzColor GetSecondaryColor();
static void SetDepthTest(bool shouldTest);
static bool Initialize();
static bool IsDepthBufferEnabled();
static void SetLineWidth(float width);
static void SetPointSize(float size);
static void SetPrimaryColor(const NzColor& color);

View File

@@ -110,7 +110,7 @@ enum nzRendererParameter
{
nzRendererParameter_Blend,
nzRendererParameter_ColorWrite,
nzRendererParameter_DepthTest,
nzRendererParameter_DepthBuffer,
nzRendererParameter_DepthWrite,
nzRendererParameter_FaceCulling,
nzRendererParameter_ScissorTest,

View File

@@ -47,7 +47,7 @@ class NAZARA_API NzMaterial : public NzResource
void EnableAlphaBlending(bool alphaBlending);
void EnableFaceCulling(bool faceCulling);
void EnableLighting(bool lighting);
void EnableZTest(bool zTest);
void EnableZBuffer(bool zBuffer);
void EnableZWrite(bool zWrite);
NzColor GetAmbientColor() const;
@@ -77,7 +77,7 @@ class NAZARA_API NzMaterial : public NzResource
bool IsAlphaBlendingEnabled() const;
bool IsFaceCullingEnabled() const;
bool IsLightingEnabled() const;
bool IsZTestEnabled() const;
bool IsZBufferEnabled() const;
bool IsZWriteEnabled() const;
bool LoadFromFile(const NzString& filePath, const NzMaterialParams& params = NzMaterialParams());
@@ -140,7 +140,7 @@ class NAZARA_API NzMaterial : public NzResource
bool m_alphaBlendingEnabled;
bool m_faceCullingEnabled;
bool m_lightingEnabled;
bool m_zTestEnabled;
bool m_zBufferEnabled;
bool m_zWriteEnabled;
float m_shininess;