diff options
Diffstat (limited to 'src/include/layer.h')
-rw-r--r-- | src/include/layer.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/include/layer.h b/src/include/layer.h new file mode 100644 index 0000000..85d980d --- /dev/null +++ b/src/include/layer.h @@ -0,0 +1,50 @@ +static block_layer * +Layer_Init(project_data *File, memory *Memory); + +static void +Layer_Delete(project_data *File, project_state *State, memory *Memory, uint32 Index); + +static layer_transforms +Layer_GetTransforms(block_layer *Layer); + +static int +Layer_GetTopOffset(project_data *File, memory *Memory); + +static void +Layer_UpdateMasksEffects(project_state *State, block_layer *Layer, memory *Memory, void *EffectBitmapAddress, + int Width, int Height, int BytesPerPixel); + +static void +Layer_ToggleChannel(project_data *File, memory *Memory, int32 a); + +static void +Layer_Select(memory *Memory, project_state *State, int32 i); + +static void +Layer_Select_RecurseUp(memory *Memory, project_state *State, int32 i, int16 RecursionIdx[MAX_PRECOMP_RECURSIONS], uint32 Recursions); + +static void +Layer_DeselectAll(project_data *File, project_state *State, memory *Memory); + +static bool32 +Layer_LoopChannels(project_state *State, memory *Memory, sorted_property_array **SortedProperty, uint16 **SortedKeyframe, block_layer *Layer, + property_channel **Property, block_effect **EffectOut, int *h, int *c, int *p); + +static void +Layer_ToggleAllChannels(project_state *State, memory *Memory, block_layer *Layer, + sorted_comp_array *SortedCompStart, sorted_layer_array *SortedLayerStart, + sorted_property_array *SortedPropertyStart, uint16 *SortedKeyframeArray); + +static void +Layer_Select_Traverse(uint16 PrincipalCompIndex, memory *Memory, project_state *State, int32 IndexToFind, sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray, + int16 RecursionIdx[MAX_PRECOMP_RECURSIONS], int32 *Recursions); + +static v2 +Layer_TraverseForPoint(project_data *File, project_state *State, memory *Memory, v2 PrincipalCompUV, sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray); + +static int32 +Layer_TestSelection(memory *Memory, project_state *State, ui *UI, sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray, uint16 PrincipalIndex); + +static void +Layer_RecursiveDeselect(memory *Memory, sorted_comp_array *SortedCompArray, sorted_layer_array *SortedLayerArray, uint16 TargetIndex, uint16 PrincipalIndex); + |