Renderer/Renderer: Change texture unit parameter from UInt8 to unsigned int
This commit is contained in:
parent
7de3c4905f
commit
b410956d1b
|
|
@ -102,8 +102,8 @@ namespace Nz
|
||||||
static void SetStencilReferenceValue(unsigned int refValue, FaceSide faceSide = FaceSide_FrontAndBack);
|
static void SetStencilReferenceValue(unsigned int refValue, FaceSide faceSide = FaceSide_FrontAndBack);
|
||||||
static void SetStencilZFailOperation(StencilOperation zfailOperation, FaceSide faceSide = FaceSide_FrontAndBack);
|
static void SetStencilZFailOperation(StencilOperation zfailOperation, FaceSide faceSide = FaceSide_FrontAndBack);
|
||||||
static bool SetTarget(const RenderTarget* target);
|
static bool SetTarget(const RenderTarget* target);
|
||||||
static void SetTexture(UInt8 unit, const Texture* texture);
|
static void SetTexture(unsigned int unit, const Texture* texture);
|
||||||
static void SetTextureSampler(UInt8 textureUnit, const TextureSampler& sampler);
|
static void SetTextureSampler(unsigned int textureUnit, const TextureSampler& sampler);
|
||||||
static void SetVertexBuffer(const VertexBuffer* vertexBuffer);
|
static void SetVertexBuffer(const VertexBuffer* vertexBuffer);
|
||||||
static void SetViewport(const Recti& viewport);
|
static void SetViewport(const Recti& viewport);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1294,7 +1294,7 @@ namespace Nz
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Renderer::SetTexture(UInt8 unit, const Texture* texture)
|
void Renderer::SetTexture(unsigned int unit, const Texture* texture)
|
||||||
{
|
{
|
||||||
#if NAZARA_RENDERER_SAFE
|
#if NAZARA_RENDERER_SAFE
|
||||||
if (unit >= s_maxTextureUnit)
|
if (unit >= s_maxTextureUnit)
|
||||||
|
|
@ -1319,7 +1319,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Renderer::SetTextureSampler(UInt8 unit, const TextureSampler& sampler)
|
void Renderer::SetTextureSampler(unsigned int unit, const TextureSampler& sampler)
|
||||||
{
|
{
|
||||||
#if NAZARA_RENDERER_SAFE
|
#if NAZARA_RENDERER_SAFE
|
||||||
if (unit >= s_maxTextureUnit)
|
if (unit >= s_maxTextureUnit)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue