187 #define RTXPLUGINCREATE \ 188 extern "C" const PRMANEXPORT int RtxPluginVersion = 2; \ 189 extern "C" PRMANEXPORT RtxPlugin* RtxPluginNew( \ 190 RixContext* rixCtx, const char* pluginName) virtual ~RtxPlugin()
Definition: RtxPlugin.h:50
A struct to define an X,Y coordinate.
Definition: RtxPlugin.h:53
TextureCtx provides initial defining properties for textures generated by this plugin.
Definition: RtxPlugin.h:76
int numChannels
Definition: RtxPlugin.h:169
Int2D offset
Definition: RtxPlugin.h:62
WrapMode
The wrap mode applied at the edges of max resolution.
Definition: RtxPlugin.h:99
Rix interfaces are obtained from an RixContext.
Definition: RixInterfaces.h:172
void * tileData
Definition: RtxPlugin.h:173
Definition: RtxPlugin.h:119
Int2D imgRes
Definition: RtxPlugin.h:155
unsigned int argc
Read-only texture args, they come in pairs, memory is owned by the renderer.
Definition: RtxPlugin.h:127
int channelOffset
Definition: RtxPlugin.h:166
struct RtxPlugin::TextureCtx::layerSpec ** layers
int numChannels
This is the total number of channels present.
Definition: RtxPlugin.h:79
Definition: RtxPlugin.h:103
Int2D maxRes
Definition: RtxPlugin.h:96
virtual int Close(TextureCtx &tCtx)=0
virtual int Open(TextureCtx &tCtx)=0
The Open() method is called the first time a texture() encounters the plugin and provides a unique ar...
unsigned numChannels
Definition: RtxPlugin.h:92
const char * channelRefExpr
Definition: RtxPlugin.h:162
Plugin fills in the names and channel-count of the layers associated with this texture.
Definition: RtxPlugin.h:89
PyramidType
What type of pyramid should be used?
Definition: RtxPlugin.h:115
enum RtxPlugin::TextureCtx::WrapMode sWrap
bool isLocked
Should the tile be locked while filling? (not thread safe?)
Definition: RtxPlugin.h:123
Definition: RtxPlugin.h:111
enum RtxPlugin::TextureCtx::PyramidType pyramidType
Tile2D tile
Definition: RtxPlugin.h:158
RtxPlugin()
Definition: RtxPlugin.h:49
Definition: RtxPlugin.h:110
A struct to define a 2D region.
Definition: RtxPlugin.h:60
Definition: RtxPlugin.h:46
const char * name
Definition: RtxPlugin.h:91
bool retryOnError
Definition: RtxPlugin.h:141
void * userData
The plugin can use this field to stash its own instance data.
Definition: RtxPlugin.h:132
unsigned int numLayers
The maximum # of layers this texture can access.
Definition: RtxPlugin.h:82
enum RtxPlugin::TextureCtx::WrapMode tWrap
int Y
Definition: RtxPlugin.h:56
Definition: RtxPlugin.h:117
Int2D minRes
The min,max resolution requested for this texture.
Definition: RtxPlugin.h:96
Int2D size
Definition: RtxPlugin.h:63
Definition: RtxPlugin.h:102
const char ** argv
Definition: RtxPlugin.h:128
Definition: RtxPlugin.h:101
enum RtxPlugin::TextureCtx::DataType dataType
int X
Definition: RtxPlugin.h:55
virtual int Fill(TextureCtx &tCtx, FillRequest &fillReq)=0
NOTE: multi-channel textures might receive a FillRequest of fewer than nchans with a channelOffset >=...
Definition: RtxPlugin.h:152
Definition: RtxPlugin.h:118
DataType
The type of the data provided by the texture.
Definition: RtxPlugin.h:108