ITextureRegenerator

From Valve Developer Community
Revision as of 03:06, 1 December 2007 by ErdomViboc (talk | contribs)
Jump to navigation Jump to search

teen models amateur cuties vidios daisy online internet buying buy shopping best sites links pamella anderson nude risa online marketing services floor safes food storage skylar hairy vaginas la it girl love slaves humped hawaii vacation older nude women sublime girls wwe melina nude university of kansas music school world war 2 army tank kissing girls gallery soil remediation green day good riddance tiffany teen movies clothing optional galleries romantic poetry golfcarts nude females final fantasy gallery hentai verizo atkmodels naro forum femme fatale paper cutters zorritas pussy cat dolls trade buying used cars in oxford cat collars adult friend finder niche poseidon teen bodybuilder free wav ringtones llama pancake recipe nice butt cheeks vollyball birthday database oscar save one student aphasia northern ca asl interpreter vehicle transport companies car crashes advisers mira sorvino bubble boy fake fireplace jessica hahn hockey tickets university of california shannen doherty nude singles bedroombondage video net meeting naked underage girls tutorial on radar tracking control system virtual girls getto gospel trapped huns adult yellow page drum solos lesbian blondes on bison divx codecs where can i buy adipex online dunking booth milf amateurs cursor hand painted furniture loggins and messina crossdresser outdoor pee thule 2fast2furious supra cell phone number look up in ground swimming pools mad hatter arabic english into girls get fucked fucking angelina jolie dick proenneke cocker spaniel puppy free firewall food clip art japanese babes shunga yu gi oh card list preteens in thongs lingerie

Location
public\materialsystem\itexture.h
Purpose
The job ITextureRegenerator class is to change the pixel values of any procedural texture that uses a regenerator that implements this class.
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//

#ifndef ITEXTURE_H
#define ITEXTURE_H

#ifdef _WIN32
#pragma once
#endif

enum ImageFormat;
class IVTFTexture;
class ITexture;
struct Rect_t;

//-----------------------------------------------------------------------------
// This will get called on procedural textures to re-fill the textures
// with the appropriate bit pattern. Calling Download() will also
// cause this interface to be called. It will also be called upon
// mode switch, or on other occasions where the bits are discarded.
//-----------------------------------------------------------------------------
class ITextureRegenerator
{
public:
	// This will be called when the texture bits need to be regenerated.
	// Use the VTFTexture interface, which has been set up with the
	// appropriate texture size + format
	// The rect specifies which part of the texture needs to be updated
	// You can choose to update all of the bits if you prefer
	virtual void RegenerateTextureBits( ITexture *pTexture, IVTFTexture *pVTFTexture, Rect_t *pRect ) = 0;

	// This will be called when the regenerator needs to be deleted
	// which will happen when the texture is destroyed
	virtual void Release() = 0;
};

inline bool IsErrorTexture( ITexture *pTex )
{
	return !pTex || pTex->IsError();
}

#endif // ITEXTURE_H

See also