Cleanup: correct file names in comments after C -> C++ renaming

Use back-tick quotes to differentiate these from plain text.
This commit is contained in:
Campbell Barton 2023-07-31 11:50:54 +10:00
parent a35ad5899f
commit 52acf6a6ec
271 changed files with 740 additions and 734 deletions

View File

@ -11,7 +11,7 @@ StructMetaPropGroup = bpy_types.bpy_struct_meta_idprop
# Private dummy object use for comparison only.
_sentinel = object()
# Note that methods extended in C are defined in: 'bpy_rna_types_capi.c'
# Note that methods extended in C are defined in: `bpy_rna_types_capi.cc`.
class Context(StructRNA):
@ -106,7 +106,7 @@ class Library(bpy_types.ID):
"""ID data blocks which use this library"""
import bpy
# See: readblenentry.c, IDTYPE_FLAGS_ISLINKABLE,
# See: `readblenentry.cc`, IDTYPE_FLAGS_ISLINKABLE,
# we could make this an attribute in rna.
attr_links = (
"actions", "armatures", "brushes", "cameras",

View File

@ -285,7 +285,7 @@ void BLF_draw_buffer_ex(int fontid, const char *str, size_t str_len, struct Resu
ATTR_NONNULL(2);
void BLF_draw_buffer(int fontid, const char *str, size_t str_len) ATTR_NONNULL(2);
/* blf_thumbs.c */
/* `blf_thumbs.cc` */
/**
* This function is used for generating thumbnail previews.
@ -295,7 +295,7 @@ void BLF_draw_buffer(int fontid, const char *str, size_t str_len) ATTR_NONNULL(2
bool BLF_thumb_preview(const char *filename, unsigned char *buf, int w, int h, int channels)
ATTR_NONNULL();
/* blf_default.c */
/* `blf_default.cc` */
void BLF_default_size(float size);
void BLF_default_set(int fontid);
@ -312,7 +312,7 @@ void BLF_draw_default(float x, float y, float z, const char *str, size_t str_len
*/
int BLF_set_default(void);
/* blf_font_default.c */
/* `blf_font_default.cc` */
int BLF_load_default(bool unique);
int BLF_load_mono_default(bool unique);

View File

@ -173,7 +173,7 @@ void blf_glyph_draw(
struct FontBLF *font, struct GlyphCacheBLF *gc, struct GlyphBLF *g, int x, int y);
#ifdef WIN32
/* blf_font_win32_compat.c */
/* `blf_font_win32_compat.cc` */
# ifdef FT_FREETYPE_H
extern FT_Error FT_New_Face__win32_compat(FT_Library library,

View File

@ -394,7 +394,7 @@ void BKE_pose_blend_read_lib(struct BlendLibReader *reader, struct Object *ob, s
void BKE_pose_blend_read_expand(struct BlendExpander *expander, struct bPose *pose)
ATTR_NONNULL(1);
/* action_mirror.c */
/* `action_mirror.cc` */
void BKE_action_flip_with_pose(struct bAction *act, struct Object *ob_arm) ATTR_NONNULL(1, 2);

View File

@ -380,7 +380,7 @@ void BKE_pchan_to_mat4(const struct bPoseChannel *pchan, float r_chanmat[4][4]);
/**
* Convert the loc/rot/size to mat4 (`pchan.chan_mat`),
* used in `constraint.c` too.
* used in `constraint.cc` too.
*/
void BKE_pchan_calc_mat(struct bPoseChannel *pchan);
@ -638,7 +638,7 @@ void BKE_pose_eval_cleanup(struct Depsgraph *depsgraph,
struct Object *object);
/* -------------------------------------------------------------------- */
/** \name Deform 3D Coordinates by Armature (armature_deform.c)
/** \name Deform 3D Coordinates by Armature (`armature_deform.cc`)
* \{ */
/* Note that we could have a 'BKE_armature_deform_coords' that doesn't take object data

View File

@ -71,7 +71,7 @@ struct PointerRNA;
* =============
*
* All callbacks here must be exposed via the Python module `bpy.app.handlers`,
* see `bpy_app_handlers.c`.
* see `bpy_app_handlers.cc`.
*/
typedef enum {
BKE_CB_EVT_FRAME_CHANGE_PRE,

View File

@ -19,7 +19,7 @@ struct Object;
struct ReportList;
struct Scene;
/* crazyspace.c */
/* `crazyspace.cc` */
/**
* Disable subdivision-surface temporal, get mapped coordinates, and enable it.

View File

@ -374,7 +374,7 @@ extern void (*BKE_curve_batch_cache_dirty_tag_cb)(struct Curve *cu, int mode);
extern void (*BKE_curve_batch_cache_free_cb)(struct Curve *cu);
/* -------------------------------------------------------------------- */
/** \name Decimate Curve (curve_decimate.c)
/** \name Decimate Curve (`curve_decimate.cc`)
*
* Simplify curve data.
* \{ */
@ -396,7 +396,7 @@ void BKE_curve_decimate_nurb(struct Nurb *nu,
/** \} */
/* -------------------------------------------------------------------- */
/** \name Deform 3D Coordinates by Curve (curve_deform.c)
/** \name Deform 3D Coordinates by Curve (`curve_deform.cc`)
* \{ */
void BKE_curve_deform_coords(const struct Object *ob_curve,
@ -432,7 +432,7 @@ void BKE_curve_deform_co(const struct Object *ob_curve,
/** \} */
/* curve_convert.c */
/* `curve_convert.cc` */
/* Create a new curve from the given object at its current state. This only works for curve and
* text objects, otherwise NULL is returned.

View File

@ -172,7 +172,7 @@ void CustomData_copy_layout(const struct CustomData *source,
eCDAllocType alloctype,
int totelem);
/* BMESH_TODO, not really a public function but readfile.c needs it */
/* BMESH_TODO, not really a public function but `readfile.cc` needs it. */
void CustomData_update_typemap(struct CustomData *data);
/**

View File

@ -153,7 +153,7 @@ bool get_effector_data(struct EffectorCache *eff,
struct EffectedPoint *point,
int real_velocity);
/* required for particle_system.c */
/* Required for `particle_system.cc`. */
#if 0
void do_physical_effector(struct EffectorData *eff,
struct EffectorPoint *point,

View File

@ -341,7 +341,7 @@ int BKE_fcurve_bezt_binarysearch_index(const struct BezTriple array[],
int arraylen,
bool *r_replace);
/* fcurve_cache.c */
/* `fcurve_cache.cc` */
/**
* Cached f-curve look-ups, use when this needs to be done many times.

View File

@ -267,7 +267,7 @@ enum {
G_TRANSFORM_CURSOR = (1 << 5),
};
/** Defined in blender.c */
/** Defined in `blender.cc` */
extern Global G;
/**

View File

@ -438,7 +438,7 @@ void BKE_image_get_size(struct Image *image, struct ImageUser *iuser, int *r_wid
void BKE_image_get_size_fl(struct Image *image, struct ImageUser *iuser, float r_size[2]);
void BKE_image_get_aspect(struct Image *image, float *r_aspx, float *r_aspy);
/* image_gen.c */
/* `image_gen.cc` */
void BKE_image_buf_fill_color(
unsigned char *rect, float *rect_float, int width, int height, const float color[4]);

View File

@ -14,7 +14,7 @@ extern "C" {
struct Main;
/**
* Called from #do_versions() in `readfile.c` to convert the old 'IPO/adrcode' system
* Called from #do_versions() in `readfile.cc` to convert the old 'IPO/adrcode' system
* to the new 'Animato/RNA' system.
*
* The basic method used here, is to loop over data-blocks which have IPO-data,

View File

@ -77,7 +77,7 @@ extern void (*BKE_lattice_batch_cache_dirty_tag_cb)(struct Lattice *lt, int mode
extern void (*BKE_lattice_batch_cache_free_cb)(struct Lattice *lt);
/* -------------------------------------------------------------------- */
/** \name Deform 3D Coordinates by Lattice (lattice_deform.c)
/** \name Deform 3D Coordinates by Lattice (`lattice_deform.cc`)
* \{ */
struct LatticeDeformData *BKE_lattice_deform_data_create(

View File

@ -493,7 +493,7 @@ void BKE_view_layer_visible_bases_iterator_end(BLI_Iterator *iter);
} \
((void)0)
/* layer_utils.c */
/* `layer_utils.cc` */
struct ObjectsInViewLayerParams {
uint no_dup_data : 1;

View File

@ -231,7 +231,7 @@ typedef enum eLibIDDuplicateFlags {
ENUM_OPERATORS(eLibIDDuplicateFlags, LIB_ID_DUPLICATE_IS_ROOT_ID)
/* lib_remap.c (keep here since they're general functions) */
/* `lib_remap.cc` (keep here since they're general functions) */
/**
* New freeing logic options.
*/
@ -355,7 +355,7 @@ void id_us_ensure_real(struct ID *id);
void id_us_clear_real(struct ID *id);
/**
* Same as \a id_us_plus, but does not handle lib indirect -> extern.
* Only used by readfile.c so far, but simpler/safer to keep it here nonetheless.
* Only used by `readfile.cc` so far, but simpler/safer to keep it here nonetheless.
*/
void id_us_plus_no_lib(struct ID *id);
void id_us_plus(struct ID *id);
@ -565,7 +565,7 @@ void BKE_main_id_flag_listbase(struct ListBase *lb, int flag, bool value);
void BKE_main_id_flag_all(struct Main *bmain, int flag, bool value);
/**
* Next to indirect usage in `readfile.c/writefile.c` also in `editobject.c`, `scene.cc`.
* Next to indirect usage in `readfile.cc` / `writefile.cc` also in `editobject.c`, `scene.cc`.
*/
void BKE_main_id_newptr_and_tag_clear(struct Main *bmain);
@ -677,7 +677,7 @@ void BKE_id_blend_write(struct BlendWriter *writer, struct ID *id);
#define IS_TAGGED(_id) ((_id) && (((ID *)_id)->tag & LIB_TAG_DOIT))
/* lib_id_eval.c */
/* `lib_id_eval.cc` */
/**
* Copy relatives parameters, from `id` to `id_cow`.

View File

@ -227,7 +227,7 @@ typedef enum IDRemapperApplyOptions {
* NOTE: Currently unused by main remapping code, since user-count is handled by
* `foreach_libblock_remap_callback_apply` there, depending on whether the remapped pointer does
* use it or not. Need for rare cases in UI handling though (see e.g. `image_id_remap` in
* `space_image.c`).
* `space_image.cc`).
*/
ID_REMAP_APPLY_UPDATE_REFCOUNT = (1 << 0),

View File

@ -27,7 +27,7 @@ struct MaskSplinePointUW;
struct MovieClip;
struct MovieClipUser;
/* mask_ops.c */
/* `mask_ops.cc` */
typedef enum {
MASK_WHICH_HANDLE_NONE = 0,
@ -333,7 +333,7 @@ void BKE_mask_clipboard_paste_to_layer(struct Main *bmain, struct MaskLayer *mas
#define MASK_RESOL_MAX 128
/* mask_evaluate.c */
/* `mask_evaluate.cc` */
unsigned int BKE_mask_spline_resolution(struct MaskSpline *spline, int width, int height);
unsigned int BKE_mask_spline_feather_resolution(struct MaskSpline *spline, int width, int height);
@ -387,7 +387,7 @@ void BKE_mask_eval_update(struct Depsgraph *depsgraph, struct Mask *mask);
/** \name Rasterization
* \{ */
/* mask_rasterize.c */
/* `mask_rasterize.cc` */
struct MaskRasterHandle;
typedef struct MaskRasterHandle MaskRasterHandle;

View File

@ -66,7 +66,7 @@ void BKE_mesh_tag_edges_split(struct Mesh *mesh);
*/
void BKE_mesh_tag_face_winding_changed(struct Mesh *mesh);
/* *** mesh.c *** */
/* `mesh.cc` */
struct BMesh *BKE_mesh_to_bmesh_ex(const struct Mesh *me,
const struct BMeshCreateParams *create_params,
@ -712,7 +712,7 @@ void BKE_mesh_batch_cache_free(void *batch_cache);
extern void (*BKE_mesh_batch_cache_dirty_tag_cb)(struct Mesh *me, eMeshBatchDirtyMode mode);
extern void (*BKE_mesh_batch_cache_free_cb)(void *batch_cache);
/* mesh_debug.c */
/* `mesh_debug.cc` */
#ifndef NDEBUG
char *BKE_mesh_debug_info(const struct Mesh *me)

View File

@ -105,7 +105,7 @@ void BKE_mesh_convert_mfaces_to_mpolys(struct Mesh *mesh);
/**
* The same as #BKE_mesh_convert_mfaces_to_mpolys
* but oriented to be used in #do_versions from `readfile.c`
* but oriented to be used in #do_versions from `readfile.cc`
* the difference is how active/render/clone/stencil indices are handled here.
*
* normally they're being set from `pdata` which totally makes sense for meshes which are

View File

@ -143,7 +143,7 @@ void BKE_ocean_cache_eval_ij(struct OceanCache *och, struct OceanResult *ocr, in
void BKE_ocean_free_cache(struct OceanCache *och);
void BKE_ocean_free_modifier_cache(struct OceanModifierData *omd);
/* ocean_spectrum.c */
/* `ocean_spectrum.cc` */
/**
* Pierson-Moskowitz model, 1964, assumes waves reach equilibrium with wind.

View File

@ -487,7 +487,7 @@ void psys_apply_hair_lattice(struct Depsgraph *depsgraph,
struct Object *ob,
struct ParticleSystem *psys);
/* particle_system.c */
/* `particle_system.cc` */
struct ParticleSystem *psys_get_target_system(struct Object *ob, struct ParticleTarget *pt);
/**
@ -626,7 +626,7 @@ void psys_particle_on_dm(struct Mesh *mesh_final,
float vtan[3],
float orco[3]);
/* particle_system.c */
/* `particle_system.cc` */
void distribute_particles(struct ParticleSimulationData *sim, int from);
/**

View File

@ -23,7 +23,7 @@ typedef enum {
PBVH_BMESH,
} PBVHType;
/* PBVHNodeFlags is needed by DRW_render.h and draw_cache.c. */
/* #PBVHNodeFlags is needed by `DRW_render.h` and `draw_cache.cc`. */
typedef enum PBVHNodeFlags {
PBVH_Leaf = 1 << 0,
@ -44,7 +44,8 @@ typedef enum PBVHNodeFlags {
PBVH_UpdateColor = 1 << 14,
PBVH_RebuildPixels = 1 << 15,
PBVH_TexLeaf = 1 << 16,
PBVH_TopologyUpdated = 1 << 17, /* Used internally by pbvh_bmesh.c */
/** Used internally by `pbvh_bmesh.cc`. */
PBVH_TopologyUpdated = 1 << 17,
} PBVHNodeFlags;
ENUM_OPERATORS(PBVHNodeFlags, PBVH_TopologyUpdated);
@ -106,7 +107,7 @@ extern "C" {
/* Needed by eevee_materias.c. */
void BKE_pbvh_is_drawing_set(PBVH *pbvh, bool val);
/* Needed by basic_engine.c. */
/* Needed by `basic_engine.cc`. */
void BKE_pbvh_draw_debug_cb(PBVH *pbvh,
void (*draw_fn)(PBVHNode *node,
void *user_data,

View File

@ -130,7 +130,7 @@ bool text_check_identifier_nodigit(char ch);
bool text_check_whitespace(char ch);
int text_find_identifier_start(const char *str, int i);
/* EVIL: defined in `bpy_interface.c`. */
/* EVIL: defined in `bpy_interface.cc`. */
extern int text_check_identifier_unicode(unsigned int ch);
extern int text_check_identifier_nodigit_unicode(unsigned int ch);

View File

@ -103,7 +103,7 @@ const char *BKE_unit_identifier_get(const void *usys_pt, int index);
double BKE_unit_scalar_get(const void *usys_pt, int index);
bool BKE_unit_is_suppressed(const void *usys_pt, int index);
/** Aligned with #PropertyUnit and `bpyunits_ucategories_items` in `bpy_utils_units.c`. */
/** Aligned with #PropertyUnit and `bpyunits_ucategories_items` in `bpy_utils_units.cc`. */
enum {
B_UNIT_NONE = 0,
B_UNIT_LENGTH = 1,

View File

@ -241,7 +241,7 @@ struct CCGSubSurf {
/* ** General purpose functions ** */
/* * CCGSubSurf.c * */
/* `CCGSubSurf.cc` */
void ccgSubSurf__allFaces(CCGSubSurf *ss, CCGFace ***faces, int *numFaces, int *freeFaces);
void ccgSubSurf__effectedFaceNeighbors(CCGSubSurf *ss,
@ -252,7 +252,7 @@ void ccgSubSurf__effectedFaceNeighbors(CCGSubSurf *ss,
CCGEdge ***edges,
int *numEdges);
/* * CCGSubSurf_legacy.c * */
/* `CCGSubSurf_legacy.cc` */
void ccgSubSurf__sync_legacy(CCGSubSurf *ss);

View File

@ -147,7 +147,7 @@ void add_keyframe(FCurve *fcu, float x, float y)
BezTriple the_keyframe;
memset(&the_keyframe, 0, sizeof(the_keyframe));
/* Copied from insert_vert_fcurve() in keyframing.c. */
/* Copied from insert_vert_fcurve() in `keyframing.cc`. */
the_keyframe.vec[0][0] = x - 1.0f;
the_keyframe.vec[0][1] = y;
the_keyframe.vec[1][0] = x;

View File

@ -3320,7 +3320,7 @@ static bool is_action_track_evaluated_without_nla(const AnimData *adt,
}
/**
* XXX(Wayde Moss): #BKE_nlatrack_find_tweaked() exists within nla.c, but it doesn't appear to
* XXX(Wayde Moss): #BKE_nlatrack_find_tweaked() exists within `nla.cc`, but it doesn't appear to
* work as expected. From #animsys_evaluate_nla_for_flush(), it returns nullptr in tweak mode. I'm
* not sure why. Preferably, it would be as simple as checking for `(adt->act_Track == nlt)` but
* that doesn't work either, neither does comparing indices.

View File

@ -294,7 +294,7 @@ static void mesh_looptri_nearest_point(void *userdata,
normal_tri_v3(nearest->no, UNPACK3(vtri_co));
}
}
/* copy of function above (warning, should de-duplicate with editmesh_bvh.c) */
/* Copy of function above (warning, should de-duplicate with `editmesh_bvh.cc`). */
static void editmesh_looptri_nearest_point(void *userdata,
int index,
const float co[3],
@ -398,7 +398,7 @@ static void mesh_looptri_spherecast(void *userdata,
normal_tri_v3(hit->no, UNPACK3(vtri_co));
}
}
/* copy of function above (warning, should de-duplicate with editmesh_bvh.c) */
/* Copy of function above (warning, should de-duplicate with `editmesh_bvh.cc`). */
static void editmesh_looptri_spherecast(void *userdata,
int index,
const BVHTreeRay *ray,

View File

@ -1938,7 +1938,7 @@ void BKE_main_collections_parent_relations_rebuild(Main *bmain)
/* Scene's master collections will be 'root' parent of most of our collections, so start with
* them. */
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
/* This function can be called from readfile.c, when this pointer is not guaranteed to be
/* This function can be called from `readfile.cc`, when this pointer is not guaranteed to be
* nullptr.
*/
if (scene->master_collection != nullptr) {

View File

@ -451,7 +451,7 @@ void BKE_curvemap_handle_set(CurveMap *cuma, int type)
/* *********************** Making the tables and display ************** */
/**
* reduced copy of #calchandleNurb_intern code in curve.c
* Reduced copy of #calchandleNurb_intern code in `curve.cc`.
*/
static void calchandle_curvemap(BezTriple *bezt, const BezTriple *prev, const BezTriple *next)
{

View File

@ -1110,7 +1110,8 @@ static void childof_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *tar
}
}
/* XXX NOTE: con->flag should be CONSTRAINT_SPACEONCE for bone-childof, patched in `readfile.c`. */
/* XXX NOTE: con->flag should be CONSTRAINT_SPACEONCE for bone-childof, patched in `readfile.cc`.
*/
static bConstraintTypeInfo CTI_CHILDOF = {
/*type*/ CONSTRAINT_TYPE_CHILDOF,
/*size*/ sizeof(bChildOfConstraint),
@ -2634,7 +2635,7 @@ static void armdef_accumulate_bone(bConstraintTarget *ct,
float basemat[4][4];
/* The target is a B-Bone:
* FIRST: find the segment (see b_bone_deform in armature.c)
* FIRST: find the segment (see b_bone_deform in `armature.cc`)
* Need to transform co back to bone-space, only need y. */
float y = iamat[0][1] * co[0] + iamat[1][1] * co[1] + iamat[2][1] * co[2] + iamat[3][1];

View File

@ -538,7 +538,7 @@ static bool is_curved_edge(CurveProfilePoint *path, int i)
/**
* Used to set bezier handle locations in the sample creation process. Reduced copy of
* #calchandleNurb_intern code in curve.c, mostly changed by removing the third dimension.
* #calchandleNurb_intern code in `curve.cc`, mostly changed by removing the third dimension.
*/
static void point_calculate_handle(CurveProfilePoint *point,
const CurveProfilePoint *prev,

View File

@ -5213,14 +5213,14 @@ static void blend_read_mdisps(BlendDataReader *reader,
/* this calculation is only correct for loop mdisps;
* if loading pre-BMesh face mdisps this will be
* overwritten with the correct value in
* bm_corners_to_loops() */
* #bm_corners_to_loops() */
float gridsize = sqrtf(mdisps[i].totdisp);
mdisps[i].level = int(logf(gridsize - 1.0f) / float(M_LN2)) + 1;
}
if (BLO_read_requires_endian_switch(reader) && (mdisps[i].disps)) {
/* DNA_struct_switch_endian doesn't do endian swap for (*disps)[] */
/* this does swap for data written at write_mdisps() - readfile.c */
/* #DNA_struct_switch_endian doesn't do endian swap for `(*disps)[]` */
/* this does swap for data written at #write_mdisps() - `readfile.cc`. */
BLI_endian_switch_float_array(*mdisps[i].disps, mdisps[i].totdisp * 3);
}
if (!external && !mdisps[i].disps) {

View File

@ -53,7 +53,7 @@ bool data_transfer_layersmapping_vgroups(struct ListBase *r_map,
int fromlayers,
int tolayers);
/* Defined in customdata.c */
/* Defined in `customdata.cc`. */
/**
* Normals are special, we need to take care of source & destination spaces.

View File

@ -206,7 +206,7 @@ static void bmbvh_tri_from_face(const float *cos[3],
}
}
/* Taken from `bvhutils.c`. */
/* Taken from `bvhutils.cc`. */
/* -------------------------------------------------------------------- */
/* BKE_bmbvh_ray_cast */

View File

@ -654,7 +654,7 @@ bool BKE_gpencil_stroke_stretch(bGPDstroke *gps,
if (!isfinite(used_percent_length)) {
/* #used_percent_length must always be finite, otherwise a segfault occurs.
* Since this function should never segfault, set #used_percent_length to a safe fallback. */
/* NOTE: This fallback is used if gps->totpoints == 2, see MOD_gpencil_legacy_length.c */
/* NOTE: This fallback is used if `gps->totpoints == 2`, see `MOD_gpencil_legacy_length.cc`. */
used_percent_length = 0.1f;
}

View File

@ -337,7 +337,7 @@ void BKE_gpencil_frame_active_set(Depsgraph *depsgraph, bGPdata *gpd)
void BKE_gpencil_modifier_init()
{
/* Initialize modifier types */
gpencil_modifier_type_init(modifier_gpencil_types); /* MOD_gpencil_legacy_util.c */
gpencil_modifier_type_init(modifier_gpencil_types); /* `MOD_gpencil_legacy_util.cc`. */
#if 0
/* Note that GPencil actually does not support these at the moment,

View File

@ -344,7 +344,7 @@ static void checker_board_grid_fill(
}
}
/* defined in image.c */
/* Defined in `image.cc`. */
static void checker_board_text(
uchar *rect, float *rect_float, int width, int height, int step, int outline)

View File

@ -238,7 +238,7 @@ void BKE_mesh_calc_edges_legacy(Mesh *me)
void BKE_mesh_strip_loose_faces(Mesh *me)
{
/* NOTE: We need to keep this for edge creation (for now?), and some old `readfile.c` code. */
/* NOTE: We need to keep this for edge creation (for now?), and some old `readfile.cc` code. */
MFace *f;
int a, b;
MFace *mfaces = me->mface;

View File

@ -7,7 +7,7 @@
*
* Mesh normal calculation functions.
*
* \see bmesh_mesh_normals.c for the equivalent #BMesh functionality.
* \see `bmesh_mesh_normals.cc` for the equivalent #BMesh functionality.
*/
#include <climits>

View File

@ -8,7 +8,7 @@
* This file contains code for face tessellation
* (creating triangles from polygons).
*
* \see bmesh_mesh_tessellate.c for the #BMesh equivalent of this file.
* \see `bmesh_mesh_tessellate.cc` for the #BMesh equivalent of this file.
*/
#include "BLI_enumerable_thread_specific.hh"

View File

@ -1202,7 +1202,7 @@ void BKE_modifier_blend_write(BlendWriter *writer, const ID *id_owner, ListBase
* Unfortunately, this can not be done as a regular do_versions() since the modifier type is
* set to NONE, so the do_versions code wouldn't know where the modifier came from.
*
* The best approach seems to have the functionality in versioning_280.c but still call the
* The best approach seems to have the functionality in `versioning_280.cc` but still call the
* function from #BKE_modifier_blend_read_data().
*/

View File

@ -424,7 +424,7 @@ static void node_foreach_cache(ID *id,
key.id_session_uuid = id->session_uuid;
key.offset_in_ID = offsetof(bNodeTree, previews);
/* TODO: see also `direct_link_nodetree()` in readfile.c. */
/* TODO: see also `direct_link_nodetree()` in `readfile.cc`. */
#if 0
function_callback(id, &key, static_cast<void **>(&nodetree->previews), 0, user_data);
#endif

View File

@ -58,7 +58,7 @@ bool BKE_shaderfx_has_gpencil(const Object *ob)
void BKE_shaderfx_init()
{
/* Initialize shaders */
shaderfx_type_init(shader_fx_types); /* FX_shader_util.c */
shaderfx_type_init(shader_fx_types); /* `FX_shader_util.cc`. */
}
ShaderFxData *BKE_shaderfx_new(int type)

View File

@ -278,8 +278,7 @@ static MovieTrackingMarker libmv_marker_to_dna_marker(const libmv_Marker &libmv_
/* -------------------------------------------------------------------- */
/** \name General helpers.
*
* TODO(sergey): Should be moved to tracking_util.c
*
* TODO(sergey): Should be moved to `tracking_util.cc`.
* \{ */
/* Returns false if marker crossed margin area from frame bounds. */

View File

@ -174,7 +174,7 @@ struct direntry;
/**
* Does the specified path point to a directory?
* \note Would be better in `fileops.c` except that it needs `stat.h` so add here.
* \note Would be better in `fileops.cc` except that it needs `stat.h` so add here.
*/
bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
/**

View File

@ -18,7 +18,8 @@ namespace blender::meshintersect {
/**
* Enum values after BOOLEAN_NONE need to match BMESH_ISECT_BOOLEAN_... values in
* editmesh_intersect.c. */
* `editmesh_intersect.cc`.
*/
enum class BoolOpType {
None = -1,
/* Aligned with #BooleanModifierOp. */

View File

@ -103,7 +103,7 @@ void BLI_array_randomize(void *data,
void BLI_bitmap_randomize(unsigned int *bitmap, unsigned int bits_num, unsigned int seed)
ATTR_NONNULL(1);
/** Better seed for the random number generator, using noise.c hash[] */
/** Better seed for the random number generator, using `noise.cc` hash[] */
/** Allows up to BLENDER_MAX_THREADS threads to address */
void BLI_thread_srandom(int thread, unsigned int seed);

View File

@ -15,7 +15,8 @@
* - The polygon is primitive with no holes with a continuous boundary.
* - Triangles have consistent winding.
* - 2d (saves some hassles projecting face pairs on an axis for every edge-rotation)
* also saves us having to store all previous edge-states (see #EdRotState in bmesh_beautify.c)
* also saves us having to store all previous edge-states
* (see #EdRotState in `bmesh_beautify.cc`).
*
* \note
*

View File

@ -25,7 +25,7 @@
#include "BLI_strict_flags.h"
#include "BLI_sys_types.h"
extern "C" uchar BLI_noise_hash_uchar_512[512]; /* noise.c */
extern "C" uchar BLI_noise_hash_uchar_512[512]; /* `noise.cc` */
#define hash BLI_noise_hash_uchar_512
/**

View File

@ -434,7 +434,7 @@ bool BLI_uniquename_cb(UniquenameCheckCallback unique_check,
* Generic function to set a unique name. It is only designed to be used in situations
* where the name is part of the struct.
*
* For places where this is used, see constraint.c for example...
* For places where this is used, see `constraint.cc` for example...
*
* \param name_offset: should be calculated using `offsetof(structname, membername)`
* macro from `stddef.h`

View File

@ -165,7 +165,7 @@ void blo_write_id_struct(BlendWriter *writer,
* Required for writing properly embedded IDs currently.
*
* \note Once there is a better generic handling of embedded IDs,
* this may go back to private code in `writefile.c`.
* this may go back to private code in `writefile.cc`.
*/
typedef struct BLO_Write_IDBuffer BLO_Write_IDBuffer;

View File

@ -66,7 +66,7 @@ typedef struct {
extern "C" {
#endif
/* Actually only used `writefile.c`. */
/* Actually only used `writefile.cc`. */
void BLO_memfile_write_init(MemFileWriteData *mem_data,
MemFile *written_memfile,

View File

@ -6,7 +6,7 @@
/** \file
* \ingroup blenloader
* \brief external `writefile.c` function prototypes.
* \brief external `writefile.cc` function prototypes.
*/
#ifdef __cplusplus

View File

@ -77,7 +77,7 @@
#include <cerrno>
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
/* 2.50 patch */
@ -107,7 +107,7 @@ static void area_add_header_region(ScrArea *area, ListBase *lb)
void sequencer_init_preview_region(ARegion *region)
{
/* XXX a bit ugly still, copied from space_sequencer */
/* NOTE: if you change values here, also change them in space_sequencer.c, sequencer_new */
/* NOTE: if you change values here, also change them in `space_sequencer.cc`, sequencer_new */
region->regiontype = RGN_TYPE_PREVIEW;
region->alignment = RGN_ALIGN_TOP;
region->flag &= ~RGN_FLAG_HIDDEN;
@ -548,7 +548,7 @@ static void do_version_bone_roll_256(Bone *bone)
}
}
/* deprecated, only keep this for readfile.c */
/* deprecated, only keep this for `readfile.cc` */
/* XXX Deprecated function to add a socket in ntree->inputs/ntree->outputs list
* (previously called node_group_add_socket). This function has been superseded
* by the implementation of proxy nodes. It is still necessary though

View File

@ -76,7 +76,7 @@
#include "readfile.h"
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
static void do_versions_nodetree_image_default_alpha_output(bNodeTree *ntree)

View File

@ -74,7 +74,7 @@
#include "MEM_guardedalloc.h"
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
/* ************************************************** */

View File

@ -108,7 +108,7 @@
#include "MEM_guardedalloc.h"
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
static bScreen *screen_parent_find(const bScreen *screen)
@ -2435,7 +2435,7 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain)
}
/* Create a tree store element for the collection. This is normally
* done in check_persistent (outliner_tree.c), but we need to access
* done in check_persistent `outliner_tree.cc`, but we need to access
* it here :/ (expand element if it's the only one) */
TreeStoreElem *tselem = static_cast<TreeStoreElem *>(
BLI_mempool_calloc(space_outliner->treestore));
@ -3098,8 +3098,8 @@ void do_versions_after_linking_280(FileData *fd, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #blo_do_versions_280 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/
@ -6527,8 +6527,8 @@ void blo_do_versions_280(FileData *fd, Library * /*lib*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #do_versions_after_linking_280 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/

View File

@ -70,7 +70,7 @@
#include "readfile.h"
#include "versioning_common.h"
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain)
@ -676,8 +676,8 @@ void do_versions_after_linking_290(FileData * /*fd*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #blo_do_versions_290 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/
@ -1967,8 +1967,8 @@ void blo_do_versions_290(FileData *fd, Library * /*lib*/, Main *bmain)
* Versioning code until next subversion bump goes here.
*
* \note Be sure to check when bumping the version:
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/

View File

@ -1342,8 +1342,8 @@ void do_versions_after_linking_300(FileData * /*fd*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #blo_do_versions_300 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/
@ -4523,8 +4523,8 @@ void blo_do_versions_300(FileData *fd, Library * /*lib*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #do_versions_after_linking_300 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/

View File

@ -62,8 +62,8 @@ void do_versions_after_linking_400(FileData * /*fd*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #blo_do_versions_400 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/
@ -510,8 +510,8 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain)
*
* \note Be sure to check when bumping the version:
* - #do_versions_after_linking_400 in this file.
* - "versioning_userdef.c", #blo_do_versions_userdef
* - "versioning_userdef.c", #do_versions_theme
* - `versioning_userdef.cc`, #blo_do_versions_userdef
* - `versioning_userdef.cc`, #do_versions_theme
*
* \note Keep this message at the bottom of the function.
*/

View File

@ -66,7 +66,7 @@
#include "versioning_common.h"
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
static bool blo_is_builtin_template(const char *app_template)

View File

@ -77,7 +77,7 @@
#include <cerrno>
/* Make preferences read-only, use versioning_userdef.c. */
/* Make preferences read-only, use `versioning_userdef.cc`. */
#define U (*((const UserDef *)&U))
static void vcol_to_fcol(Mesh *me)
@ -1163,7 +1163,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *bmain)
if ((tex->flag & (TEX_CHECKER_ODD + TEX_CHECKER_EVEN)) == 0) {
tex->flag |= TEX_CHECKER_ODD;
}
/* copied from kernel texture.c */
/* Copied from kernel `texture.cc`. */
if (tex->ns_outscale == 0.0f) {
/* musgrave */
tex->mg_H = 1.0f;

View File

@ -1160,7 +1160,7 @@ static void id_buffer_init_from_id(BLO_Write_IDBuffer *id_buffer, ID *id, const
temp_id->newid = nullptr;
/* Even though in theory we could be able to preserve this python instance across undo even
* when we need to re-read the ID into its original address, this is currently cleared in
* #direct_link_id_common in `readfile.c` anyway. */
* #direct_link_id_common in `readfile.cc` anyway. */
temp_id->py_instance = nullptr;
}

View File

@ -8,7 +8,7 @@
* Find the region defined by the path(s) between 2 UV elements.
* (path isn't ordered).
*
* \note This uses the same behavior as bmesh_path_region.c
* \note This uses the same behavior as `bmesh_path_region.cc`
* however walking UVs causes enough differences that it's
* impractical to share the code.
*/

View File

@ -30,7 +30,7 @@
/**
* Use skip options when we want to start measuring from a boundary.
*
* See #step_cost_3_v3_ex in bmesh_path.c which follows the same logic.
* See #step_cost_3_v3_ex in `bmesh_path.cc` which follows the same logic.
*/
static float step_cost_3_v2_ex(
const float v1[2], const float v2[2], const float v3[2], bool skip_12, bool skip_23)

View File

@ -18,7 +18,7 @@ extern "C" {
* \param defgrp_index: Vertex group index, -1 for no vertex groups.
*
* \note All edge tags must be cleared.
* \note Behavior matches MOD_solidify.c
* \note Behavior matches `MOD_solidify.cc`.
*/
void BM_mesh_wireframe(BMesh *bm,
float offset,

View File

@ -293,8 +293,8 @@ struct Render;
/**
* \brief The main method that is used to execute the compositor tree.
* It can be executed during editing (blenkernel/node.cc) or rendering
* (renderer/pipeline.c)
* It can be executed during editing (`blenkernel/node.cc`) or rendering
* (`renderer/pipeline.cc`).
*
* \param render: [struct Render]
* Render instance for GPU context.

View File

@ -13,7 +13,7 @@ void ConvertAlphaNode::convert_to_operations(NodeConverter &converter,
NodeOperation *operation = nullptr;
const bNode *node = this->get_bnode();
/* value hardcoded in rna_nodetree.c */
/* Value hardcoded in `rna_nodetree.cc`. */
if (node->custom1 == 1) {
operation = new ConvertPremulToStraightOperation();
}

View File

@ -169,7 +169,7 @@ void VectorBlurOperation::generate_vector_blur(float *data,
/* -------------------------------------------------------------------- */
/** \name Spans
*
* Duplicated logic from `zbuf.c`.
* Duplicated logic from `zbuf.cc`.
* \{ */
/** Span fill in method, is also used to localize data for Z-buffering. */
@ -336,7 +336,7 @@ struct DrawBufPixel {
};
/**
* \note Near duplicate of `zspan_scanconvert` in `zbuf.c` with some minor adjustments.
* \note Near duplicate of `zspan_scanconvert` in `zbuf.cc` with some minor adjustments.
*/
static void zbuf_fill_in_rgba(
ZSpan *zspan, DrawBufPixel *col, float *v1, float *v2, float *v3, float *v4)

View File

@ -70,7 +70,7 @@ typedef struct SELECTID_Context {
bool is_dirty;
} SELECTID_Context;
/* draw_select_buffer.c */
/* `draw_select_buffer.cc` */
bool DRW_select_buffer_elem_get(uint sel_id, uint *r_elem, uint *r_base_index, char *r_elem_type);
uint DRW_select_buffer_context_offset_for_object_elem(struct Depsgraph *depsgraph,

View File

@ -43,7 +43,7 @@ float *EEVEE_lut_update_ggx_brdf(int lut_size)
float *data = static_cast<float *>(GPU_texture_read(tex, GPU_DATA_FLOAT, 0));
GPU_texture_free(tex);
#if DO_FILE_OUTPUT
/* Content is to be put inside eevee_lut.c */
/* Content is to be put inside `eevee_lut.cc`. */
FILE *f = BLI_fopen("bsdf_split_sum_ggx.h", "w");
fprintf(f, "const float bsdf_split_sum_ggx[%d * %d * 2] = {", lut_size, lut_size);
for (int i = 0; i < lut_size * lut_size * 2;) {
@ -88,7 +88,7 @@ float *EEVEE_lut_update_ggx_btdf(int lut_size, int lut_depth)
GPU_texture_free(tex);
#if DO_FILE_OUTPUT
/* Content is to be put inside eevee_lut.c. Don't forget to format the output. */
/* Content is to be put inside `eevee_lut.cc`. Don't forget to format the output. */
FILE *f = BLI_fopen("btdf_split_sum_ggx.h", "w");
fprintf(f, "const float btdf_split_sum_ggx[%d][%d * %d * 2] = {", lut_depth, lut_size, lut_size);
fprintf(f, "\n ");

View File

@ -1058,7 +1058,7 @@ typedef struct EEVEE_PrivateData {
int render_sample_count_per_timestep;
} EEVEE_PrivateData; /* Transient data */
/* eevee_data.c */
/* `eevee_data.cc` */
void EEVEE_motion_blur_data_init(EEVEE_MotionBlurData *mb);
void EEVEE_motion_blur_data_free(EEVEE_MotionBlurData *mb);
@ -1084,7 +1084,7 @@ EEVEE_WorldEngineData *EEVEE_world_data_ensure(World *wo);
void eevee_id_update(void *vedata, ID *id);
/* eevee_materials.c */
/* `eevee_materials.cc` */
struct GPUTexture *EEVEE_materials_get_util_tex(void); /* XXX */
void EEVEE_materials_init(EEVEE_ViewLayerData *sldata,
@ -1122,7 +1122,7 @@ void EEVEE_material_bind_resources(DRWShadingGroup *shgrp,
const float alpha_clip_threshold,
bool use_ssrefraction,
bool use_alpha_blend);
/* eevee_lights.c */
/* `eevee_lights.cc` */
/**
* Reconstruct local `obmat` from EEVEE_light. (normalized).
@ -1132,7 +1132,7 @@ void EEVEE_lights_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_lights_cache_add(EEVEE_ViewLayerData *sldata, struct Object *ob);
void EEVEE_lights_cache_finish(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_shadows.c */
/* `eevee_shadows.cc` */
void eevee_contact_shadow_setup(const Light *la, EEVEE_Shadow *evsh);
void EEVEE_shadows_init(EEVEE_ViewLayerData *sldata);
@ -1160,7 +1160,7 @@ void EEVEE_shadows_draw_cascades(EEVEE_ViewLayerData *sldata,
void EEVEE_shadow_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, uint tot_samples);
void EEVEE_shadow_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_sampling.c */
/* `eevee_sampling.cc` */
/**
* Special ball distribution:
@ -1183,7 +1183,7 @@ void EEVEE_sample_ellipse(int sample_ofs,
float rsample[3]);
void EEVEE_random_rotation_m4(int sample_ofs, float scale, float r_mat[4][4]);
/* eevee_shaders.c */
/* `eevee_shaders.cc` */
void EEVEE_shaders_material_shaders_init(void);
struct DRWShaderLibrary *EEVEE_shader_lib_get(void);
@ -1289,7 +1289,7 @@ GPUShader *eevee_shaders_sh_create_helper(const char *name,
const char *defines,
bool use_layered_rendering);
/* eevee_lightprobes.c */
/* `eevee_lightprobes.cc` */
bool EEVEE_lightprobes_obj_visibility_cb(bool vis_in, void *user_data);
void EEVEE_lightprobes_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
@ -1360,7 +1360,7 @@ void EEVEE_lightprobes_planar_data_from_object(Object *ob,
EEVEE_PlanarReflection *eplanar,
EEVEE_LightProbeVisTest *vis_test);
/* eevee_depth_of_field.c */
/* `eevee_depth_of_field.cc` */
int EEVEE_depth_of_field_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, Object *camera);
void EEVEE_depth_of_field_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
@ -1372,7 +1372,7 @@ int EEVEE_depth_of_field_sample_count_get(EEVEE_EffectsInfo *effects,
int sample_count,
int *r_ring_count);
/* eevee_bloom.c */
/* `eevee_bloom.cc` */
int EEVEE_bloom_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_bloom_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
@ -1380,7 +1380,7 @@ void EEVEE_bloom_draw(EEVEE_Data *vedata);
void EEVEE_bloom_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata, uint tot_samples);
void EEVEE_bloom_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_cryptomatte.c */
/* `eevee_cryptomatte.cc` */
void EEVEE_cryptomatte_renderpasses_init(EEVEE_Data *vedata);
void EEVEE_cryptomatte_output_init(EEVEE_ViewLayerData *sldata,
@ -1411,7 +1411,7 @@ void EEVEE_cryptomatte_render_result(struct RenderLayer *rl,
void EEVEE_cryptomatte_store_metadata(EEVEE_Data *vedata, struct RenderResult *render_result);
void EEVEE_cryptomatte_free(EEVEE_Data *vedata);
/* eevee_occlusion.c */
/* `eevee_occlusion.cc` */
int EEVEE_occlusion_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_occlusion_output_init(EEVEE_ViewLayerData *sldata,
@ -1423,7 +1423,7 @@ void EEVEE_occlusion_compute(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_occlusion_draw_debug(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_occlusion_free(void);
/* eevee_screen_raytrace.c */
/* `eevee_screen_raytrace.cc` */
int EEVEE_screen_raytrace_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_screen_raytrace_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
@ -1434,7 +1434,7 @@ void EEVEE_reflection_output_init(EEVEE_ViewLayerData *sldata,
uint tot_samples);
void EEVEE_reflection_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_subsurface.c */
/* `eevee_subsurface.cc` */
void EEVEE_subsurface_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_subsurface_draw_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
@ -1451,7 +1451,7 @@ void EEVEE_subsurface_data_render(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedat
void EEVEE_subsurface_compute(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_subsurface_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_motion_blur.c */
/* `eevee_motion_blur.cc` */
int EEVEE_motion_blur_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_motion_blur_step_set(EEVEE_Data *vedata, int step);
@ -1469,12 +1469,12 @@ void EEVEE_motion_blur_swap_data(EEVEE_Data *vedata);
void EEVEE_motion_blur_cache_finish(EEVEE_Data *vedata);
void EEVEE_motion_blur_draw(EEVEE_Data *vedata);
/* eevee_mist.c */
/* `eevee_mist.cc` */
void EEVEE_mist_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_mist_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_renderpasses.c */
/* `eevee_renderpasses.cc` */
void EEVEE_renderpasses_init(EEVEE_Data *vedata);
void EEVEE_renderpasses_output_init(EEVEE_ViewLayerData *sldata,
@ -1510,7 +1510,7 @@ bool EEVEE_renderpasses_only_first_sample_pass_active(EEVEE_Data *vedata);
*/
uint EEVEE_renderpasses_aov_hash(const ViewLayerAOV *aov);
/* eevee_temporal_sampling.c */
/* `eevee_temporal_sampling.cc` */
void EEVEE_temporal_sampling_reset(EEVEE_Data *vedata);
void EEVEE_temporal_sampling_create_view(EEVEE_Data *vedata);
@ -1528,7 +1528,7 @@ void EEVEE_temporal_sampling_update_matrices(EEVEE_Data *vedata);
void EEVEE_temporal_sampling_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_temporal_sampling_draw(EEVEE_Data *vedata);
/* eevee_volumes.c */
/* `eevee_volumes.cc` */
void EEVEE_volumes_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_volumes_set_jitter(EEVEE_ViewLayerData *sldata, uint current_sample);
@ -1545,7 +1545,7 @@ void EEVEE_volumes_output_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata,
void EEVEE_volumes_output_accumulate(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
void EEVEE_volumes_free(void);
/* eevee_effects.c */
/* `eevee_effects.cc` */
void EEVEE_effects_init(EEVEE_ViewLayerData *sldata,
EEVEE_Data *vedata,
@ -1564,7 +1564,7 @@ void EEVEE_create_minmax_buffer(EEVEE_Data *vedata, struct GPUTexture *depth_src
void EEVEE_downsample_cube_buffer(EEVEE_Data *vedata, struct GPUTexture *texture_src, int level);
void EEVEE_draw_effects(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata);
/* eevee_render.c */
/* `eevee_render.cc` */
/**
* Return true if initialized properly.
@ -1598,7 +1598,7 @@ void EEVEE_render_update_passes(struct RenderEngine *engine,
struct Scene *scene,
struct ViewLayer *view_layer);
/** eevee_lookdev.c */
/** `eevee_lookdev.cc` */
void EEVEE_lookdev_init(EEVEE_Data *vedata);
void EEVEE_lookdev_cache_init(EEVEE_Data *vedata,
EEVEE_ViewLayerData *sldata,
@ -1607,10 +1607,10 @@ void EEVEE_lookdev_cache_init(EEVEE_Data *vedata,
DRWShadingGroup **r_shgrp);
void EEVEE_lookdev_draw(EEVEE_Data *vedata);
/** eevee_engine.c */
/** `eevee_engine.cc` */
void EEVEE_cache_populate(void *vedata, Object *ob);
/** eevee_lut_gen.c */
/** `eevee_lut_gen.cc` */
float *EEVEE_lut_update_ggx_brdf(int lut_size);
float *EEVEE_lut_update_ggx_btdf(int lut_size, int lut_depth);

View File

@ -48,7 +48,7 @@ class AbstractDrawingMode {
virtual void draw_finish(IMAGE_Data *vedata) const = 0;
};
/* image_shader.c */
/* `image_shader.cc` */
GPUShader *IMAGE_shader_image_get();
GPUShader *IMAGE_shader_depth_get();

View File

@ -12,13 +12,13 @@
extern "C" {
#endif
/* select_engine.c */
/* `select_engine.cc` */
extern DrawEngineType draw_engine_select_type;
extern RenderEngineType DRW_engine_viewport_select_type;
#ifdef WITH_DRAW_DEBUG
/* select_debug_engine.c */
/* `select_debug_engine.cc` */
extern DrawEngineType draw_engine_debug_select_type;
#endif

View File

@ -57,7 +57,7 @@ typedef struct SELECTID_PrivateData {
DRWView *view_verts;
} SELECTID_PrivateData; /* Transient data */
/* select_draw_utils.c */
/* `select_draw_utils.cc` */
void select_id_object_min_max(struct Object *obj, float r_min[3], float r_max[3]);
short select_id_get_object_select_mode(Scene *scene, Object *ob);

View File

@ -393,12 +393,12 @@ BLI_INLINE bool workbench_is_specular_highlight_enabled(WORKBENCH_PrivateData *w
return false;
}
/* workbench_opaque.c */
/* `workbench_opaque.cc` */
void workbench_opaque_engine_init(WORKBENCH_Data *data);
void workbench_opaque_cache_init(WORKBENCH_Data *data);
/* workbench_transparent.c */
/* `workbench_transparent.cc` */
void workbench_transparent_engine_init(WORKBENCH_Data *data);
void workbench_transparent_cache_init(WORKBENCH_Data *data);
@ -408,13 +408,13 @@ void workbench_transparent_cache_init(WORKBENCH_Data *data);
*/
void workbench_transparent_draw_depth_pass(WORKBENCH_Data *data);
/* workbench_shadow.c */
/* `workbench_shadow.cc` */
void workbench_shadow_data_update(WORKBENCH_PrivateData *wpd, WORKBENCH_UBO_World *wd);
void workbench_shadow_cache_init(WORKBENCH_Data *data);
void workbench_shadow_cache_populate(WORKBENCH_Data *data, Object *ob, bool has_transp_mat);
/* workbench_shader.c */
/* `workbench_shader.cc` */
GPUShader *workbench_shader_opaque_get(WORKBENCH_PrivateData *wpd, eWORKBENCH_DataType data);
GPUShader *workbench_shader_opaque_image_get(WORKBENCH_PrivateData *wpd,
@ -451,7 +451,7 @@ void workbench_shader_depth_of_field_get(GPUShader **prepare_sh,
void workbench_shader_free(void);
/* workbench_effect_antialiasing.c */
/* `workbench_effect_antialiasing.cc` */
int workbench_antialiasing_sample_count_get(WORKBENCH_PrivateData *wpd);
void workbench_antialiasing_engine_init(WORKBENCH_Data *vedata);
@ -463,22 +463,22 @@ void workbench_antialiasing_view_updated(WORKBENCH_Data *vedata);
bool workbench_antialiasing_setup(WORKBENCH_Data *vedata);
void workbench_antialiasing_draw_pass(WORKBENCH_Data *vedata);
/* workbench_effect_cavity.c */
/* `workbench_effect_cavity.cc` */
void workbench_cavity_data_update(WORKBENCH_PrivateData *wpd, WORKBENCH_UBO_World *wd);
void workbench_cavity_samples_ubo_ensure(WORKBENCH_PrivateData *wpd);
void workbench_cavity_cache_init(WORKBENCH_Data *data);
/* workbench_effect_outline.c */
/* `workbench_effect_outline.cc` */
void workbench_outline_cache_init(WORKBENCH_Data *data);
/* workbench_effect_dof.c */
/* `workbench_effect_dof.cc` */
void workbench_dof_engine_init(WORKBENCH_Data *vedata);
void workbench_dof_cache_init(WORKBENCH_Data *vedata);
void workbench_dof_draw_pass(WORKBENCH_Data *vedata);
/* workbench_materials.c */
/* `workbench_materials.cc` */
void workbench_material_ubo_data(WORKBENCH_PrivateData *wpd,
Object *ob,
@ -521,7 +521,7 @@ DRWShadingGroup *workbench_image_setup_ex(WORKBENCH_PrivateData *wpd,
#define workbench_image_ptcloud_setup(wpd, ob, mat_nr, ima, iuser, interp) \
workbench_image_setup_ex(wpd, ob, mat_nr, ima, iuser, interp, WORKBENCH_DATATYPE_POINTCLOUD)
/* workbench_data.c */
/* `workbench_data.cc` */
void workbench_private_data_alloc(WORKBENCH_StorageList *stl);
void workbench_private_data_init(WORKBENCH_PrivateData *wpd);
@ -529,7 +529,7 @@ void workbench_update_world_ubo(WORKBENCH_PrivateData *wpd);
void workbench_update_material_ubos(WORKBENCH_PrivateData *wpd);
struct GPUUniformBuf *workbench_material_ubo_alloc(WORKBENCH_PrivateData *wpd);
/* workbench_volume.c */
/* `workbench_volume.cc` */
void workbench_volume_engine_init(WORKBENCH_Data *vedata);
void workbench_volume_cache_init(WORKBENCH_Data *vedata);
@ -540,7 +540,7 @@ void workbench_volume_cache_populate(WORKBENCH_Data *vedata,
eV3DShadingColorType color_type);
void workbench_volume_draw_pass(WORKBENCH_Data *vedata);
/* workbench_engine.c */
/* `workbench_engine.cc` */
void workbench_engine_init(void *ved);
void workbench_cache_init(void *ved);
@ -553,7 +553,7 @@ void workbench_cache_finish(void *ved);
void workbench_draw_sample(void *ved);
void workbench_draw_finish(void *ved);
/* workbench_render.c */
/* `workbench_render.cc` */
void workbench_render(void *ved,
struct RenderEngine *engine,

View File

@ -113,7 +113,7 @@ void DRW_volume_init(struct DRWData *drw_data);
void DRW_volume_ubos_pool_free(void *pool);
void DRW_volume_free(void);
/* draw_fluid.c */
/* `draw_fluid.cc` */
/* Fluid simulation. */
void DRW_smoke_ensure(struct FluidModifierData *fmd, int highres);
@ -127,7 +127,7 @@ void DRW_smoke_free(struct FluidModifierData *fmd);
void DRW_smoke_init(struct DRWData *drw_data);
void DRW_smoke_exit(struct DRWData *drw_data);
/* draw_common.c */
/* `draw_common.cc` */
struct DRW_Global {
/** If needed, contains all global/Theme colors

View File

@ -45,7 +45,7 @@ enum {
DRW_TEXT_CACHE_STRING_PTR = (1 << 3),
};
/* draw_manager.c */
/* `draw_manager.cc` */
struct DRWTextStore *DRW_text_cache_ensure(void);

View File

@ -10,7 +10,7 @@
#include "draw_texture_pool.h"
#ifndef NDEBUG
/* Maybe gpu_texture.c is a better place for this. */
/* Maybe `gpu_texture.cc` is a better place for this. */
static bool drw_texture_format_supports_framebuffer(eGPUTextureFormat format)
{
/* Some formats do not work with frame-buffers. */

View File

@ -330,7 +330,7 @@ struct MeshExtract {
/** \} */
/* draw_cache_extract_mesh_render_data.c */
/* `draw_cache_extract_mesh_render_data.cc` */
/**
* \param is_mode_active: When true, use the modifiers from the edit-data,

View File

@ -3733,7 +3733,7 @@ static int mouse_anim_channels(bContext *C,
}
/* action to take depends on what channel we've got */
/* WARNING: must keep this in sync with the equivalent function in nla_channels.c */
/* WARNING: must keep this in sync with the equivalent function in `nla_channels.cc`. */
switch (ale->type) {
case ANIMTYPE_SCENE:
notifierFlags |= click_select_channel_scene(ale, selectmode);

View File

@ -212,8 +212,8 @@ static void animchan_sync_fcurve(bAnimListElem *ale)
FCurve *fcu = (FCurve *)ale->data;
ID *owner_id = ale->id;
/* major priority is selection status, so refer to the checks done in anim_filter.c
* skip_fcurve_selected_data() for reference about what's going on here...
/* major priority is selection status, so refer to the checks done in `anim_filter.cc`
* #skip_fcurve_selected_data() for reference about what's going on here.
*/
if (ELEM(nullptr, fcu, fcu->rna_path, owner_id)) {
return;

View File

@ -75,7 +75,7 @@ void ANIM_draw_cfra(const bContext *C, View2D *v2d, short flag)
/* *************************************************** */
/* PREVIEW RANGE 'CURTAINS' */
/* NOTE: 'Preview Range' tools are defined in `anim_ops.c`. */
/* NOTE: 'Preview Range' tools are defined in `anim_ops.cc`. */
void ANIM_draw_previewrange(const bContext *C, View2D *v2d, int end_frame_width)
{

View File

@ -99,7 +99,7 @@
/* ----------- Private Stuff - Action Editor ------------- */
/* Get shapekey data being edited (for Action Editor -> ShapeKey mode) */
/* NOTE: there's a similar function in key.c #BKE_key_from_object. */
/* NOTE: there's a similar function in `key.cc` #BKE_key_from_object. */
static Key *actedit_get_shapekeys(bAnimContext *ac)
{
Scene *scene = ac->scene;

View File

@ -14,7 +14,7 @@ extern "C" {
/* KeyingSets/Keyframing Interface ------------- */
/* list of builtin KeyingSets (defined in keyingsets.c) */
/** List of builtin KeyingSets (defined in `keyingsets.cc`). */
extern ListBase builtin_keyingsets;
/* Operator Define Prototypes ------------------- */

View File

@ -133,7 +133,7 @@ void POSE_OT_bone_layers(struct wmOperatorType *ot);
/** \name Pose Tool Utilities (for PoseLib, Pose Sliding, etc.)
* \{ */
/* pose_utils.c */
/* `pose_utils.cc` */
/* Temporary data linking PoseChannels with the F-Curves they affect */
typedef struct tPChanFCurveLink {
@ -206,7 +206,7 @@ LinkData *poseAnim_mapping_getNextFCurve(ListBase *fcuLinks, LinkData *prev, con
/** \name PoseLib
* \{ */
/* pose_lib_2.c */
/* `pose_lib_2.cc` */
void POSELIB_OT_apply_pose_asset(struct wmOperatorType *ot);
void POSELIB_OT_blend_pose_asset(struct wmOperatorType *ot);
@ -217,7 +217,7 @@ void POSELIB_OT_blend_pose_asset(struct wmOperatorType *ot);
/** \name Pose Sliding Tools
* \{ */
/* pose_slide.c */
/* `pose_slide.cc` */
void POSE_OT_push(struct wmOperatorType *ot);
void POSE_OT_relax(struct wmOperatorType *ot);

View File

@ -7,8 +7,9 @@
*
* Abstractions to manage runtime asset lists with a global cache for multiple UI elements to
* access.
* Internally this uses the #FileList API and structures from `filelist.c`. This is just because it
* contains most necessary logic already and there's not much time for a more long-term solution.
* Internally this uses the #FileList API and structures from `filelist.cc`.
* This is just because it contains most necessary logic already and
* there's not much time for a more long-term solution.
*/
#include <optional>

View File

@ -20,7 +20,7 @@ struct wmOperatorType;
extern "C" {
#endif
/* editfont.c */
/* `editfont.cc` */
enum {
DEL_NEXT_CHAR,
@ -103,7 +103,7 @@ void FONT_OT_unlink(struct wmOperatorType *ot);
void FONT_OT_textbox_add(struct wmOperatorType *ot);
void FONT_OT_textbox_remove(struct wmOperatorType *ot);
/* editcurve.c */
/* `editcurve.cc` */
void CURVE_OT_hide(struct wmOperatorType *ot);
void CURVE_OT_reveal(struct wmOperatorType *ot);
@ -144,7 +144,7 @@ void CURVE_OT_match_texture_space(struct wmOperatorType *ot);
struct GHash *ED_curve_keyindex_hash_duplicate(struct GHash *keyindex);
void ED_curve_keyindex_update_nurb(struct EditNurb *editnurb, struct Nurb *nu, struct Nurb *newnu);
/* exported for editcurve_pen.c */
/* exported for `editcurve_pen.cc` */
int ed_editcurve_addvert(Curve *cu, EditNurb *editnurb, View3D *v3d, const float location_init[3]);
bool curve_toggle_cyclic(View3D *v3d, ListBase *editnurb, int direction);
@ -174,7 +174,7 @@ bool ed_editnurb_spin(float viewmat[4][4],
const float axis[3],
const float cent[3]);
/* editcurve_select.c */
/* `editcurve_select.cc` */
void CURVE_OT_de_select_first(struct wmOperatorType *ot);
void CURVE_OT_de_select_last(struct wmOperatorType *ot);
@ -191,7 +191,7 @@ void CURVE_OT_select_nth(struct wmOperatorType *ot);
void CURVE_OT_select_similar(struct wmOperatorType *ot);
void CURVE_OT_shortest_path_pick(struct wmOperatorType *ot);
/* editcurve_add.c */
/* `editcurve_add.cc` */
void CURVE_OT_primitive_bezier_curve_add(struct wmOperatorType *ot);
void CURVE_OT_primitive_bezier_circle_add(struct wmOperatorType *ot);
@ -206,7 +206,7 @@ void SURFACE_OT_primitive_nurbs_surface_cylinder_add(struct wmOperatorType *ot);
void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot);
void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot);
/* editcurve_query.c */
/* `editcurve_query.cc` */
bool ED_curve_pick_vert(struct ViewContext *vc,
short sel,
@ -232,11 +232,11 @@ bool ED_curve_pick_vert_ex(struct ViewContext *vc,
void ED_curve_nurb_vert_selected_find(
Curve *cu, View3D *v3d, Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp);
/* editcurve_paint.c */
/* `editcurve_paint.cc` */
void CURVE_OT_draw(struct wmOperatorType *ot);
/* editcurve_pen.c */
/* `editcurve_pen.cc` */
void CURVE_OT_pen(struct wmOperatorType *ot);
struct wmKeyMap *curve_pen_modal_keymap(struct wmKeyConfig *keyconf);

View File

@ -8,7 +8,7 @@
#include "../gizmo_geometry.h"
/* The numerical values in the `verts` array are used in arrow3d_gizmo.c
/* The numerical values in the `verts` array are used in `arrow3d_gizmo.cc`
* If you change this mesh geometry, update the selection code also. */
static float verts[][3] = {
{-0.000000, 0.012320, 0.000000}, {-0.000000, 0.012320, 0.974306},

View File

@ -17,7 +17,7 @@ extern "C" {
#define DIAL_RESOLUTION 48
/**
* Data for common interactions. Used in gizmo_library_utils.c functions.
* Data for common interactions. Used in `gizmo_library_utils.cc` functions.
*/
typedef struct GizmoCommonData {
float range_fac; /* factor for arrow min/max distance */

View File

@ -49,7 +49,7 @@
#include "../gizmo_geometry.h"
#include "../gizmo_library_intern.h"
/* to use custom arrows exported to geom_arrow_gizmo.c */
// /** To use custom arrows exported to `geom_arrow_gizmo.cc`. */
// #define USE_GIZMO_CUSTOM_ARROWS
/* Margin to add when selecting the arrow. */
@ -269,7 +269,7 @@ static void gizmo_arrow_draw(const bContext * /*C*/, wmGizmo *gz)
static int gizmo_arrow_test_select(bContext * /*C*/, wmGizmo *gz, const int mval[2])
{
/* This following values are based on manual inspection of `verts[]` defined in
* geom_arrow_gizmo.c */
* `geom_arrow_gizmo.cc`. */
const float head_center_z = (0.974306f + 1.268098f) / 2;
const float head_geo_x = 0.051304f;
const float stem_geo_x = 0.012320f;

View File

@ -44,7 +44,7 @@
#include "../gizmo_library_intern.h"
#define GIZMO_MARGIN_OFFSET_SCALE 1.5f
/* The same as in `draw_cache.c` */
/* The same as in `draw_cache.cc`. */
#define CIRCLE_RESOL 32
static int gizmo_cage2d_transform_flag_get(const wmGizmo *gz);

View File

@ -44,7 +44,7 @@
#include "../gizmo_geometry.h"
#include "../gizmo_library_intern.h"
/* To use custom dials exported to geom_dial_gizmo.c */
// /** To use custom dials exported to `geom_dial_gizmo.cc`. */
// #define USE_GIZMO_CUSTOM_DIAL
struct DialInteraction {

View File

@ -50,7 +50,7 @@ struct PropertyRNA;
* The following structs + function prototypes are used
* by these operators so that the operator code
* (in gpencil_<opname>.c) can communicate with the drawing
* code (in drawgpencil.c).
* code (in `drawgpencil.cc`).
*
* NOTE: All this is within the gpencil module, so nothing needs
* to be exported to other modules.
@ -105,7 +105,7 @@ void ED_gpencil_draw_fill(struct tGPDdraw *tgpw);
/* Internal API */
/* Stroke Coordinates API ------------------------------ */
/* gpencil_utils.c */
/* `gpencil_utils.cc` */
typedef struct GP_SpaceConversion {
struct Scene *scene;
@ -353,7 +353,7 @@ void gpencil_stroke_convertcoords_tpoint(struct Scene *scene,
float r_out[3]);
/* Poll Callbacks ------------------------------------ */
/* gpencil_utils.c */
/* `gpencil_utils.cc` */
/**
* Poll callback for adding data/layers - special.
@ -372,7 +372,7 @@ bool gpencil_brush_create_presets_poll(bContext *C);
int ED_gpencil_new_layer_dialog(bContext *C, wmOperator *op);
/* Copy/Paste Buffer --------------------------------- */
/* gpencil_edit.c */
/* `gpencil_edit.cc` */
/**
* list of #bGPDstroke instances

View File

@ -636,8 +636,7 @@ static bool gpencil_brush_push_apply(tGP_BrushEditData *gso,
static void gpencil_brush_calc_midpoint(tGP_BrushEditData *gso)
{
/* Convert mouse position to 3D space
* See: gpencil_paint.c :: gpencil_stroke_convertcoords()
*/
* See: `gpencil_paint.cc`, #gpencil_stroke_convertcoords(). */
RegionView3D *rv3d = static_cast<RegionView3D *>(gso->region->regiondata);
const float *rvec = gso->object->loc;
const float zfac = ED_view3d_calc_zfac(rv3d, rvec);
@ -2427,7 +2426,7 @@ static int gpencil_sculpt_brush_modal(bContext *C, wmOperator *op, const wmEvent
return OPERATOR_PASS_THROUGH;
/* Camera/View Gizmo's - Allowed. */
/* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */
/* See rationale in `gpencil_paint.cc`, #gpencil_draw_modal(). */
case EVT_PAD0:
case EVT_PAD1:
case EVT_PAD2:

View File

@ -1473,7 +1473,7 @@ void GPENCIL_OT_select_less(wmOperatorType *ot)
* Helper to check if a given stroke is within the area.
*
* \note Code here is adapted (i.e. copied directly)
* from gpencil_paint.c #gpencil_stroke_eraser_dostroke().
* from `gpencil_paint.cc` #gpencil_stroke_eraser_dostroke().
* It would be great to de-duplicate the logic here sometime, but that can wait.
*/
static bool gpencil_stroke_do_circle_sel(bGPdata *gpd,

View File

@ -1397,7 +1397,7 @@ static int gpencil_vertexpaint_brush_modal(bContext *C, wmOperator *op, const wm
return OPERATOR_PASS_THROUGH;
/* Camera/View Gizmo's - Allowed. */
/* (See rationale in gpencil_paint.c -> gpencil_draw_modal()) */
/* See rationale in `gpencil_paint.cc`, #gpencil_draw_modal(). */
case EVT_PAD0:
case EVT_PAD1:
case EVT_PAD2:

Some files were not shown because too many files have changed in this diff Show More