Cycles: Expose image image extension mapping to the image manager
Currently only two mappings are supported by API, which is Repeat (old behavior) and new Clip behavior. Internally this extension is being converted to periodic flag which was already supported but wasn't exposed. There's no support for OpenCL yet because of the way how we pack images into a single texture. Those settings are not exposed to UI or anywhere else and there should be no functional changes so far.
This commit is contained in:
@@ -55,11 +55,24 @@ public:
|
||||
ImageManager();
|
||||
~ImageManager();
|
||||
|
||||
int add_image(const string& filename, void *builtin_data, bool animated, float frame,
|
||||
bool& is_float, bool& is_linear, InterpolationType interpolation, bool use_alpha);
|
||||
int add_image(const string& filename,
|
||||
void *builtin_data,
|
||||
bool animated,
|
||||
float frame,
|
||||
bool& is_float,
|
||||
bool& is_linear,
|
||||
InterpolationType interpolation,
|
||||
ExtensionType extension,
|
||||
bool use_alpha);
|
||||
void remove_image(int slot);
|
||||
void remove_image(const string& filename, void *builtin_data, InterpolationType interpolation);
|
||||
void tag_reload_image(const string& filename, void *builtin_data, InterpolationType interpolation);
|
||||
void remove_image(const string& filename,
|
||||
void *builtin_data,
|
||||
InterpolationType interpolation,
|
||||
ExtensionType extension);
|
||||
void tag_reload_image(const string& filename,
|
||||
void *builtin_data,
|
||||
InterpolationType interpolation,
|
||||
ExtensionType extension);
|
||||
bool is_float_image(const string& filename, void *builtin_data, bool& is_linear);
|
||||
|
||||
void device_update(Device *device, DeviceScene *dscene, Progress& progress);
|
||||
@@ -87,6 +100,7 @@ public:
|
||||
bool animated;
|
||||
float frame;
|
||||
InterpolationType interpolation;
|
||||
ExtensionType extension;
|
||||
|
||||
int users;
|
||||
};
|
||||
|
Reference in New Issue
Block a user