Blender  V2.93
Macros | Functions | Variables
drawobject.c File Reference
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BKE_DerivedMesh.h"
#include "BKE_editmesh.h"
#include "BKE_global.h"
#include "BKE_object.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "GPU_batch.h"
#include "GPU_immediate.h"
#include "GPU_shader.h"
#include "GPU_state.h"
#include "ED_mesh.h"
#include "UI_resources.h"
#include "DRW_engine.h"
#include "view3d_intern.h"

Go to the source code of this file.

Macros

#define CIRCLE_RESOL   32
 

Functions

static void circball_array_fill (const float verts[CIRCLE_RESOL][3], const float cent[3], float rad, const float tmat[4][4])
 
void imm_drawcircball (const float cent[3], float rad, const float tmat[4][4], uint pos)
 
void ED_draw_object_facemap (Depsgraph *depsgraph, Object *ob, const float col[4], const int facemap)
 

Variables

static const float sinval [CIRCLE_RESOL]
 
static const float cosval [CIRCLE_RESOL]
 
uchar view3d_camera_border_hack_col [3]
 
bool view3d_camera_border_hack_test = false
 

Macro Definition Documentation

◆ CIRCLE_RESOL

#define CIRCLE_RESOL   32

Definition at line 53 of file drawobject.c.

Function Documentation

◆ circball_array_fill()

static void circball_array_fill ( const float  verts[CIRCLE_RESOL][3],
const float  cent[3],
float  rad,
const float  tmat[4][4] 
)
static

Definition at line 72 of file drawobject.c.

References Freestyle::a, CIRCLE_RESOL, cosval, mul_v3_v3fl(), sinval, and verts.

Referenced by imm_drawcircball().

◆ ED_draw_object_facemap()

void ED_draw_object_facemap ( Depsgraph depsgraph,
Object ob,
const float  col[4],
const int  facemap 
)

◆ imm_drawcircball()

void imm_drawcircball ( const float  cent[3],
float  rad,
const float  tmat[4][4],
uint  pos 
)

Variable Documentation

◆ cosval

const float cosval[CIRCLE_RESOL]
static
Initial value:
= {
1.00000000, 0.97952994, 0.91895781, 0.82076344, 0.68896691, 0.52896401, 0.34730525,
0.15142777, -0.05064916, -0.25065253, -0.44039415, -0.61210598, -0.75875812, -0.87434661,
-0.95413925, -0.99486932, -0.99486932, -0.95413925, -0.87434661, -0.75875812, -0.61210598,
-0.44039415, -0.25065253, -0.05064916, 0.15142777, 0.34730525, 0.52896401, 0.68896691,
0.82076344, 0.91895781, 0.97952994, 1.00000000,
}

Definition at line 64 of file drawobject.c.

Referenced by BLI_dial_angle(), and circball_array_fill().

◆ sinval

const float sinval[CIRCLE_RESOL]
static
Initial value:
= {
0.00000000, 0.20129852, 0.39435585, 0.57126821, 0.72479278, 0.84864425, 0.93775213,
0.98846832, 0.99871650, 0.96807711, 0.89780453, 0.79077573, 0.65137248, 0.48530196,
0.29936312, 0.10116832, -0.10116832, -0.29936312, -0.48530196, -0.65137248, -0.79077573,
-0.89780453, -0.96807711, -0.99871650, -0.98846832, -0.93775213, -0.84864425, -0.72479278,
-0.57126821, -0.39435585, -0.20129852, 0.00000000,
}

Definition at line 55 of file drawobject.c.

Referenced by BLI_dial_angle(), and circball_array_fill().

◆ view3d_camera_border_hack_col

uchar view3d_camera_border_hack_col[3]

Definition at line 104 of file drawobject.c.

Referenced by drawviewborder().

◆ view3d_camera_border_hack_test

bool view3d_camera_border_hack_test = false

Definition at line 105 of file drawobject.c.

Referenced by drawviewborder().