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

renderdatabase.h File Reference

Go to the source code of this file.

Classes

struct  VertTableNode
struct  VlakTableNode
struct  StrandTableNode

Defines

#define RE_QUAD_MASK   0x7FFFFFF
#define RE_QUAD_OFFS   0x8000000
#define HA_ONLYSKY   1
#define HA_VECT   2
#define HA_XALPHA   4
#define HA_FLARECIRC   8

Typedefs

typedef struct VertTableNode VertTableNode
typedef struct VlakTableNode VlakTableNode
typedef struct StrandTableNode StrandTableNode

Functions

void free_renderdata_tables (struct Render *re)
void free_renderdata_vertnodes (struct VertTableNode *vertnodes)
void free_renderdata_vlaknodes (struct VlakTableNode *vlaknodes)
void set_normalflags (struct Render *re, struct ObjectRen *obr)
void project_renderdata (struct Render *re, void(*projectfunc)(const float *, float mat[][4], float *), int do_pano, float xoffs, int do_buckets)
int clip_render_object (float boundbox[][3], float *bounds, float mat[][4])
struct VlakRenRE_findOrAddVlak (struct ObjectRen *obr, int nr)
struct VertRenRE_findOrAddVert (struct ObjectRen *obr, int nr)
struct StrandRenRE_findOrAddStrand (struct ObjectRen *obr, int nr)
struct HaloRenRE_findOrAddHalo (struct ObjectRen *obr, int nr)
struct HaloRenRE_inithalo (struct Render *re, struct ObjectRen *obr, struct Material *ma, float *vec, float *vec1, float *orco, float hasize, float vectsize, int seed)
struct HaloRenRE_inithalo_particle (struct Render *re, struct ObjectRen *obr, struct DerivedMesh *dm, struct Material *ma, float *vec, float *vec1, float *orco, float *uvco, float hasize, float vectsize, int seed, float *pa_co)
struct StrandBufferRE_addStrandBuffer (struct ObjectRen *obr, int totvert)
struct ObjectRenRE_addRenderObject (struct Render *re, struct Object *ob, struct Object *par, int index, int psysindex, int lay)
struct ObjectInstanceRenRE_addRenderInstance (struct Render *re, struct ObjectRen *obr, struct Object *ob, struct Object *par, int index, int psysindex, float mat[][4], int lay)
void RE_makeRenderInstances (struct Render *re)
void RE_instanceTransformNormal (struct ObjectInstanceRen *obi, float *nor, float *tnor)
float * RE_vertren_get_sticky (struct ObjectRen *obr, struct VertRen *ver, int verify)
float * RE_vertren_get_stress (struct ObjectRen *obr, struct VertRen *ver, int verify)
float * RE_vertren_get_rad (struct ObjectRen *obr, struct VertRen *ver, int verify)
float * RE_vertren_get_strand (struct ObjectRen *obr, struct VertRen *ver, int verify)
float * RE_vertren_get_tangent (struct ObjectRen *obr, struct VertRen *ver, int verify)
float * RE_vertren_get_winspeed (struct ObjectInstanceRen *obi, struct VertRen *ver, int verify)
struct MTFaceRE_vlakren_get_tface (struct ObjectRen *obr, VlakRen *ren, int n, char **name, int verify)
struct MColRE_vlakren_get_mcol (struct ObjectRen *obr, VlakRen *ren, int n, char **name, int verify)
float * RE_vlakren_get_surfnor (struct ObjectRen *obr, VlakRen *ren, int verify)
float * RE_vlakren_get_nmap_tangent (struct ObjectRen *obr, VlakRen *ren, int verify)
RadFace ** RE_vlakren_get_radface (struct ObjectRen *obr, VlakRen *ren, int verify)
void RE_vlakren_get_normal (struct Render *re, struct ObjectInstanceRen *obi, struct VlakRen *vlr, float *nor)
float * RE_strandren_get_surfnor (struct ObjectRen *obr, struct StrandRen *strand, int verify)
float * RE_strandren_get_uv (struct ObjectRen *obr, struct StrandRen *strand, int n, char **name, int verify)
struct MColRE_strandren_get_mcol (struct ObjectRen *obr, struct StrandRen *strand, int n, char **name, int verify)
float * RE_strandren_get_simplify (struct ObjectRen *obr, struct StrandRen *strand, int verify)
int * RE_strandren_get_face (struct ObjectRen *obr, struct StrandRen *strand, int verify)
float * RE_strandren_get_winspeed (struct ObjectInstanceRen *obi, struct StrandRen *strand, int verify)
struct VertRenRE_vertren_copy (struct ObjectRen *obr, struct VertRen *ver)
struct VlakRenRE_vlakren_copy (struct ObjectRen *obr, struct VlakRen *vlr)
void RE_set_customdata_names (struct ObjectRen *obr, struct CustomData *data)
void init_render_world (Render *re)
void RE_Database_FromScene_Vectors (Render *re, struct Main *bmain, struct Scene *sce, unsigned int lay)

Detailed Description

Definition in file renderdatabase.h.


Define Documentation

#define HA_FLARECIRC   8

Definition at line 140 of file renderdatabase.h.

Referenced by renderflare(), and shadeHaloFloat().

#define HA_ONLYSKY   1

Definition at line 137 of file renderdatabase.h.

Referenced by calchalo_z(), project_renderdata(), RE_make_stars(), and shadeHaloFloat().

#define HA_VECT   2

Definition at line 138 of file renderdatabase.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and shadeHaloFloat().

#define HA_XALPHA   4

Definition at line 139 of file renderdatabase.h.

Referenced by RE_inithalo(), RE_inithalo_particle(), and shadeHaloFloat().

