RixTexture2d Class Reference
#include <RixInterfaces.h>
Public Types | |
enum | resultType { k_floatResult, k_integerResult, k_stringResult, k_colorResult, k_normalResult, k_vectorResult, k_pointResult, k_hpointResult, k_mpointResult, k_matrixResult } |
Public Member Functions | |
virtual int | TextureInfo (const RtString filename, const char *query, void *result, int resultlen, resultType *resulttype, int *resultcount, int faceindex=-1)=0 |
virtual int | TexturePoints1V (const RtString filename, RtInt nPoints, RtInt firstchannel, RtInt nchannels, RtFloat *s, RtFloat *t, RtFloat *result, RtInt n, RtToken tokens[], RtPointer parms[])=0 |
virtual int | TexturePoints4V (const RtString filename, RtInt nPoints, RtInt firstchannel, RtInt nchannels, RtFloat *s0, RtFloat *t0, RtFloat *s1, RtFloat *t1, RtFloat *s2, RtFloat *t2, RtFloat *s3, RtFloat *t3, RtFloat *result, RtInt n, RtToken tokens[], RtPointer parms[])=0 |
virtual int | TexturePointsFrV (const RtString filename, RtInt nPoints, RtInt firstchannel, RtInt nchannels, RtFloat *fr, RtFloat *result, RtInt n, RtToken tokens[], RtPointer parms[])=0 |
virtual int | PTexturePointsFrV (const RtString filename, RtInt nPoints, RtInt firstchannel, RtInt nchannels, RtFloat *faceId, RtFloat *fr, RtFloat *result, RtInt n, RtToken tokens[], RtPointer parms[])=0 |
virtual int | PTexturePointsV (const RtString filename, RtInt nPoints, RtInt firstchannel, RtInt nchannels, RtFloat *faceId, RtFloat *u, RtFloat *v, RtFloat *du1, RtFloat *dv1, RtFloat *du2, RtFloat *dv2, RtFloat *result, RtInt n, RtToken tokens[], RtPointer parms[])=0 |
Public Member Functions inherited from RixInterface | |
virtual int | GetVersion () const |
Protected Member Functions | |
RixTexture2d () | |
constructor for internal use only | |
Protected Member Functions inherited from RixInterface | |
RixInterface (int version) | |
Interfaces should not be constructed by users. | |
virtual | ~RixInterface () |
Interfaces should not be deleted by users. | |
Additional Inherited Members | |
Protected Attributes inherited from RixInterface | |
int | m_version |
Version number of this interface. | |
Detailed Description
RixTexture2d may perform filtered texture map lookups using one or four point or filter region versions of the corresponding shading language shadeops.
Each function takes a string specifying a texture filename, points specifying the region to be textured, and an optional parameter list. nchannels of texture data are retrieved starting at firstchannel, and stored in result
.
The data pointers for input and results should be interleaved.
TexturePoints1V filters the texture map lookup using smooth derivatives. If smooth derivatives are not available, it reverts to using the four-point call with the provided s and t used for all four points.
PTexturePointsFrV will apply ptexture using a filter region and PTexturePointsV will use the native ptexture() interface.
Member Function Documentation
|
pure virtual |
Corresponds to the filterregion version of the RSL ptexture() call. Additional arguments to the ptexture function are provided via the token / params pairs.
|
pure virtual |
Corresponds to the derivative version of the RSL ptexture() call. Additional arguments to the ptexture function are provided via the token / params pairs.
|
pure virtual |
For a given texture filename and a given query string, return in result, resultlen, resulttype, and resultcount the contents of the texture info query. If the query succeeds the return code will be zero.
|
pure virtual |
Corresponds to the single-point version of the RSL texture() call. Additional arguments to the texture function are provided via the token / params pairs.
|
pure virtual |
Corresponds to the four-point version of the RSL texture() call. Additional arguments to the texture function are provided via the token / params pairs.
|
pure virtual |
Corresponds to the filterregion version of the RSL texture() call. Additional arguments to the texture function are provided via the token / params pairs.
The documentation for this class was generated from the following file: