Blender V2.61 - r43446
Functions | Variables

render_shading.c File Reference

#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_curve_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "DNA_world_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_depsgraph.h"
#include "BKE_font.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_image.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_node.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_texture.h"
#include "BKE_world.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "GPU_material.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_object.h"
#include "ED_curve.h"
#include "ED_mesh.h"
#include "ED_node.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "RNA_define.h"
#include "UI_interface.h"
#include "RE_pipeline.h"
#include "render_intern.h"

Go to the source code of this file.

Functions

static int material_slot_add_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_add (wmOperatorType *ot)
static int material_slot_remove_exec (bContext *C, wmOperator *op)
void OBJECT_OT_material_slot_remove (wmOperatorType *ot)
static int material_slot_assign_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_assign (wmOperatorType *ot)
static int material_slot_de_select (bContext *C, int select)
static int material_slot_select_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_select (wmOperatorType *ot)
static int material_slot_deselect_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_deselect (wmOperatorType *ot)
static int material_slot_copy_exec (bContext *C, wmOperator *UNUSED(op))
void OBJECT_OT_material_slot_copy (wmOperatorType *ot)
static int new_material_exec (bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_new (wmOperatorType *ot)
static int new_texture_exec (bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_new (wmOperatorType *ot)
static int new_world_exec (bContext *C, wmOperator *UNUSED(op))
void WORLD_OT_new (wmOperatorType *ot)
static int render_layer_add_exec (bContext *C, wmOperator *UNUSED(op))
void SCENE_OT_render_layer_add (wmOperatorType *ot)
static int render_layer_remove_exec (bContext *C, wmOperator *UNUSED(op))
void SCENE_OT_render_layer_remove (wmOperatorType *ot)
static int texture_slot_move (bContext *C, wmOperator *op)
void TEXTURE_OT_slot_move (wmOperatorType *ot)
static int save_envmap (wmOperator *op, Scene *scene, EnvMap *env, char *path, const char imtype)
static int envmap_save_exec (bContext *C, wmOperator *op)
static int envmap_save_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
static int envmap_save_poll (bContext *C)
void TEXTURE_OT_envmap_save (wmOperatorType *ot)
static int envmap_clear_exec (bContext *C, wmOperator *UNUSED(op))
static int envmap_clear_poll (bContext *C)
void TEXTURE_OT_envmap_clear (wmOperatorType *ot)
static int envmap_clear_all_exec (bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_envmap_clear_all (wmOperatorType *ot)
static int copy_material_exec (bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_copy (wmOperatorType *ot)
static int paste_material_exec (bContext *C, wmOperator *UNUSED(op))
void MATERIAL_OT_paste (wmOperatorType *ot)
void ED_render_clear_mtex_copybuf (void)
static void copy_mtex_copybuf (ID *id)
static void paste_mtex_copybuf (ID *id)
static int copy_mtex_exec (bContext *C, wmOperator *UNUSED(op))
static int copy_mtex_poll (bContext *C)
void TEXTURE_OT_slot_copy (wmOperatorType *ot)
static int paste_mtex_exec (bContext *C, wmOperator *UNUSED(op))
void TEXTURE_OT_slot_paste (wmOperatorType *ot)

Variables

static short mtexcopied = 0
static MTex mtexcopybuf

Detailed Description

Definition in file render_shading.c.


Function Documentation

static int copy_material_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void copy_mtex_copybuf ( ID id) [static]

Definition at line 890 of file render_shading.c.

References GS, ID_LA, ID_MA, ID_PA, ID_WO, ID::name, and NULL.

Referenced by copy_mtex_exec().

static int copy_mtex_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int copy_mtex_poll ( bContext C) [static]
void ED_render_clear_mtex_copybuf ( void  )

Definition at line 885 of file render_shading.c.

Referenced by copy_mtex_exec(), and WM_init().

static int envmap_clear_all_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int envmap_clear_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int envmap_clear_poll ( bContext C) [static]
static int envmap_save_exec ( bContext C,
wmOperator op 
) [static]
static int envmap_save_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int envmap_save_poll ( bContext C) [static]
void MATERIAL_OT_copy ( wmOperatorType ot)
void MATERIAL_OT_new ( wmOperatorType ot)
void MATERIAL_OT_paste ( wmOperatorType ot)
static int material_slot_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int material_slot_assign_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int material_slot_copy_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int material_slot_de_select ( bContext C,
int  select 
) [static]
static int material_slot_deselect_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 304 of file render_shading.c.

References material_slot_de_select().

Referenced by OBJECT_OT_material_slot_deselect().

static int material_slot_remove_exec ( bContext C,
wmOperator op 
) [static]
static int material_slot_select_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 285 of file render_shading.c.

References material_slot_de_select().

Referenced by OBJECT_OT_material_slot_select().

static int new_material_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int new_texture_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int new_world_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
void OBJECT_OT_material_slot_add ( wmOperatorType ot)
void OBJECT_OT_material_slot_assign ( wmOperatorType ot)
void OBJECT_OT_material_slot_copy ( wmOperatorType ot)
void OBJECT_OT_material_slot_deselect ( wmOperatorType ot)
void OBJECT_OT_material_slot_remove ( wmOperatorType ot)
void OBJECT_OT_material_slot_select ( wmOperatorType ot)
static int paste_material_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void paste_mtex_copybuf ( ID id) [static]

Definition at line 920 of file render_shading.c.

References BLI_assert, GS, ID_LA, ID_MA, ID_PA, id_us_plus(), ID_WO, MEM_mallocN(), ID::name, NULL, and MTex::tex.

Referenced by paste_mtex_exec().

static int paste_mtex_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int render_layer_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int render_layer_remove_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int save_envmap ( wmOperator op,
Scene scene,
EnvMap env,
char *  path,
const char  imtype 
) [static]
void SCENE_OT_render_layer_add ( wmOperatorType ot)
void SCENE_OT_render_layer_remove ( wmOperatorType ot)
void TEXTURE_OT_envmap_clear ( wmOperatorType ot)
void TEXTURE_OT_envmap_clear_all ( wmOperatorType ot)
void TEXTURE_OT_envmap_save ( wmOperatorType ot)
void TEXTURE_OT_new ( wmOperatorType ot)
void TEXTURE_OT_slot_copy ( wmOperatorType ot)
void TEXTURE_OT_slot_move ( wmOperatorType ot)
void TEXTURE_OT_slot_paste ( wmOperatorType ot)
static int texture_slot_move ( bContext C,
wmOperator op 
) [static]
void WORLD_OT_new ( wmOperatorType ot)

Variable Documentation

short mtexcopied = 0 [static]

Definition at line 882 of file render_shading.c.

MTex mtexcopybuf [static]

Definition at line 883 of file render_shading.c.