aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CNullDriver.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-12-29 13:12:09 +0100
committerGitHub <noreply@github.com>2021-12-29 13:12:09 +0100
commitdd09fdcb4e56fc6185ed25d39ab68fad88f31e3b (patch)
treec0f97fda676c271d723c84c01fdcef79476b759d /source/Irrlicht/CNullDriver.h
parent4bdecbc6b7a58ed45b94b747d8441391baef2094 (diff)
downloadirrlicht-dd09fdcb4e56fc6185ed25d39ab68fad88f31e3b.tar.xz
Remove more unused code (#87)
Diffstat (limited to 'source/Irrlicht/CNullDriver.h')
-rw-r--r--source/Irrlicht/CNullDriver.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/source/Irrlicht/CNullDriver.h b/source/Irrlicht/CNullDriver.h
index 12f2643..c9e5e7c 100644
--- a/source/Irrlicht/CNullDriver.h
+++ b/source/Irrlicht/CNullDriver.h
@@ -335,10 +335,6 @@ namespace video
virtual void makeColorKeyTexture(video::ITexture* texture, core::position2d<s32> colorKeyPixelPos,
bool zeroTexels) const _IRR_OVERRIDE_;
- //! Creates a normal map from a height map texture.
- //! \param amplitude: Constant value by which the height information is multiplied.
- virtual void makeNormalMapTexture(video::ITexture* texture, f32 amplitude=1.0f) const _IRR_OVERRIDE_;
-
//! Returns the maximum amount of primitives (mostly vertices) which
//! the device is able to render with one drawIndexedTriangleList
//! call.
@@ -720,35 +716,6 @@ namespace video
// prints renderer version
void printVersion();
- //! normal map lookup 32 bit version
- inline f32 nml32(int x, int y, int pitch, int height, s32 *p) const
- {
- if (x < 0)
- x = pitch-1;
- if (x >= pitch)
- x = 0;
- if (y < 0)
- y = height-1;
- if (y >= height)
- y = 0;
- return (f32)(((p[(y * pitch) + x])>>16) & 0xff);
- }
-
- //! normal map lookup 16 bit version
- inline f32 nml16(int x, int y, int pitch, int height, s16 *p) const
- {
- if (x < 0)
- x = pitch-1;
- if (x >= pitch)
- x = 0;
- if (y < 0)
- y = height-1;
- if (y >= height)
- y = 0;
-
- return (f32) getAverage ( p[(y * pitch) + x] );
- }
-
inline bool getWriteZBuffer(const SMaterial& material) const
{
switch ( material.ZWriteEnable )