aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/materialsystem/itexture.h
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/materialsystem/itexture.h
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/public/materialsystem/itexture.h')
-rw-r--r--mp/src/public/materialsystem/itexture.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mp/src/public/materialsystem/itexture.h b/mp/src/public/materialsystem/itexture.h
index a5aa20fd..0e315447 100644
--- a/mp/src/public/materialsystem/itexture.h
+++ b/mp/src/public/materialsystem/itexture.h
@@ -39,6 +39,10 @@ public:
// This will be called when the regenerator needs to be deleted
// which will happen when the texture is destroyed
virtual void Release() = 0;
+
+ // (erics): This should have a virtual destructor, but would be ABI breaking (non-versioned interface implemented
+ // by the game)
+// virtual ~ITextureRegenerator(){}
};
abstract_class ITexture
@@ -120,6 +124,13 @@ public:
// Save texture to a file.
virtual bool SaveToFile( const char *fileName ) = 0;
+
+ // Copy this texture, which must be a render target or a renderable texture, to the destination texture,
+ // which must have been created with the STAGING bit.
+ virtual void CopyToStagingTexture( ITexture* pDstTex ) = 0;
+
+ // Set that this texture should return true for the call "IsError"
+ virtual void SetErrorTexture( bool bIsErrorTexture ) = 0;
};