#define RE_QUAD_MASK   0x7FFFFFF
#define RE_QUAD_OFFS   0x8000000

Typedef Documentation

typedef struct VertTableNode VertTableNode
typedef struct VlakTableNode VlakTableNode

Function Documentation

int clip_render_object ( float  boundbox[][3],
float *  bounds,
float  mat[][4] 
)
void free_renderdata_tables ( struct Render re)
void free_renderdata_vertnodes ( struct VertTableNode vertnodes)

Definition at line 732 of file renderdatabase.c.

References MEM_freeN(), NULL, and VertTableNode::vert.

Referenced by free_renderdata_tables().

void free_renderdata_vlaknodes ( struct VlakTableNode vlaknodes)

Definition at line 758 of file renderdatabase.c.

References MEM_freeN(), NULL, and VlakTableNode::vlak.

Referenced by free_renderdata_tables().

void init_render_world ( Render re)
void project_renderdata ( struct Render re,
void(*)(const float *, float mat[][4], float *)  projectfunc,
int  do_pano,
float  xoffs,
int  do_buckets 
)
struct ObjectInstanceRen* RE_addRenderInstance ( struct Render re,
struct ObjectRen obr,
struct Object ob,
struct Object par,
int  index,
int  psysindex,
float  mat[][4],
int  lay 
) [read]
struct ObjectRen* RE_addRenderObject ( struct Render re,
struct Object ob,
struct Object par,
int  index,
int  psysindex,
int  lay 
) [read]
struct StrandBuffer* RE_addStrandBuffer ( struct ObjectRen obr,
int  totvert 
) [read]
void RE_Database_FromScene_Vectors ( Render re,
struct Main bmain,
struct Scene sce,
unsigned int  lay 
)
struct HaloRen* RE_findOrAddHalo ( struct ObjectRen obr,
int  nr 
) [read]
struct StrandRen* RE_findOrAddStrand ( struct ObjectRen obr,
int  nr 
) [read]
struct VertRen* RE_findOrAddVert ( struct ObjectRen obr,
int  nr 
) [read]
struct VlakRen* RE_findOrAddVlak ( struct ObjectRen obr,
int  nr 
) [read]
struct HaloRen* RE_inithalo ( struct Render re,
struct ObjectRen obr,
struct Material ma,
float *  vec,
float *  vec1,
float *  orco,
float  hasize,
float  vectsize,
int  seed 
) [read]
struct HaloRen* RE_inithalo_particle ( struct Render re,
struct ObjectRen obr,
struct DerivedMesh dm,
struct Material ma,
float *  vec,
float *  vec1,
float *  orco,
float *  uvco,
float  hasize,
float  vectsize,
int  seed,
float *  pa_co 
) [read]
void RE_instanceTransformNormal ( struct ObjectInstanceRen obi,
float *  nor,
float *  tnor 
)
void RE_makeRenderInstances ( struct Render re)
void RE_set_customdata_names ( struct ObjectRen obr,
struct CustomData data 
)
int* RE_strandren_get_face ( struct ObjectRen obr,
struct StrandRen strand,
int  verify 
)
struct MCol* RE_strandren_get_mcol ( struct ObjectRen obr,
struct StrandRen strand,
int  n,
char **  name,
int  verify 
) [read]
float* RE_strandren_get_simplify ( struct ObjectRen obr,
struct StrandRen strand,
int  verify 
)
float* RE_strandren_get_surfnor ( struct ObjectRen obr,
struct StrandRen strand,
int  verify 
)
float* RE_strandren_get_uv ( struct ObjectRen obr,
struct StrandRen strand,
int  n,
char **  name,
int  verify 
)
float* RE_strandren_get_winspeed ( struct ObjectInstanceRen obi,
struct StrandRen strand,
int  verify 
)
struct VertRen* RE_vertren_copy ( struct ObjectRen obr,
struct VertRen ver 
) [read]
float* RE_vertren_get_rad ( struct ObjectRen obr,
struct VertRen ver,
int  verify 
)
float* RE_vertren_get_sticky ( struct ObjectRen obr,
struct VertRen ver,
int  verify 
)
float* RE_vertren_get_strand ( struct ObjectRen obr,
struct VertRen ver,
int  verify 
)
float* RE_vertren_get_stress ( struct ObjectRen obr,
struct VertRen ver,
int  verify 
)
float* RE_vertren_get_tangent ( struct ObjectRen obr,
struct VertRen ver,
int  verify 
)
float* RE_vertren_get_winspeed ( struct ObjectInstanceRen obi,
struct VertRen ver,
int  verify 
)
struct VlakRen* RE_vlakren_copy ( struct ObjectRen obr,
struct VlakRen vlr 
) [read]
struct MCol* RE_vlakren_get_mcol ( struct ObjectRen obr,
VlakRen ren,
int  n,
char **  name,
int  verify 
) [read]
float* RE_vlakren_get_nmap_tangent ( struct ObjectRen obr,
VlakRen ren,
int  verify 
)
void RE_vlakren_get_normal ( struct Render re,
struct ObjectInstanceRen obi,
struct VlakRen vlr,
float *  nor 
)
RadFace** RE_vlakren_get_radface ( struct ObjectRen obr,
VlakRen ren,
int  verify 
)
float* RE_vlakren_get_surfnor ( struct ObjectRen obr,
VlakRen ren,
int  verify 
)
struct MTFace* RE_vlakren_get_tface ( struct ObjectRen obr,
VlakRen ren,
int  n,
char **  name,
int  verify 
) [read]
void set_normalflags ( struct Render re,
struct ObjectRen obr 
)