Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed May 29, 2024
1 parent 1ed9711 commit e57d16b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 27 deletions.
4 changes: 1 addition & 3 deletions Sources/vger/Interval.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef Interval_h
#define Interval_h
#pragma once

struct Interval {

Expand All @@ -20,4 +19,3 @@ struct Interval {

};

#endif /* Interval_h */
5 changes: 1 addition & 4 deletions Sources/vger/bezier.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef bezier_h
#define bezier_h
#pragma once

#include <simd/simd.h>
using namespace simd;
Expand All @@ -20,5 +19,3 @@ void approx_cubic(float2 b[4], float2 q[6]) {
q[2] = q[3] = simd_mix(q[1], q[4], 0.5);

}

#endif /* bezier_h */
5 changes: 1 addition & 4 deletions Sources/vger/metal_compat.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef metal_compat_h
#define metal_compat_h
#pragma once

#ifdef __METAL_VERSION__
#define DEVICE device
Expand Down Expand Up @@ -43,5 +42,3 @@ inline float2 mix(float2 a, float2 b, float t) {
}

#endif

#endif /* metal_compat_h */
5 changes: 1 addition & 4 deletions Sources/vger/paint.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef paint_h
#define paint_h
#pragma once

#include "metal_compat.h"

Expand Down Expand Up @@ -39,5 +38,3 @@ inline float4 applyPaint(const DEVICE vgerPaint& paint, float2 p) {
#endif

}

#endif /* paint_h */
5 changes: 1 addition & 4 deletions Sources/vger/prim.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef prim_h
#define prim_h
#pragma once

/// VGER supports simple primitive types.
typedef enum {
Expand Down Expand Up @@ -75,5 +74,3 @@ typedef struct {
vector_float2 texBounds[2];

} vgerPrim;

#endif /* prim_h */
5 changes: 1 addition & 4 deletions Sources/vger/sdf.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef sdf_h
#define sdf_h
#pragma once

#include "metal_compat.h"
#include "prim.h"
Expand Down Expand Up @@ -491,5 +490,3 @@ inline bool bezierTest(float2 p, float2 A, float2 B, float2 C) {
return u*u < v;

}

#endif /* sdf_h */
5 changes: 1 addition & 4 deletions Sources/vger/vger_private.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright © 2021 Audulus LLC. All rights reserved.

#ifndef vger_private_h
#define vger_private_h
#pragma once

#include <string>
#include <vector>
Expand Down Expand Up @@ -237,5 +236,3 @@ inline vgerPaint makeImagePattern(float2 origin,

return p;
}

#endif /* vger_private_h */

0 comments on commit e57d16b

Please sign in to comment.