Blender V2.61 - r43446
Classes | Typedefs | Functions

zbuf.h File Reference

Go to the source code of this file.

Classes

struct  APixstr
struct  APixstrand
struct  APixstrMain
struct  ZSpan

Typedefs

typedef struct APixstr APixstr
typedef struct APixstrand APixstrand
typedef struct APixstrMain APixstrMain
typedef struct ZSpan ZSpan

Functions

void fillrect (int *rect, int x, int y, int val)
void projectvert (const float v1[3], float winmat[][4], float adr[4])
void projectverto (const float v1[3], float winmat[][4], float adr[4])
int testclip (const float v[3])
void zbuffer_shadow (struct Render *re, float winmat[][4], struct LampRen *lar, int *rectz, int size, float jitx, float jity)
void zbuffer_abuf_shadow (struct Render *re, struct LampRen *lar, float winmat[][4], struct APixstr *APixbuf, struct APixstrand *apixbuf, struct ListBase *apsmbase, int size, int samples, float(*jit)[2])
void zbuffer_solid (struct RenderPart *pa, struct RenderLayer *rl, void(*fillfunc)(struct RenderPart *, struct ZSpan *, int, void *), void *data)
unsigned short * zbuffer_transp_shade (struct RenderPart *pa, struct RenderLayer *rl, float *pass, struct ListBase *psmlist)
void zbuffer_sss (RenderPart *pa, unsigned int lay, void *handle, void(*func)(void *, int, int, int, int, int))
int zbuffer_strands_abuf (struct Render *re, struct RenderPart *pa, struct APixstrand *apixbuf, struct ListBase *apsmbase, unsigned int lay, int negzmask, float winmat[][4], int winx, int winy, int sample, float(*jit)[2], float clipcrop, int shadow, struct StrandShadeCache *cache)
void zbufclip4 (struct ZSpan *zspan, int obi, int zvlnr, float *f1, float *f2, float *f3, float *f4, int c1, int c2, int c3, int c4)
void zbuf_free_span (struct ZSpan *zspan)
void freepsA (struct ListBase *lb)
void zspan_scanconvert (struct ZSpan *zpan, void *handle, float *v1, float *v2, float *v3, void(*func)(void *, int, int, float, float))
void zbufclip (struct ZSpan *zspan, int obi, int zvlnr, float *f1, float *f2, float *f3, int c1, int c2, int c3)
void zbuf_alloc_span (struct ZSpan *zspan, int rectx, int recty, float clipcrop)
void zbufclipwire (struct ZSpan *zspan, int obi, int zvlnr, int ec, float *ho1, float *ho2, float *ho3, float *ho4, int c1, int c2, int c3, int c4)
void zbuf_make_winmat (Render *re, float winmat[][4])
void zbuf_render_project (float winmat[][4], const float co[3], float ho[4])

Detailed Description

Definition in file zbuf.h.


Typedef Documentation

typedef struct APixstr APixstr
typedef struct APixstrand APixstrand
typedef struct APixstrMain APixstrMain
typedef struct ZSpan ZSpan

Function Documentation

void fillrect ( int *  rect,
int  x,
int  y,
int  val 
)

Definition at line 201 of file zbuf.c.

References len(), and simple_enum_gen::val.

Referenced by copyto_abufz(), zbuffer_shadow(), zbuffer_solid(), and zbuffer_sss().

void freepsA ( struct ListBase lb)

Definition at line 278 of file zbuf.c.

References ListBase::first, MEM_freeN(), APixstrMain::next, and APixstrMain::ps.

Referenced by makedeepshadowbuf(), and zbuffer_transp_shade().

void projectvert ( const float  v1[3],
float  winmat[][4],
float  adr[4] 
)
void projectverto ( const float  v1[3],
float  winmat[][4],
float  adr[4] 
)
int testclip ( const float  v[3])
void zbuf_alloc_span ( struct ZSpan zspan,
int  rectx,
int  recty,
float  clipcrop 
)
void zbuf_free_span ( struct ZSpan zspan)
void zbuf_make_winmat ( Render re,
float  winmat[][4] 
)
void zbuf_render_project ( float  winmat[][4],
const float  co[3],
float  ho[4] 
)

Definition at line 1810 of file zbuf.c.

References copy_v3_v3(), and projectvert().

Referenced by shade_input_set_shade_texco().

