Blender V2.61 - r43446
Classes | Typedefs | Functions | Variables

pointdensity.c File Reference

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_kdopbvh.h"
#include "BLI_utildefines.h"
#include "BKE_DerivedMesh.h"
#include "BKE_global.h"
#include "BKE_lattice.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_particle.h"
#include "BKE_scene.h"
#include "BKE_texture.h"
#include "BKE_colortools.h"
#include "DNA_meshdata_types.h"
#include "DNA_texture_types.h"
#include "DNA_particle_types.h"
#include "render_types.h"
#include "renderdatabase.h"
#include "texture.h"
#include "pointdensity.h"

Go to the source code of this file.

Classes

struct  PointDensityRangeData

Typedefs

typedef struct
PointDensityRangeData 
PointDensityRangeData

Functions

static int point_data_used (PointDensity *pd)
static void alloc_point_data (PointDensity *pd, int total_particles, int point_data_used)
static void pointdensity_cache_psys (Render *re, PointDensity *pd, Object *ob, ParticleSystem *psys)
static void pointdensity_cache_object (Render *re, PointDensity *pd, Object *ob)
void cache_pointdensity (Render *re, Tex *tex)
static void free_pointdensity (Render *UNUSED(re), Tex *tex)
void make_pointdensities (Render *re)
void free_pointdensities (Render *re)
static void accum_density (void *userdata, int index, float squared_dist)
static void init_pointdensityrangedata (PointDensity *pd, PointDensityRangeData *pdr, float *density, float *vec, float *age, struct CurveMapping *density_curve, float velscale)
int pointdensitytex (Tex *tex, float *texvec, TexResult *texres)

Variables

struct Render R

Detailed Description

Definition in file pointdensity.c.


Typedef Documentation


Function Documentation

static void accum_density ( void *  userdata,
int  index,
float  squared_dist 
) [static]
static void alloc_point_data ( PointDensity pd,
int  total_particles,
int  point_data_used 
) [static]
void cache_pointdensity ( Render re,
Tex tex 
)
void free_pointdensities ( Render re)
static void free_pointdensity ( Render UNUSEDre,
Tex tex 
) [static]
static void init_pointdensityrangedata ( PointDensity pd,
PointDensityRangeData pdr,
float *  density,
float *  vec,
float *  age,
struct CurveMapping density_curve,
float  velscale 
) [static]
void make_pointdensities ( Render re)
static int point_data_used ( PointDensity pd) [static]
static void pointdensity_cache_object ( Render re,
PointDensity pd,
Object ob 
) [static]
static void pointdensity_cache_psys ( Render re,
PointDensity pd,
Object ob,
ParticleSystem psys 
) [static]
int pointdensitytex ( Tex tex,
float *  texvec,
TexResult texres 
)

Variable Documentation

struct Render R

Definition at line 127 of file pipeline.c.