Blender  V3.3
Classes | Macros | Typedefs | Enumerations | Functions
draw_curves_private.h File Reference
#include "BKE_attribute.h"
#include "GPU_shader.h"
#include "draw_attributes.h"

Go to the source code of this file.

Classes

struct  CurvesEvalFinalCache
 
struct  CurvesEvalCache
 

Macros

#define MAX_THICKRES   2 /* see eHairType */
 
#define MAX_HAIR_SUBDIV   4 /* see hair_subdiv rna */
 
#define CURVES_EVAL_SHADER_NUM   3
 

Typedefs

typedef enum CurvesEvalShader CurvesEvalShader
 
typedef struct CurvesEvalFinalCache CurvesEvalFinalCache
 
typedef struct CurvesEvalCache CurvesEvalCache
 

Enumerations

enum  CurvesEvalShader { CURVES_EVAL_CATMULL_ROM = 0 , CURVES_EVAL_BEZIER = 1 }
 

Functions

bool curves_ensure_procedural_data (struct Curves *curves, struct CurvesEvalCache **r_hair_cache, struct GPUMaterial *gpu_material, int subdiv, int thickness_res)
 
void drw_curves_get_attribute_sampler_name (const char *layer_name, char r_sampler_name[32])
 

Macro Definition Documentation

◆ CURVES_EVAL_SHADER_NUM

#define CURVES_EVAL_SHADER_NUM   3

Definition at line 32 of file draw_curves_private.h.

◆ MAX_HAIR_SUBDIV

#define MAX_HAIR_SUBDIV   4 /* see hair_subdiv rna */

Definition at line 26 of file draw_curves_private.h.

◆ MAX_THICKRES

#define MAX_THICKRES   2 /* see eHairType */

Definition at line 25 of file draw_curves_private.h.

Typedef Documentation

◆ CurvesEvalCache

◆ CurvesEvalFinalCache

◆ CurvesEvalShader

Enumeration Type Documentation

◆ CurvesEvalShader

Enumerator
CURVES_EVAL_CATMULL_ROM 
CURVES_EVAL_BEZIER 

Definition at line 28 of file draw_curves_private.h.

Function Documentation

◆ curves_ensure_procedural_data()

bool curves_ensure_procedural_data ( struct Curves curves,
struct CurvesEvalCache **  r_hair_cache,
struct GPUMaterial gpu_material,
int  subdiv,
int  thickness_res 
)

◆ drw_curves_get_attribute_sampler_name()

void drw_curves_get_attribute_sampler_name ( const char *  layer_name,
char  r_sampler_name[32] 
)