Blender V2.61 - r43446
Functions | Variables

rna_texture.c File Reference

#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "DNA_brush_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "DNA_texture_types.h"
#include "DNA_world_types.h"
#include "DNA_node_types.h"
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "BKE_node.h"

Go to the source code of this file.

Functions

static void rna_def_texmapping (BlenderRNA *brna)
static void rna_def_colormapping (BlenderRNA *brna)
static void rna_def_mtex (BlenderRNA *brna)
static void rna_def_filter_common (StructRNA *srna)
static void rna_def_environment_map (BlenderRNA *brna)
static void rna_def_texture_clouds (BlenderRNA *brna)
static void rna_def_texture_wood (BlenderRNA *brna)
static void rna_def_texture_marble (BlenderRNA *brna)
static void rna_def_texture_magic (BlenderRNA *brna)
static void rna_def_texture_blend (BlenderRNA *brna)
static void rna_def_texture_stucci (BlenderRNA *brna)
static void rna_def_texture_noise (BlenderRNA *brna)
static void rna_def_texture_image (BlenderRNA *brna)
static void rna_def_texture_plugin (BlenderRNA *brna)
static void rna_def_texture_environment_map (BlenderRNA *brna)
static void rna_def_texture_musgrave (BlenderRNA *brna)
static void rna_def_texture_voronoi (BlenderRNA *brna)
static void rna_def_texture_distorted_noise (BlenderRNA *brna)
static void rna_def_texture_pointdensity (BlenderRNA *brna)
static void rna_def_texture_voxeldata (BlenderRNA *brna)
static void rna_def_texture_ocean (BlenderRNA *brna)
static void rna_def_texture (BlenderRNA *brna)
void RNA_def_texture (BlenderRNA *brna)

Variables

EnumPropertyItem texture_filter_items []
EnumPropertyItem texture_type_items []
EnumPropertyItem blend_type_items []
static EnumPropertyItem prop_noise_basis_items []
static EnumPropertyItem prop_noise_type []

Detailed Description

Definition in file rna_texture.c.


Function Documentation

static void rna_def_colormapping ( BlenderRNA brna) [static]
static void rna_def_environment_map ( BlenderRNA brna) [static]
static void rna_def_filter_common ( StructRNA srna) [static]
static void rna_def_mtex ( BlenderRNA brna) [static]
static void rna_def_texmapping ( BlenderRNA brna) [static]
void RNA_def_texture ( BlenderRNA brna)
static void rna_def_texture ( BlenderRNA brna) [static]
static void rna_def_texture_blend ( BlenderRNA brna) [static]
static void rna_def_texture_clouds ( BlenderRNA brna) [static]
static void rna_def_texture_distorted_noise ( BlenderRNA brna) [static]
static void rna_def_texture_environment_map ( BlenderRNA brna) [static]
static void rna_def_texture_image ( BlenderRNA brna) [static]
static void rna_def_texture_magic ( BlenderRNA brna) [static]
static void rna_def_texture_marble ( BlenderRNA brna) [static]
static void rna_def_texture_musgrave ( BlenderRNA brna) [static]
static void rna_def_texture_noise ( BlenderRNA brna) [static]

Definition at line 1128 of file rna_texture.c.

References RNA_def_struct(), RNA_def_struct_sdna(), and RNA_def_struct_ui_text().

Referenced by rna_def_texture().

static void rna_def_texture_ocean ( BlenderRNA brna) [static]
static void rna_def_texture_plugin ( BlenderRNA brna) [static]

Definition at line 1295 of file rna_texture.c.

References RNA_def_struct(), RNA_def_struct_sdna(), and RNA_def_struct_ui_text().

Referenced by rna_def_texture().

static void rna_def_texture_pointdensity ( BlenderRNA brna) [static]
static void rna_def_texture_stucci ( BlenderRNA brna) [static]
static void rna_def_texture_voronoi ( BlenderRNA brna) [static]
static void rna_def_texture_voxeldata ( BlenderRNA brna) [static]
static void rna_def_texture_wood ( BlenderRNA brna) [static]

Variable Documentation

Initial value:
 {
    {MTEX_BLEND, "MIX", 0, "Mix", ""},
    {MTEX_ADD, "ADD", 0, "Add", ""},
    {MTEX_SUB, "SUBTRACT", 0, "Subtract", ""},
    {MTEX_MUL, "MULTIPLY", 0, "Multiply", ""},
    {MTEX_SCREEN, "SCREEN", 0, "Screen", ""},
    {MTEX_OVERLAY, "OVERLAY", 0, "Overlay", ""},
    {MTEX_DIFF, "DIFFERENCE", 0, "Difference", ""},
    {MTEX_DIV, "DIVIDE", 0, "Divide", ""},
    {MTEX_DARK, "DARKEN", 0, "Darken", ""},
    {MTEX_LIGHT, "LIGHTEN", 0, "Lighten", ""},
    {MTEX_BLEND_HUE, "HUE", 0, "Hue", ""},
    {MTEX_BLEND_SAT, "SATURATION", 0, "Saturation", ""},
    {MTEX_BLEND_VAL, "VALUE", 0, "Value", ""},
    {MTEX_BLEND_COLOR, "COLOR", 0, "Color", ""},
    {MTEX_SOFT_LIGHT, "SOFT_LIGHT", 0, "Soft Light", ""}, 
    {MTEX_LIN_LIGHT    , "LINEAR_LIGHT", 0, "Linear Light", ""}, 
    {0, NULL, 0, NULL, NULL}}

