Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device.h
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | DeviceInfo() | ||||
| pack_images = false; | pack_images = false; | ||||
| extended_images = false; | extended_images = false; | ||||
| } | } | ||||
| }; | }; | ||||
| /* Device */ | /* Device */ | ||||
| struct DeviceDrawParams { | struct DeviceDrawParams { | ||||
| boost::function<void(void)> bind_display_space_shader_cb; | function<void(void)> bind_display_space_shader_cb; | ||||
sergey: I'm not really happy with this. Should be either just `functiom` or we call it `util_function`… | |||||
| boost::function<void(void)> unbind_display_space_shader_cb; | function<void(void)> unbind_display_space_shader_cb; | ||||
| }; | }; | ||||
| class Device { | class Device { | ||||
| protected: | protected: | ||||
| Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), info(info_), stats(stats_) {} | Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), info(info_), stats(stats_) {} | ||||
| bool background; | bool background; | ||||
| string error_msg; | string error_msg; | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||
I'm not really happy with this. Should be either just functiom or we call it util_function, but obviously it should not be #ifdef around variable declaration.