summaryrefslogtreecommitdiff
path: root/src/include/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/main.h')
-rw-r--r--src/include/main.h50
1 files changed, 39 insertions, 11 deletions
diff --git a/src/include/main.h b/src/include/main.h
index e1d1787..1f04d41 100644
--- a/src/include/main.h
+++ b/src/include/main.h
@@ -192,6 +192,16 @@ struct render_queue_item
v2 Pos;
};
+struct layer_transforms
+{
+ real32 x;
+ real32 y;
+ real32 ax;
+ real32 ay;
+ real32 rotation;
+ real32 scale;
+};
+
struct render_queue
{
uint16 Playhead;
@@ -387,6 +397,33 @@ struct gl_effect_layer {
uint32 Stencil_Renderbuffer;
};
+struct gl_data
+{
+ int Type;
+ void *StrokeData;
+ uint32 StrokeCount;
+ v4 StrokeCol;
+ void *FillData;
+ uint32 FillCount;
+ v4 FillCol;
+ layer_transforms T;
+ real32 Width;
+ real32 Height;
+ int RenderMode;
+};
+
+struct gl_viewport_data
+{
+ ImVec2 ViewportSize;
+ int Width;
+ int Height;
+ int BytesPerPixel;
+ ImVec2 UIPos;
+ ImVec2 UIZoom;
+ real32 UIScale;
+ gl_data *LayerEntry[MAX_LAYERS];
+ int LayerCount;
+};
enum effect_display_type
{
@@ -610,16 +647,6 @@ struct block_composition
int32 Frame_End;
};
-struct layer_transforms
-{
- real32 x;
- real32 y;
- real32 ax;
- real32 ay;
- real32 rotation;
- real32 scale;
-};
-
enum source_type {
source_type_none,
source_type_principal,
@@ -710,8 +737,9 @@ struct block_layer {
};
};
- bool32 IsSelected;
bool32 IsVisible;
+ bool32 IsLocked;
+ bool32 IsSelected;
bool32 IsAdjustment;
// NOTE(fox): I use these in some places without calling