Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/extern/include/RE_bake.h
| Show All 33 Lines | |||||
| struct Render; | struct Render; | ||||
| struct Mesh; | struct Mesh; | ||||
| typedef struct BakeImage { | typedef struct BakeImage { | ||||
| struct Image *image; | struct Image *image; | ||||
| int width; | int width; | ||||
| int height; | int height; | ||||
| int offset; | size_t offset; | ||||
| } BakeImage; | } BakeImage; | ||||
| typedef struct BakeImages { | typedef struct BakeImages { | ||||
| BakeImage *data; /* all the images of an object */ | BakeImage *data; /* all the images of an object */ | ||||
| int *lookup; /* lookup table from Material to BakeImage */ | int *lookup; /* lookup table from Material to BakeImage */ | ||||
| int size; | int size; | ||||
| } BakeImages; | } BakeImages; | ||||
| Show All 16 Lines | typedef struct BakeHighPolyData { | ||||
| float rotmat[4][4]; | float rotmat[4][4]; | ||||
| } BakeHighPolyData; | } BakeHighPolyData; | ||||
| /* external_engine.c */ | /* external_engine.c */ | ||||
| bool RE_bake_has_engine(struct Render *re); | bool RE_bake_has_engine(struct Render *re); | ||||
| bool RE_bake_engine( | bool RE_bake_engine( | ||||
| struct Render *re, struct Object *object, const BakePixel pixel_array[], | struct Render *re, struct Object *object, const BakePixel pixel_array[], | ||||
| const int num_pixels, const int depth, const ScenePassType pass_type, float result[]); | const size_t width, const size_t height, const int depth, const ScenePassType pass_type, float result[]); | ||||
| /* bake.c */ | /* bake.c */ | ||||
| int RE_pass_depth(const ScenePassType pass_type); | int RE_pass_depth(const ScenePassType pass_type); | ||||
| bool RE_bake_internal( | bool RE_bake_internal( | ||||
| struct Render *re, struct Object *object, const BakePixel pixel_array[], | struct Render *re, struct Object *object, const BakePixel pixel_array[], | ||||
| const int num_pixels, const int depth, const ScenePassType pass_type, float result[]); | const size_t width, const size_t height, const int depth, const ScenePassType pass_type, float result[]); | ||||
| bool RE_bake_pixels_populate_from_objects( | bool RE_bake_pixels_populate_from_objects( | ||||
| struct Mesh *me_low, BakePixel pixel_array_from[], | struct Mesh *me_low, BakePixel pixel_array_from[], | ||||
| BakeHighPolyData highpoly[], const int tot_highpoly, const int num_pixels, const bool is_custom_cage, | BakeHighPolyData highpoly[], const int tot_highpoly, const size_t num_pixels, const bool is_custom_cage, | ||||
| const float cage_extrusion, float mat_low[4][4], float mat_cage[4][4], struct Mesh *me_cage); | const float cage_extrusion, float mat_low[4][4], float mat_cage[4][4], struct Mesh *me_cage); | ||||
| void RE_bake_pixels_populate( | void RE_bake_pixels_populate( | ||||
| struct Mesh *me, struct BakePixel *pixel_array, | struct Mesh *me, struct BakePixel *pixel_array, | ||||
| const int num_pixels, const struct BakeImages *bake_images, const char *uv_layer); | const size_t num_pixels, const struct BakeImages *bake_images, const char *uv_layer); | ||||
| void RE_bake_mask_fill(const BakePixel pixel_array[], const int num_pixels, char *mask); | void RE_bake_mask_fill(const BakePixel pixel_array[], const size_t num_pixels, char *mask); | ||||
| void RE_bake_margin(struct ImBuf *ibuf, char *mask, const int margin); | void RE_bake_margin(struct ImBuf *ibuf, char *mask, const int margin); | ||||
| void RE_bake_normal_world_to_object( | void RE_bake_normal_world_to_object( | ||||
| const BakePixel pixel_array[], const int num_pixels, const int depth, float result[], | const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], | ||||
| struct Object *ob, const BakeNormalSwizzle normal_swizzle[3]); | struct Object *ob, const BakeNormalSwizzle normal_swizzle[3]); | ||||
| void RE_bake_normal_world_to_tangent( | void RE_bake_normal_world_to_tangent( | ||||
| const BakePixel pixel_array[], const int num_pixels, const int depth, float result[], | const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], | ||||
| struct Mesh *me, const BakeNormalSwizzle normal_swizzle[3], float mat[4][4]); | struct Mesh *me, const BakeNormalSwizzle normal_swizzle[3], float mat[4][4]); | ||||
| void RE_bake_normal_world_to_world( | void RE_bake_normal_world_to_world( | ||||
| const BakePixel pixel_array[], const int num_pixels, const int depth, float result[], | const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], | ||||
| const BakeNormalSwizzle normal_swizzle[3]); | const BakeNormalSwizzle normal_swizzle[3]); | ||||
| void RE_bake_ibuf_clear(struct Image *image, const bool is_tangent); | void RE_bake_ibuf_clear(struct Image *image, const bool is_tangent); | ||||
| #endif /* __RE_BAKE_H__ */ | #endif /* __RE_BAKE_H__ */ | ||||