ITextureRegenerator

From Valve Developer Community
Revision as of 10:30, 25 November 2007 by ErdomViboc (talk | contribs)
Jump to navigation Jump to search

james blunt your beautiful mp3 commercial leasing american thumbs electric nipple torture al7bar queensland transport celebrities in tighty whities scrolling text boxes homes in lake havasu vacation cabins movie on vhs new release dare you to move home star runner asian oral animals penis gallery symptoms of hernia aldo porn preview million dollar home giveaway cucumber salad tori lane extra aisha tyler angioprim ways to eat a girl out ford fuel injectors michelle behennah free drawings of tattoos state laws of texas circles swiss travel agents java lang character sonic the hedgehog porn apache virtual host example bridesmaids dresses young voyeur travel bags johnny rivers billiard table dog penis cuffed to bed tour agencies in singapore rca dlp tv ministry of sound real amateur wives tom everett scott photos fetisch lesbian dildo orgy nude school teacher preteen girls pictures notifier com warren kimble christmas world of britney pictures kit homes in scotland shania twain nude gallery asianteen e harmony jim harrison legends of the fall standard hardboard tipos de medicion only hope perfect sex father daughter spanking with a paddle stories beheadings innocent underage lolita look what youve done patty hearst hot latina wildflowers horse statues mumbai micron reds how to make a pinata black gay cocks boys of summer professional multimedia web designers kraftmaid lyndsey slave collar adele pharmacology scada hoyt bows pc hentai for teens big dick porn puppet stages exercise neck wood lathe linear regression confidence mark wolff hot teen pussy yesmrlopez t shirt men atlanta escorts animal poster print burial insurance child custody lawyer certified financial manager

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