diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-10 21:24:03 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-10 21:24:03 -0400 |
commit | bc5375149c0ecb416848a2d3657ea41ae97177b3 (patch) | |
tree | 8868395241d523bb96ea90d2846cd6ffefcae766 /functions.h | |
parent | f1e12e108869c560d92eb8803e4b5104c7d8f85d (diff) |
path rasterization started with opengl
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.h b/functions.h index 89f8955..81f18ee 100644 --- a/functions.h +++ b/functions.h @@ -23,4 +23,12 @@ static cached_bitmap * AV_LoadVideoFrame(source *Source, memory *Memory, int32 T static cached_bitmap * Cache_CheckBitmap(source *Source, layer_bitmap_info *BitmapInfo, memory *Memory, int32 TimelineFrame); static void TestGL_InitTexture(gl_effect_layer *Test, void *Data, uint16 Width, uint16 Height); +static gl_effect TestGL_MaskInitVerts(mask Mask); +static void TestGL_InitVerts(); +static gl_vertex_shader TestGL_MaskUploadVerts(project_layer *Layer, mask *Mask); + +static v2 Line_RatioToPoint(v2 a, v2 b, float ratio); +static v2 ImGui_ScreenPointToCompUV(ImVec2 ViewportMin, ImVec2 CompPos, ImVec2 CompZoom, ImVec2 MousePos); + +void Bezier_CubicCalcPoints(v2 p1, v2 p2, v2 p3, v2 p4, void *Data, uint32 *Increment); |