Blender  V3.3
Classes | Macros | Typedefs | Enumerations | Functions
overlay_shader_shared.h File Reference
#include "GPU_shader_shared_utils.h"
#include "DNA_action_types.h"
#include "DNA_view3d_types.h"

Go to the source code of this file.

Classes

struct  OVERLAY_GridData
 

Macros

#define BG_SOLID   0
 
#define BG_GRADIENT   1
 
#define BG_CHECKER   2
 
#define BG_RADIAL   3
 
#define BG_SOLID_CHECKER   4
 
#define BG_MASK   5
 
#define OVERLAY_GRID_STEPS_LEN   8
 

Typedefs

typedef enum OVERLAY_GridBits OVERLAY_GridBits
 
typedef struct OVERLAY_GridData OVERLAY_GridData
 

Enumerations

enum  OVERLAY_GridBits {
  SHOW_AXIS_X = (1u << 0u) , SHOW_AXIS_Y = (1u << 1u) , SHOW_AXIS_Z = (1u << 2u) , SHOW_GRID = (1u << 3u) ,
  PLANE_XY = (1u << 4u) , PLANE_XZ = (1u << 5u) , PLANE_YZ = (1u << 6u) , CLIP_ZPOS = (1u << 7u) ,
  CLIP_ZNEG = (1u << 8u) , GRID_BACK = (1u << 9u) , GRID_CAMERA = (1u << 10u) , PLANE_IMAGE = (1u << 11u) ,
  CUSTOM_GRID = (1u << 12u)
}
 

Functions

 BLI_STATIC_ASSERT (CURVE_HANDLE_SELECTED==0, "Ensure value is sync")
 
 BLI_STATIC_ASSERT (CURVE_HANDLE_ALL==1, "Ensure value is sync")
 
 BLI_STATIC_ASSERT (MOTIONPATH_VERT_SEL==(1<< 0), "Ensure value is sync")
 
 BLI_STATIC_ASSERT (MOTIONPATH_VERT_KEY==(1<< 1), "Ensure value is sync")
 

Macro Definition Documentation

◆ BG_CHECKER

#define BG_CHECKER   2

Definition at line 21 of file overlay_shader_shared.h.

◆ BG_GRADIENT

#define BG_GRADIENT   1

Definition at line 20 of file overlay_shader_shared.h.

◆ BG_MASK

#define BG_MASK   5

Definition at line 24 of file overlay_shader_shared.h.

◆ BG_RADIAL

#define BG_RADIAL   3

Definition at line 22 of file overlay_shader_shared.h.

◆ BG_SOLID

#define BG_SOLID   0

Definition at line 19 of file overlay_shader_shared.h.

◆ BG_SOLID_CHECKER

#define BG_SOLID_CHECKER   4

Definition at line 23 of file overlay_shader_shared.h.

◆ OVERLAY_GRID_STEPS_LEN

#define OVERLAY_GRID_STEPS_LEN   8

Definition at line 43 of file overlay_shader_shared.h.

Typedef Documentation

◆ OVERLAY_GridBits

Definition at line 1 of file overlay_shader_shared.h.

◆ OVERLAY_GridData

Definition at line 1 of file overlay_shader_shared.h.

Enumeration Type Documentation

◆ OVERLAY_GridBits

Enumerator
SHOW_AXIS_X 
SHOW_AXIS_Y 
SHOW_AXIS_Z 
SHOW_GRID 
PLANE_XY 
PLANE_XZ 
PLANE_YZ 
CLIP_ZPOS 
CLIP_ZNEG 
GRID_BACK 
GRID_CAMERA 
PLANE_IMAGE 
CUSTOM_GRID 

Definition at line 26 of file overlay_shader_shared.h.

Function Documentation

◆ BLI_STATIC_ASSERT() [1/4]

BLI_STATIC_ASSERT ( CURVE_HANDLE_ALL  = =1,
"Ensure value is sync"   
)

◆ BLI_STATIC_ASSERT() [2/4]

BLI_STATIC_ASSERT ( CURVE_HANDLE_SELECTED  = =0,
"Ensure value is sync"   
)

◆ BLI_STATIC_ASSERT() [3/4]

BLI_STATIC_ASSERT ( MOTIONPATH_VERT_KEY  = =(1<< 1),
"Ensure value is sync"   
)

◆ BLI_STATIC_ASSERT() [4/4]

BLI_STATIC_ASSERT ( MOTIONPATH_VERT_SEL  = =(1<< 0),
"Ensure value is sync"   
)