Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

PlayStation 2
[RpMipmapKL]


Functions

RwReal  RpSkyTextureSetDefaultMipmapK (RwReal val)
RwUInt32  RpSkyTextureSetDefaultMipmapL (RwUInt32 val)
RwReal  RpSkyTextureGetDefaultMipmapK (void)
RwUInt32  RpSkyTextureGetDefaultMipmapL (void)
RwTexture RpSkyTextureSetMipmapK (RwTexture *tex, RwReal val)
RwTexture RpSkyTextureSetMipmapL (RwTexture *tex, RwUInt32 val)
RwReal  RpSkyTextureGetMipmapK (RwTexture *tex)
RwUInt32  RpSkyTextureGetMipmapL (RwTexture *tex)

Detailed Description

Platform-specific

In PlayStation 2 builds of the library, the Mipmap K & L functionality is provided directly by the driver. There is no need to attach the plugin. In this case, the plugin header redefines all the plugin functions to be the equivalent dirver functions.


Function Documentation

RwReal RpSkyTextureGetDefaultMipmapK void   
 

RpSkyTextureGetDefaultMipmapK is used to get the current default "K" value used at texture creation. See RpSkyTextureSetDefaultMipmapK for further information.

Returns:
K value currently used by default
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL
RwUInt32 RpSkyTextureGetDefaultMipmapL void   
 

RpSkyTextureGetDefaultMipmapL is used to get the current default "L" value used at texture creation. See RpSkyTextureSetDefaultMipmapK for further information.

Returns:
L value currently used by default
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL
RwReal RpSkyTextureGetMipmapK RwTexture   tex
 

RpSkyTextureGetMipmapK is used to get the "K" value that will be used when a particular texture is drawn. This controls the way mipmap levels are selected by the GS. See RpSkyTextureSetDefaultMipmapK for further information.

Parameters:
tex  texture being queried
Returns:
The texture's K value
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapL
RwUInt32 RpSkyTextureGetMipmapL RwTexture   tex
 

RpSkyTextureGetMipmapL is used to get the "L" value that will be used when a particular texture is drawn. This controls the way mipmap levels are selected by the GS. See RpSkyTextureSetDefaultMipmapK for further information.

Parameters:
tex  texture being queried
Returns:
The texture's L value
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK
RwReal RpSkyTextureSetDefaultMipmapK RwReal    val
 

RpSkyTextureSetDefaultMipmapK is used to set the default "K" value that will be used when textures are created. This controls the way mipmap levels are selected by the GS. Except in the unusual situation where all textures have been sized to get an even texture density across the scene, it is better to set each texture's "K" directly using RpSkyTextureSetMipmapK. A toolkit to help calculate suitable "K" values is available. "K" specifies the distance a polygon needs to be from the camera such that the pixel to texel ratio when rendered is 1:1 assuming the polygon is flat on the screen. "L" specifies the angle of inclination between\ the polygon and the camera viewwindow, it's a 2-bit value where 0 says the angle is 0 degrees and 3 says it's 90 degrees. Essentially they allow you to work out the pixel:texel ratio when rendering a single pixel if you know it's distance from the camera, i.e the GS can get the mipmap level purely from the value in Z. Further information is available in the GS User's Manual

Parameters:
val  floating point "K" value.
Returns:
K value actually asigned (Limited precision is available)
See also:
RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL
RwUInt32 RpSkyTextureSetDefaultMipmapL RwUInt32    val
 

RpSkyTextureSetDefaultMipmapL is used to set the default "L" value that will be used when textures are created. This controls the way mipmap levels are selected by the GS. It will almost alway be better to set this per texture using RpSkyTextureSetMipmapL See RpSkyTextureSetDefaultMipmapK for further information.

Parameters:
val  "L" value.
Returns:
L value actually asigned (Limited range is available)
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL
RwTexture* RpSkyTextureSetMipmapK RwTexture   tex,
RwReal    val
 

RpSkyTextureSetMipmapK is used to set the "K" value that will be used when a particular texture is drawn. This controls the way mipmap levels are selected by the GS. See RpSkyTextureSetDefaultMipmapK for further information.

Parameters:
tex  texture to update.
val  floating point K value.
Returns:
The texture, otherwise NULL on failure
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapL , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL
RwTexture* RpSkyTextureSetMipmapL RwTexture   tex,
RwUInt32    val
 

RpSkyTextureSetMipmapL is used to set the "L" value that will be used when a particular texture is drawn. This controls the way mipmap levels are selected by the GS. See RpSkyTextureSetDefaultMipmapK for further information.

Parameters:
tex  texture to update.
val  L value.
Returns:
The texture, otherwise NULL on failure
See also:
RpSkyTextureSetDefaultMipmapK , RpSkyTextureSetDefaultMipmapL , RpSkyTextureGetDefaultMipmapK , RpSkyTextureGetDefaultMipmapL , RpSkyTextureSetMipmapK , RpSkyTextureGetMipmapK , RpSkyTextureGetMipmapL

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:21 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)