Blender V5.0
initrender.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "BLI_math_base.h"
#include "BLI_math_matrix.h"
#include "BLI_rect.h"
#include "DNA_scene_types.h"
#include "BKE_camera.h"
#include "RE_pipeline.h"
#include "render_types.h"

Go to the source code of this file.

Functions

static float filt_quadratic (float x)
static float filt_cubic (float x)
static float filt_catrom (float x)
static float filt_mitchell (float x)
float RE_filter_value (int type, float x)
ObjectRE_GetCamera (Render *re)
void RE_SetOverrideCamera (Render *re, Object *cam_ob)
void RE_SetCamera (Render *re, const Object *cam_ob)
void RE_GetCameraWindow (Render *re, const Object *camera, float r_winmat[4][4])
void RE_GetCameraWindowWithOverscan (const Render *re, float overscan, float r_winmat[4][4])
void RE_GetCameraModelMatrix (const Render *re, const Object *camera, float r_modelmat[4][4])
void RE_GetWindowMatrixWithOverscan (bool is_ortho, float clip_start, float clip_end, rctf viewplane, float overscan, float r_winmat[4][4])
void RE_GetViewPlane (Render *re, rctf *r_viewplane, rcti *r_disprect)

Function Documentation

◆ filt_catrom()

float filt_catrom ( float x)
static

Definition at line 60 of file initrender.cc.

References x.

Referenced by RE_filter_value().

◆ filt_cubic()

float filt_cubic ( float x)
static

Definition at line 43 of file initrender.cc.

References x.

Referenced by RE_filter_value().

◆ filt_mitchell()

float filt_mitchell ( float x)
static

Definition at line 76 of file initrender.cc.

References b, and x.

Referenced by RE_filter_value().

◆ filt_quadratic()

float filt_quadratic ( float x)
static

Definition at line 29 of file initrender.cc.

References x.

Referenced by RE_filter_value().

◆ RE_filter_value()

◆ RE_GetCamera()

◆ RE_GetCameraModelMatrix()

void RE_GetCameraModelMatrix ( const Render * re,
const Object * camera,
float r_modelmat[4][4] )

◆ RE_GetCameraWindow()

void RE_GetCameraWindow ( Render * re,
const Object * camera,
float r_winmat[4][4] )

◆ RE_GetCameraWindowWithOverscan()

void RE_GetCameraWindowWithOverscan ( const Render * re,
float overscan,
float r_winmat[4][4] )

◆ RE_GetViewPlane()

void RE_GetViewPlane ( struct Render * re,
rctf * r_viewplane,
rcti * r_disprect )

Get current view and window transform.

Definition at line 219 of file initrender.cc.

References BLI_rcti_init(), Render::disprect, RenderData::mode, Render::r, R_BORDER, and Render::viewplane.

Referenced by DRW_render_gpencil(), DRW_render_to_image(), and eevee_render().

◆ RE_GetWindowMatrixWithOverscan()

void RE_GetWindowMatrixWithOverscan ( bool is_ortho,
float clip_start,
float clip_end,
rctf viewplane,
float overscan,
float r_winmat[4][4] )

◆ RE_SetCamera()

◆ RE_SetOverrideCamera()

void RE_SetOverrideCamera ( Render * re,
Object * cam_ob )

Definition at line 154 of file initrender.cc.

References Render::camera_override.

Referenced by screen_opengl_views_setup().