Property | Type | Description | |
---|---|---|---|
ImageFilters | ImageFilter>.Dictionary |
Method | Description | |
---|---|---|
BeginLevelLoad ( ) : void |
Mark all file based images as currently unused, but don't free anything. Calls to ImageFromFile() will either mark the image as used, or create a new image without loading the actual data.
|
|
BindNullTexture ( ) : void |
Disable the active texture unit.
|
|
ChangeTextureFilter ( ) : void |
Resets filtering on all loaded images. New images will automatically pick up the current values.
|
|
CompleteBackgroundLoading ( ) : void | ||
EndLevelLoad ( ) : void |
Free all images marked as unused, and load all images that are necessary. This architecture prevents us from having the union of two level's worth of data present at one time.
|
|
GenerateAlphaNotchImage ( |
||
GenerateAlphaRampImage ( |
Creates a 0-255 ramp image.
|
|
GenerateAmbientNormalImage ( |
||
GenerateBlackImage ( |
||
GenerateBorderClampImage ( |
||
GenerateDefaultImage ( |
||
GenerateFlatNormalImage ( |
||
GenerateFogEnterImage ( |
Modulate the fog alpha density based on the distance of the start and end points to the terminator plane.
|
|
GenerateFogImage ( |
We calculate distance correctly in two planes, but the third will still be projection based.
|
|
GenerateNoFalloffImage ( |
This is a solid white texture that is zero clamped.
|
|
GenerateQuadraticImage ( |
||
GenerateRGB8Image ( |
||
GenerateRGBA8Image ( |
||
GenerateRampImage ( |
Creates a 0-255 ramp image.
|
|
GenerateSpecular2DTableImage ( |
Create a 2D table that calculates (reflection dot , specularity).
|
|
GenerateSpecularTableImage ( |
Creates a ramp that matches our fudged specular calculation.
|
|
GenerateWhiteImage ( |
||
ImageFromFile ( string name, TextureFilter filter, bool allowDownSize, TextureRepeat repeat, TextureDepth depth ) : |
Finds or loads the given image, always returning a valid image pointer. Loading of the image may be deferred for dynamic loading.
|
|
ImageFromFile ( string name, TextureFilter filter, bool allowDownSize, TextureRepeat repeat, TextureDepth depth, CubeFiles cubeMap ) : |
Finds or loads the given image, always returning a valid image pointer. Loading of the image may be deferred for dynamic loading.
|
|
ImageProgramStringToCompressedFileName ( string program ) : string | ||
Init ( ) : void | ||
LoadFromCallback ( string name, ImageLoadCallback generator ) : |
Images that are procedurally generated are allways specified with a callback which must work at any time, allowing the render system to be completely regenerated if needed.
|
|
LoadImage ( string name, System.DateTime &timeStamp, bool makePowerOf2 ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Loads any of the supported image types into a cannonical 32 bit format. Automatically attempts to load .jpg files if .tga files fail to load. Anything that is going to make this into a texture would use makePowerOf2 = true, but something loading an image as a lookup table of some sort would leave it in identity form. It is important to do this at image load time instead of texture load time for bump maps. timestamp may be NULL if the value is going to be ignored If data is NULL, the image won't actually be loaded, it will just find the timestamp. |
|
LoadImageProgram ( string name, System.DateTime &timeStamp, TextureDepth &depth ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
ParseImageProgram ( string source, System.DateTime &timeStamp, TextureDepth &depth ) : Microsoft.Xna.Framework.Graphics.Texture2D |
If data is NULL, the timestamps will be filled in, but no image will be generated If both data and timeStamp are NULL, it will just advance past it, which can be used to parse an image program from a text stream.
|
|
QueueBackgroundLoad ( |
||
ReloadImages ( ) : void | ||
idImageManager ( ) : System |
Method | Description | |
---|---|---|
Cmd_ReloadImages ( object sender, CommandEventArgs e ) : void |
Regenerate all images that came directly from files that have changed, so any saved changes will show up in place. New r_texturesize/r_texturedepth variables will take effect on reload.
|
|
CreateImage ( string name, ImageLoadCallback generator ) : |
||
CreateImage ( string name, TextureType type, TextureFilter filter, TextureRepeat repeat, TextureDepth depth, CubeFiles cubeMap, bool allowDownSize ) : |
||
FogFraction ( float viewHeight, float targetHeight ) : float | ||
InitCvars ( ) : void | ||
InitFilters ( ) : void | ||
SetNormalPalette ( ) : void | ||
SetSamplers ( ) : void |
public static GenerateAlphaNotchImage ( |
||
image | ||
return | void |
public static GenerateAlphaRampImage ( |
||
image | ||
return | void |
public static GenerateAmbientNormalImage ( |
||
image | ||
return | void |
public static GenerateBlackImage ( |
||
image | ||
return | void |
public static GenerateBorderClampImage ( |
||
image | ||
return | void |
public static GenerateDefaultImage ( |
||
image | ||
return | void |
public static GenerateFlatNormalImage ( |
||
image | ||
return | void |
public static GenerateFogEnterImage ( |
||
image | ||
return | void |
public static GenerateFogImage ( |
||
image | ||
return | void |
public static GenerateNoFalloffImage ( |
||
image | ||
return | void |
public static GenerateQuadraticImage ( |
||
image | ||
return | void |
public static GenerateRGB8Image ( |
||
image | ||
return | void |
public static GenerateRGBA8Image ( |
||
image | ||
return | void |
public static GenerateRampImage ( |
||
image | ||
return | void |
public static GenerateSpecular2DTableImage ( |
||
image | ||
return | void |
public static GenerateSpecularTableImage ( |
||
image | ||
return | void |
public static GenerateWhiteImage ( |
||
image | ||
return | void |
public ImageFromFile ( string name, TextureFilter filter, bool allowDownSize, TextureRepeat repeat, TextureDepth depth ) : |
||
name | string | |
filter | TextureFilter | |
allowDownSize | bool | |
repeat | TextureRepeat | |
depth | TextureDepth | |
return |
public ImageFromFile ( string name, TextureFilter filter, bool allowDownSize, TextureRepeat repeat, TextureDepth depth, CubeFiles cubeMap ) : |
||
name | string | |
filter | TextureFilter | |
allowDownSize | bool | |
repeat | TextureRepeat | |
depth | TextureDepth | |
cubeMap | CubeFiles | |
return |
public ImageProgramStringToCompressedFileName ( string program ) : string | ||
program | string | |
return | string |
public LoadFromCallback ( string name, ImageLoadCallback generator ) : |
||
name | string | |
generator | ImageLoadCallback | |
return |
public LoadImage ( string name, System.DateTime &timeStamp, bool makePowerOf2 ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
name | string | |
timeStamp | System.DateTime | |
makePowerOf2 | bool | |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public LoadImageProgram ( string name, System.DateTime &timeStamp, TextureDepth &depth ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
name | string | |
timeStamp | System.DateTime | |
depth | TextureDepth | |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public ParseImageProgram ( string source, System.DateTime &timeStamp, TextureDepth &depth ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
source | string | |
timeStamp | System.DateTime | |
depth | TextureDepth | |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public QueueBackgroundLoad ( |
||
image | ||
return | void |