Blender
V3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "MOD_lineart.h"
#include "BLI_math.h"
#include "lineart_intern.h"
Go to the source code of this file.
void lineart_count_and_print_render_buffer_memory | ( | LineartData * | ld | ) |
Definition at line 208 of file lineart_util.c.
References LineartData::geom, LineartData::_geom::line_buffer_pointers, LISTBASE_FOREACH, LRT_MEMORY_POOL_1MB, LineartStaticMemPool::pools, LineartData::render_data_pool, LineartData::sizeof_triangle, LineartData::_geom::triangle_buffer_pointers, and void.
Referenced by MOD_lineart_compute_feature_lines().
void* lineart_list_append_pointer_pool | ( | ListBase * | h, |
LineartStaticMemPool * | smp, | ||
void * | data | ||
) |
Definition at line 24 of file lineart_util.c.
References BLI_addtail(), data, LinkData::data, lineart_mem_acquire(), and NULL.
Referenced by lineart_bounding_areas_connect_new(), and lineart_main_bounding_areas_connect_post().
void* lineart_list_append_pointer_pool_sized | ( | ListBase * | h, |
LineartStaticMemPool * | smp, | ||
void * | data, | ||
int | size | ||
) |
Definition at line 35 of file lineart_util.c.
References BLI_addtail(), data, LinkData::data, lineart_mem_acquire(), NULL, and size().
Referenced by lineart_bounding_area_link_point_recursive(), lineart_memory_get_edge_space(), lineart_memory_get_triangle_space(), and lineart_memory_get_vert_space().
void* lineart_list_append_pointer_pool_sized_thread | ( | ListBase * | h, |
LineartStaticMemPool * | smp, | ||
void * | data, | ||
int | size | ||
) |
Definition at line 60 of file lineart_util.c.
References BLI_addtail(), data, LinkData::data, lineart_mem_acquire_thread(), NULL, and size().
Referenced by lineart_geometry_object_load().
void* lineart_list_append_pointer_pool_thread | ( | ListBase * | h, |
LineartStaticMemPool * | smp, | ||
void * | data | ||
) |
Definition at line 49 of file lineart_util.c.
References BLI_addtail(), data, LinkData::data, lineart_mem_acquire_thread(), and NULL.
Referenced by lineart_geometry_object_load().
Definition at line 75 of file lineart_util.c.
References BLI_pophead(), LinkData::data, and NULL.
Definition at line 86 of file lineart_util.c.
References BLI_remlink().
Referenced by lineart_bounding_areas_connect_new().
void lineart_matrix_ortho_44d | ( | double(*) | mProjection[4], |
double | xMin, | ||
double | xMax, | ||
double | yMin, | ||
double | yMax, | ||
double | zMin, | ||
double | zMax | ||
) |
Definition at line 189 of file lineart_util.c.
References unit_m4_db().
Referenced by lineart_main_load_geometries(), and lineart_main_try_generate_shadow().
void lineart_matrix_perspective_44d | ( | double(*) | mProjection[4], |
double | fFov_rad, | ||
double | fAspect, | ||
double | zMin, | ||
double | zMax | ||
) |
Definition at line 157 of file lineart_util.c.
References KDL::tan(), and unit_m4_db().
Referenced by lineart_main_load_geometries(), and lineart_main_try_generate_shadow().
void* lineart_mem_acquire | ( | LineartStaticMemPool * | smp, |
size_t | size | ||
) |
Definition at line 104 of file lineart_util.c.
References ListBase::first, lineart_mem_new_static_pool(), LineartStaticMemPool::pools, ret, size(), LineartStaticMemPoolNode::size, and LineartStaticMemPoolNode::used_byte.
Referenced by lineart_chain_append_point(), lineart_chain_create(), lineart_chain_create_crossing_point(), lineart_chain_prepend_point(), lineart_create_edges_from_isec_data(), lineart_list_append_pointer_pool(), lineart_list_append_pointer_pool_sized(), lineart_main_bounding_area_make_initial(), lineart_main_load_geometries(), lineart_memory_get_edge_space(), lineart_memory_get_triangle_space(), lineart_memory_get_vert_space(), lineart_object_load_single_instance(), lineart_shadow_cast_generate_edges(), lineart_shadow_create_shadow_edge_array(), and MOD_lineart_chain_clip_at_border().
void* lineart_mem_acquire_thread | ( | LineartStaticMemPool * | smp, |
size_t | size | ||
) |
Definition at line 119 of file lineart_util.c.
References BLI_spin_lock(), BLI_spin_unlock(), ListBase::first, lineart_mem_new_static_pool(), LineartStaticMemPool::lock_mem, LineartStaticMemPool::pools, ret, size(), LineartStaticMemPoolNode::size, and LineartStaticMemPoolNode::used_byte.
Referenced by lineart_bounding_area_split(), lineart_geometry_object_load(), lineart_give_segment(), lineart_give_shadow_segment(), lineart_list_append_pointer_pool_sized_thread(), lineart_list_append_pointer_pool_thread(), and lineart_prepend_pool().
void lineart_mem_destroy | ( | LineartStaticMemPool * | smp | ) |
Definition at line 139 of file lineart_util.c.
References BLI_pophead(), MEM_freeN, NULL, and LineartStaticMemPool::pools.
Referenced by lineart_destroy_render_data(), lineart_destroy_render_data_keep_init(), MOD_lineart_clear_cache(), and MOD_lineart_compute_feature_lines().
LineartStaticMemPoolNode* lineart_mem_new_static_pool | ( | LineartStaticMemPool * | smp, |
size_t | size | ||
) |
Definition at line 91 of file lineart_util.c.
References BLI_addhead(), LRT_MEMORY_POOL_1MB, MEM_callocN, LineartStaticMemPool::pools, and size().
Referenced by lineart_mem_acquire(), and lineart_mem_acquire_thread().
void lineart_prepend_pool | ( | LinkNode ** | first, |
LineartStaticMemPool * | smp, | ||
void * | link | ||
) |
Definition at line 147 of file lineart_util.c.
References lineart_mem_acquire_thread(), LinkNode::link, and LinkNode::next.