void zbufclip ( struct ZSpan zspan,
int  obi,
int  zvlnr,
float *  f1,
float *  f2,
float *  f3,
int  c1,
int  c2,
int  c3 
)
void zbufclip4 ( struct ZSpan zspan,
int  obi,
int  zvlnr,
float *  f1,
float *  f2,
float *  f3,
float *  f4,
int  c1,
int  c2,
int  c3,
int  c4 
)
void zbufclipwire ( struct ZSpan zspan,
int  obi,
int  zvlnr,
int  ec,
float *  ho1,
float *  ho2,
float *  ho3,
float *  ho4,
int  c1,
int  c2,
int  c3,
int  c4 
)
void zbuffer_abuf_shadow ( struct Render re,
struct LampRen lar,
float  winmat[][4],
struct APixstr APixbuf,
struct APixstrand apixbuf,
struct ListBase apsmbase,
int  size,
int  samples,
float(*)  jit[2] 
)
void zbuffer_shadow ( struct Render re,
float  winmat[][4],
struct LampRen lar,
int *  rectz,
int  size,
float  jitx,
float  jity 
)

Definition at line 2281 of file zbuf.c.

References StrandBuffer::adaptcos, StrandBuffer::bound, StrandBound::boundbox, ObjectRen::boundbox, StrandSegment::buffer, StrandRen::buffer, LampRen::buftype, clip_render_object(), VertRen::co, StrandVert::co, copy_m4_m4(), VlakRen::ec, Render::excludeob, fillrect(), ListBase::first, ObjectInstanceRen::flag, VlakRen::flag, i, VertRen::index, Render::instancetable, LA_LAYER, LA_LAYER_SHADOW, LA_SHADBUF_HALFWAY, LampRen::lay, ObjectInstanceRen::lay, StrandBuffer::lay, StrandBuffer::ma, MA_SHADBUF, MA_TYPE_WIRE, ObjectInstanceRen::mat, VlakRen::mat, Material::material_type, MEM_freeN(), MEM_mallocN(), LampRen::mode, Material::mode, mult_m4_m4m4(), ObjectInstanceRen::next, NULL, ObjectRen::ob, StrandSegment::obi, ObjectInstanceRen::obr, R_HIDDEN, R_STRAND, R_TRANSFORMED, RE_findOrAddStrand(), ZSpan::rectz, ZSpan::rectz1, render_strand_segment(), StrandSegment::sqadaptcos, StrandBound::start, StrandSegment::strand, ObjectRen::strandbuf, Render::tbh, Render::test_break, StrandBuffer::totbound, StrandRen::totvert, ObjectRen::totvert, ObjectRen::totvlak, StrandSegment::v, VlakRen::v1, VlakRen::v2, VlakRen::v3, VlakRen::v4, StrandRen::vert, VlakTableNode::vlak, ObjectRen::vlaknodes, zbuf_alloc_span(), zbuf_free_span(), zbuf_project_cache_clear(), ZBUF_PROJECT_CACHE_SIZE, zbuf_shadow_project(), zbufclip(), zbufclip4(), zbufclipwire(), zbuffillGL_onlyZ(), ZSpan::zbuffunc, zbufline_onlyZ(), ZSpan::zbuflinefunc, ZSpan::zmulx, ZSpan::zmuly, ZSpan::zofsx, and ZSpan::zofsy.

Referenced by makeflatshadowbuf().

void zbuffer_solid ( struct RenderPart pa,
struct RenderLayer rl,
void(*)(struct RenderPart *, struct ZSpan *, int, void *)  fillfunc,
void *  data 
)

Referenced by zbufshade_tile(), and zbufshadeDA_tile().

void zbuffer_sss ( RenderPart pa,
unsigned int  lay,
void *  handle,
void(*)(void *, int, int, int, int, int)  func 
)
int zbuffer_strands_abuf ( struct Render re,
struct RenderPart pa,
struct APixstrand apixbuf,
struct ListBase apsmbase,
unsigned int  lay,
int  negzmask,
float  winmat[][4],
int  winx,
int  winy,
int  sample,
float(*)  jit[2],
float  clipcrop,
int  shadow,
struct StrandShadeCache cache 
)
unsigned short* zbuffer_transp_shade ( struct RenderPart pa,
struct RenderLayer rl,
float *  pass,
struct ListBase psmlist 
)

Referenced by zbufshade_tile(), and zbufshadeDA_tile().

void zspan_scanconvert ( struct ZSpan zpan,
void *  handle,
float *  v1,
float *  v2,
float *  v3,
void(*)(void *, int, int, float, float)  func 
)