diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 06:44:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-21 07:27:35 +0300 |
commit | 93c19a5a2cf58b75aa3072ce79de5e5d571f3d55 (patch) | |
tree | 832c780931025206ac043340e9b39af6d804e425 /source/blender/draw/intern | |
parent | 9d72efe108cb5819d07e524f311f613d002d3b61 (diff) |
Cleanup: comments (mainly long lines)
Comments after code can cause awkward line breaks.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_manager.h | 17 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 6 |
2 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h index f9ed5a864df..a70438a2d37 100644 --- a/source/blender/draw/intern/draw_manager.h +++ b/source/blender/draw/intern/draw_manager.h @@ -253,10 +253,12 @@ struct DRWShadingGroup { }; }; - DRWState state_extra; /* State changes for this batch only (or'd with the pass's state) */ - DRWState - state_extra_disable; /* State changes for this batch only (and'd with the pass's state) */ - uint stencil_mask; /* Stencil mask to use for stencil test / write operations */ + /** State changes for this batch only (or'd with the pass's state) */ + DRWState state_extra; + /** State changes for this batch only (and'd with the pass's state) */ + DRWState state_extra_disable; + /** Stencil mask to use for stencil test / write operations */ + uint stencil_mask; DRWShadingGroupType type; /* Builtin matrices locations */ @@ -395,10 +397,11 @@ typedef struct DRWManager { /* gl_context serves as the offset for clearing only * the top portion of the struct so DO NOT MOVE IT! */ - void *gl_context; /* Unique ghost context used by the draw manager. */ + /** Unique ghost context used by the draw manager. */ + void *gl_context; GPUContext *gpu_context; - TicketMutex - *gl_context_mutex; /* Mutex to lock the drw manager and avoid concurrent context usage. */ + /** Mutex to lock the drw manager and avoid concurrent context usage. */ + TicketMutex *gl_context_mutex; /** GPU Resource State: Memory storage between drawing. */ struct { diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 15e7c2389b8..c5e3ecd0752 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -617,9 +617,9 @@ static void draw_clipping_setup_from_view(void) float F = -1.0f, N; /* square distance of far and near point to origin */ float f, n; /* distance of far and near point to z axis. f is always > 0 but n can be < 0 */ float e, s; /* far and near clipping distance (<0) */ - float - c; /* slope of center line = distance of far clipping center to z axis / far clipping distance */ - float z; /* projection of sphere center on z axis (<0) */ + float c; /* slope of center line = distance of far clipping center + * to z axis / far clipping distance. */ + float z; /* projection of sphere center on z axis (<0) */ /* Find farthest corner and center of far clip plane. */ float corner[3] = {1.0f, 1.0f, 1.0f}; /* in clip space */ |