Renamed depth test to depth buffer
Because disabling depth test also disable depth write Former-commit-id: 0e0b3353c309fb1d702d030accc4349f1f0c6d96
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -110,7 +110,7 @@ enum nzRendererParameter
|
||||
{
|
||||
nzRendererParameter_Blend,
|
||||
nzRendererParameter_ColorWrite,
|
||||
nzRendererParameter_DepthTest,
|
||||
nzRendererParameter_DepthBuffer,
|
||||
nzRendererParameter_DepthWrite,
|
||||
nzRendererParameter_FaceCulling,
|
||||
nzRendererParameter_ScissorTest,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user