Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/image.h
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| class DeviceScene; | class DeviceScene; | ||||
| class Progress; | class Progress; | ||||
| class ImageManager { | class ImageManager { | ||||
| public: | public: | ||||
| ImageManager(); | ImageManager(); | ||||
| ~ImageManager(); | ~ImageManager(); | ||||
| int add_image(const string& filename, void *builtin_data, bool animated, bool& is_float, bool& is_linear); | int add_image(const string& filename, void *builtin_data, bool animated, bool& is_float, bool& is_linear, int interpolation); | ||||
| void remove_image(const string& filename, void *builtin_data); | void remove_image(const string& filename, void *builtin_data, int interpolation); | ||||
| bool is_float_image(const string& filename, void *builtin_data, bool& is_linear); | bool is_float_image(const string& filename, void *builtin_data, bool& is_linear); | ||||
| void device_update(Device *device, DeviceScene *dscene, Progress& progress); | void device_update(Device *device, DeviceScene *dscene, Progress& progress); | ||||
| void device_free(Device *device, DeviceScene *dscene); | void device_free(Device *device, DeviceScene *dscene); | ||||
| void set_osl_texture_system(void *texture_system); | void set_osl_texture_system(void *texture_system); | ||||
| void set_pack_images(bool pack_images_); | void set_pack_images(bool pack_images_); | ||||
| void set_extended_image_limits(void); | void set_extended_image_limits(void); | ||||
| Show All 12 Lines | private: | ||||
| int animation_frame; | int animation_frame; | ||||
| struct Image { | struct Image { | ||||
| string filename; | string filename; | ||||
| void *builtin_data; | void *builtin_data; | ||||
| bool need_load; | bool need_load; | ||||
| bool animated; | bool animated; | ||||
| int interpolation; | |||||
| int users; | int users; | ||||
| }; | }; | ||||
| vector<Image*> images; | vector<Image*> images; | ||||
| vector<Image*> float_images; | vector<Image*> float_images; | ||||
| void *osl_texture_system; | void *osl_texture_system; | ||||
| bool pack_images; | bool pack_images; | ||||
| Show All 13 Lines | |||||