94 return this->snode->
zoom;
104 return float2(snode->xof, snode->yof);
float2 get_pan_offset() const override
Gets the pan offset of the space in image pixel space.
bool use_display_window() const override
Draw image with display window offsets.
SpaceNodeAccessor(SpaceNode *snode)
bool use_tile_drawing() const override
Is (wrap) repeat option enabled in the space.
void get_shader_parameters(ShaderParameters &r_shader_parameters, ImBuf *ibuf) override
ImBuf * acquire_image_buffer(blender::Image *image, void **lock) override
void release_buffer(blender::Image *image, ImBuf *ibuf, void *lock) override
blender::Image * get_image(Main *bmain) override
float get_zoom() const override
Gets the zoom factor of the space. A factor of 2 is a zoom-in by two times.
float get_aspect_ratio() const override
Gets the aspect ratio of the image. The ratio is for the vertical axis.
ImageUser * get_image_user() override
@ IMAGE_DRAW_FLAG_SHOW_ALPHA
@ IMAGE_DRAW_FLAG_SHUFFLING
@ IMAGE_DRAW_FLAG_APPLY_ALPHA
VecBase< float, 4 > float4
ImBuf * BKE_image_acquire_ibuf_gpu(Image *ima, ImageUser *iuser, void **r_lock, bool *r_load_failed=nullptr, bool cached_only=false)
VecBase< float, 2 > float2
bool IMB_alpha_affects_rgb(const ImBuf *ibuf)
Image * BKE_image_ensure_viewer(Main *bmain, int type, const char *name)
void BKE_image_release_ibuf(Image *ima, ImBuf *ibuf, void *lock)