Blender V4.3
image_draw.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_brush_types.h"
#include "DNA_camera_types.h"
#include "DNA_mask_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view2d_types.h"
#include "BLI_listbase.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_threads.h"
#include "BLI_time.h"
#include "BLI_utildefines.h"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "IMB_moviecache.hh"
#include "BKE_context.hh"
#include "BKE_image.hh"
#include "BKE_paint.hh"
#include "BIF_glutil.hh"
#include "GPU_framebuffer.hh"
#include "GPU_immediate.hh"
#include "GPU_immediate_util.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "BLF_api.hh"
#include "ED_gpencil_legacy.hh"
#include "ED_image.hh"
#include "ED_mask.hh"
#include "ED_render.hh"
#include "ED_screen.hh"
#include "ED_util.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "image_intern.hh"

Go to the source code of this file.

Functions

static void draw_render_info (const bContext *C, Scene *scene, Image *ima, ARegion *region, float zoomx, float zoomy)
 
void ED_image_draw_info (Scene *scene, ARegion *region, bool color_manage, bool use_default_view, int channels, int x, int y, const uchar cp[4], const float fp[4], const float linearcol[4])
 
void draw_image_sample_line (SpaceImage *sima)
 
void draw_image_main_helpers (const bContext *C, ARegion *region)
 
bool ED_space_image_show_cache (const SpaceImage *sima)
 
bool ED_space_image_show_cache_and_mval_over (const SpaceImage *sima, ARegion *region, const int mval[2])
 
void draw_image_cache (const bContext *C, ARegion *region)
 
float ED_space_image_zoom_level (const View2D *v2d, const int grid_dimension)
 
void ED_space_image_grid_steps (SpaceImage *sima, float grid_steps_x[SI_GRID_STEPS_LEN], float grid_steps_y[SI_GRID_STEPS_LEN], const int grid_dimension)
 
float ED_space_image_increment_snap_value (const int grid_dimensions, const float grid_steps[SI_GRID_STEPS_LEN], const float zoom_factor)
 

Function Documentation

◆ draw_image_cache()

◆ draw_image_main_helpers()

◆ draw_image_sample_line()

◆ draw_render_info()

◆ ED_image_draw_info()

◆ ED_space_image_grid_steps()

void ED_space_image_grid_steps ( SpaceImage * sima,
float grid_steps_x[SI_GRID_STEPS_LEN],
float grid_steps_y[SI_GRID_STEPS_LEN],
const int grid_dimension )

◆ ED_space_image_increment_snap_value()

float ED_space_image_increment_snap_value ( int grid_dimensions,
const float grid_steps[SI_GRID_STEPS_LEN],
float zoom_factor )

Calculate the increment snapping value for UV/image editor based on the zoom factor The code in here (except the offset part) is used in grid_frag.glsl (see grid_res) for drawing the grid overlay for the UV/Image editor.

Definition at line 600 of file image_draw.cc.

References SI_GRID_STEPS_LEN.

Referenced by transform_snap_grid_init().

◆ ED_space_image_show_cache()

bool ED_space_image_show_cache ( const SpaceImage * sima)

◆ ED_space_image_show_cache_and_mval_over()

bool ED_space_image_show_cache_and_mval_over ( const SpaceImage * sima,
ARegion * region,
const int mval[2] )

◆ ED_space_image_zoom_level()

float ED_space_image_zoom_level ( const View2D * v2d,
const int grid_dimension )