From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Graphics/GeneratedTextures.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Runtime/Graphics/GeneratedTextures.h (limited to 'Runtime/Graphics/GeneratedTextures.h') diff --git a/Runtime/Graphics/GeneratedTextures.h b/Runtime/Graphics/GeneratedTextures.h new file mode 100644 index 0000000..bc474c5 --- /dev/null +++ b/Runtime/Graphics/GeneratedTextures.h @@ -0,0 +1,28 @@ +#ifndef GENERATEDTEXTURES_H +#define GENERATEDTEXTURES_H + +#include "Runtime/GfxDevice/GfxDeviceTypes.h" +class Texture; +class Texture2D; +class Texture3D; + +namespace builtintex { + +void GenerateBuiltinTextures(); +void ReinitBuiltinTextures(); + +Texture2D* GetWhiteTexture (); +Texture2D* GetBlackTexture (); +Texture3D* GetDitherMaskTexture(); +Texture* GetAttenuationTexture (); +Texture* GetHaloTexture (); + +// Get the default texture for a texture dimension +TextureID GetDefaultTexture( TextureDimension texDim ); + +TextureID GetBlackTextureID (); + +} // namespace + + +#endif -- cgit v1.1-26-g67d0