Definition at line 79 of file rna_texture.c.

Initial value:
 {
    {TEX_BLENDER, "BLENDER_ORIGINAL", 0, "Blender Original",
                  "Noise algorithm - Blender original: Smooth interpolated noise"},
    {TEX_STDPERLIN, "ORIGINAL_PERLIN", 0, "Original Perlin",
                    "Noise algorithm - Original Perlin: Smooth interpolated noise"},
    {TEX_NEWPERLIN, "IMPROVED_PERLIN", 0, "Improved Perlin",
                    "Noise algorithm - Improved Perlin: Smooth interpolated noise"},
    {TEX_VORONOI_F1, "VORONOI_F1", 0, "Voronoi F1",
                     "Noise algorithm - Voronoi F1: Returns distance to the closest feature point"},
    {TEX_VORONOI_F2, "VORONOI_F2", 0, "Voronoi F2",
                     "Noise algorithm - Voronoi F2: Returns distance to the 2nd closest feature point"},
    {TEX_VORONOI_F3, "VORONOI_F3", 0, "Voronoi F3",
                     "Noise algorithm - Voronoi F3: Returns distance to the 3rd closest feature point"},
    {TEX_VORONOI_F4, "VORONOI_F4", 0, "Voronoi F4",
                     "Noise algorithm - Voronoi F4: Returns distance to the 4th closest feature point"},
    {TEX_VORONOI_F2F1, "VORONOI_F2_F1", 0, "Voronoi F2-F1", "Noise algorithm - Voronoi F1-F2"},
    {TEX_VORONOI_CRACKLE, "VORONOI_CRACKLE", 0, "Voronoi Crackle",
                          "Noise algorithm - Voronoi Crackle: Voronoi tessellation with sharp edges"},
    {TEX_CELLNOISE, "CELL_NOISE", 0, "Cell Noise",
                    "Noise algorithm - Cell Noise: Square cell tessellation"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 795 of file rna_texture.c.

Initial value:
 {
    {TEX_NOISESOFT, "SOFT_NOISE", 0, "Soft", "Generate soft noise (smooth transitions)"},
    {TEX_NOISEPERL, "HARD_NOISE", 0, "Hard", "Generate hard noise (sharp transitions)"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 817 of file rna_texture.c.

Initial value:
 {
    {TXF_BOX, "BOX", 0, "Box", ""},
    {TXF_EWA, "EWA", 0, "EWA", ""},
    {TXF_FELINE, "FELINE", 0, "FELINE", ""},
    {TXF_AREA, "AREA", 0, "Area", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 49 of file rna_texture.c.

Initial value:
 {
    {0, "NONE", 0, "None", ""},
    {TEX_BLEND, "BLEND", ICON_TEXTURE, "Blend", "Procedural - create a ramp texture"},
    {TEX_CLOUDS, "CLOUDS", ICON_TEXTURE, "Clouds", "Procedural - create a cloud-like fractal noise texture"},
    {TEX_DISTNOISE, "DISTORTED_NOISE", ICON_TEXTURE,
                    "Distorted Noise", "Procedural - noise texture distorted by two noise algorithms"},
    {TEX_ENVMAP, "ENVIRONMENT_MAP", ICON_IMAGE_DATA,
                 "Environment Map", "Create a render of the environment mapped to a texture"},
    {TEX_IMAGE, "IMAGE", ICON_IMAGE_DATA, "Image or Movie", "Allow for images or movies to be used as textures"},
    {TEX_MAGIC, "MAGIC", ICON_TEXTURE, "Magic", "Procedural - color texture based on trigonometric functions"},
    {TEX_MARBLE, "MARBLE", ICON_TEXTURE, "Marble", "Procedural - marble-like noise texture with wave generated bands"},
    {TEX_MUSGRAVE, "MUSGRAVE", ICON_TEXTURE, "Musgrave", "Procedural - highly flexible fractal noise texture"},
    {TEX_NOISE, "NOISE", ICON_TEXTURE, "Noise",
                "Procedural - random noise, gives a different result every time, for every frame, for every pixel"},
    
    {TEX_POINTDENSITY, "POINT_DENSITY", ICON_TEXTURE, "Point Density", ""},
    {TEX_STUCCI, "STUCCI", ICON_TEXTURE, "Stucci", "Procedural - create a fractal noise texture"},
    {TEX_VORONOI, "VORONOI", ICON_TEXTURE, "Voronoi", "Procedural - create cell-like patterns based on Worley noise"},
    {TEX_VOXELDATA, "VOXEL_DATA", ICON_TEXTURE, "Voxel Data", "Create a 3d texture based on volumetric data"},
    {TEX_WOOD, "WOOD", ICON_TEXTURE, "Wood", "Procedural - wave generated bands or rings, with optional noise"},
    {TEX_OCEAN, "OCEAN", ICON_TEXTURE, "Ocean", "Use a texture generated by an Ocean modifier"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 56 of file rna_texture.c.

Referenced by RNA_def_main_textures(), and rna_def_space_node().