Blender V2.61 - r43446
Functions

envmap.c File Reference

#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "DNA_group_types.h"
#include "DNA_image_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_image.h"
#include "BKE_texture.h"
#include "render_types.h"
#include "renderpipeline.h"
#include "envmap.h"
#include "rendercore.h"
#include "renderdatabase.h"
#include "texture.h"
#include "zbuf.h"
#include "initrender.h"

Go to the source code of this file.

Functions

static void envmap_split_ima (EnvMap *env, ImBuf *ibuf)
static Renderenvmap_render_copy (Render *re, EnvMap *env)
static void envmap_free_render_copy (Render *envre)
static void envmap_transmatrix (float mat[][4], int part)
static void env_rotate_scene (Render *re, float mat[][4], int mode)
static void env_layerflags (Render *re, unsigned int notlay)
static void env_hideobject (Render *re, Object *ob)
static void env_showobjects (Render *re)
static void env_set_imats (Render *re)
static void render_envmap (Render *re, EnvMap *env)
void make_envmaps (Render *re)
static int envcube_isect (EnvMap *env, float *vec, float *answ)
static void set_dxtdyt (float *dxts, float *dyts, float *dxt, float *dyt, int face)
int envmaptex (Tex *tex, float *texvec, float *dxt, float *dyt, int osatex, TexResult *texres)

Detailed Description

Definition in file envmap.c.


Function Documentation

static void env_hideobject ( Render re,
Object ob 
) [static]
static void env_layerflags ( Render re,
unsigned int  notlay 
) [static]
static void env_rotate_scene ( Render re,
float  mat[][4],
int  mode 
) [static]
static void env_set_imats ( Render re) [static]
static void env_showobjects ( Render re) [static]
static int envcube_isect ( EnvMap env,
float *  vec,
float *  answ 
) [static]

Definition at line 584 of file envmap.c.

References ENV_PLANE, fabsf, EnvMap::type, and EnvMap::viewscale.

Referenced by envmaptex().

static void envmap_free_render_copy ( Render envre) [static]
static Render* envmap_render_copy ( Render re,
EnvMap env 
) [static]
static void envmap_split_ima ( EnvMap env,
ImBuf ibuf 
) [static]
static void envmap_transmatrix ( float  mat[][4],
int  part 
) [static]

Definition at line 211 of file envmap.c.

References copy_m4_m4(), eul_to_mat4(), M_PI, mul_serie_m4(), and NULL.

Referenced by render_envmap().

int envmaptex ( Tex tex,
float *  texvec,
float *  dxt,
float *  dyt,
int  osatex,
TexResult texres 
)
void make_envmaps ( Render re)
static void render_envmap ( Render re,
EnvMap env 
) [static]
static void set_dxtdyt ( float *  dxts,
float *  dyts,
float *  dxt,
float *  dyt,
int  face 
) [static]

Definition at line 643 of file envmap.c.

Referenced by envmaptex().