It is now possible to use const shaders
A non-constant shader is no longer required to bind or to send uniform Former-commit-id: 8fd7c03b65a2d9fcea69516c023fee034299148c
This commit is contained in:
@@ -44,7 +44,7 @@ class NAZARA_API NzRenderer
|
||||
static unsigned int GetMaxRenderTargets();
|
||||
static unsigned int GetMaxTextureUnits();
|
||||
static float GetPointSize();
|
||||
static NzShader* GetShader();
|
||||
static const NzShader* GetShader();
|
||||
static NzRenderTarget* GetTarget();
|
||||
static NzRectui GetViewport();
|
||||
|
||||
@@ -67,7 +67,7 @@ class NAZARA_API NzRenderer
|
||||
static void SetLineWidth(float size);
|
||||
static void SetMatrix(nzMatrixType type, const NzMatrix4f& matrix);
|
||||
static void SetPointSize(float size);
|
||||
static bool SetShader(NzShader* shader);
|
||||
static bool SetShader(const NzShader* shader);
|
||||
static void SetStencilCompareFunction(nzRendererComparison compareFunc);
|
||||
static void SetStencilFailOperation(nzStencilOperation failOperation);
|
||||
static void SetStencilMask(nzUInt32 mask);
|
||||
|
||||
Reference in New Issue
Block a user