mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-15 21:03:55 -07:00
Removes unused Get/SetDepthTextureBits methods
Some checks are pending
Some checks are pending
Methods were added inf903b83674. Methods became unused in12e2428495.
This commit is contained in:
parent
71400e8045
commit
4259c78150
2 changed files with 0 additions and 33 deletions
|
|
@ -703,23 +703,6 @@ void ShadowMap::BindTo(
|
|||
}
|
||||
}
|
||||
|
||||
// Depth texture bits
|
||||
int ShadowMap::GetDepthTextureBits() const
|
||||
{
|
||||
return m->DepthTextureBits;
|
||||
}
|
||||
|
||||
void ShadowMap::SetDepthTextureBits(int bits)
|
||||
{
|
||||
if (bits != m->DepthTextureBits)
|
||||
{
|
||||
m->Texture.reset();
|
||||
m->Width = m->Height = 0;
|
||||
|
||||
m->DepthTextureBits = bits;
|
||||
}
|
||||
}
|
||||
|
||||
void ShadowMap::RenderDebugBounds(Renderer::Backend::IDeviceCommandContext& deviceCommandContext)
|
||||
{
|
||||
// Render various shadow bounds:
|
||||
|
|
|
|||
|
|
@ -47,22 +47,6 @@ public:
|
|||
*/
|
||||
void RecreateTexture();
|
||||
|
||||
/**
|
||||
* GetDepthTextureBits: Return the number of bits to use for depth textures when
|
||||
* enabled.
|
||||
*
|
||||
* @return depth texture bit depth
|
||||
*/
|
||||
int GetDepthTextureBits() const;
|
||||
|
||||
/**
|
||||
* SetDepthTextureBits: Sets the number of bits to use for depth textures when enabled.
|
||||
* Possible values are 16, 24, 32 and 0 (= use default)
|
||||
*
|
||||
* @param bits number of bits
|
||||
*/
|
||||
void SetDepthTextureBits(int bits);
|
||||
|
||||
/**
|
||||
* SetupFrame: Configure light space for the given camera and light direction,
|
||||
* create the shadow texture if necessary, etc.
|
||||
|
|
|
|||
Loading…
Reference in a new issue