Skip to content

Commit

Permalink
further renaming of core packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Apr 14, 2024
1 parent be6b2bb commit fa5c57c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/rand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ There is a `//go:generate` comment directive in `main.go` that calls `gosl` on t

The generated files go into the `shaders/` subdirectory.

Ignore the type alignment checking errors about Uint2 and Vec2 not being an even multiple of 16 bytes -- we have put in the necessary padding.
Ignore the type alignment checking errors about Uint2 and Vector2 not being an even multiple of 16 bytes -- we have put in the necessary padding.

2 changes: 1 addition & 1 deletion slboolview/slboolview.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (v *BoolValue) Config() {
}

func (v *BoolValue) Update() {
npv := reflectx.NonPtrValue(v.Value)
npv := reflectx.NonPointerValue(v.Value)
sb, ok := npv.Interface().(slbool.Bool)
if ok {
v.Widget.SetChecked(sb.IsTrue())
Expand Down
2 changes: 1 addition & 1 deletion sledits.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ var Replaces = []Replace{
{[]byte("slrand."), []byte("Rand")},
{[]byte("sltype.U"), []byte("u")},
{[]byte("sltype.F"), []byte("f")},
{[]byte(".SetFromVec2("), []byte("=(")},
{[]byte(".SetFromVector2("), []byte("=(")},
{[]byte(".SetFrom2("), []byte("=(")},
{[]byte(".IsTrue()"), []byte("==1")},
{[]byte(".IsFalse()"), []byte("==0")},
Expand Down
6 changes: 3 additions & 3 deletions sltype/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import "cogentcore.org/core/math32"
type Float = float32

// Float2 is a length 2 vector of float32
type Float2 = math32.Vec2
type Float2 = math32.Vector2

// Float3 is a length 3 vector of float32
type Float3 = math32.Vec3
type Float3 = math32.Vector3

// Float4 is a length 4 vector of float32
type Float4 = math32.Vec4
type Float4 = math32.Vector4
4 changes: 2 additions & 2 deletions sltype/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import "cogentcore.org/core/math32"
type Int = int32

// Int2 is a length 2 vector of int32
type Int2 = math32.Vec2i
type Int2 = math32.Vector2i

// Int3 is a length 3 vector of int32
type Int3 = math32.Vec3i
type Int3 = math32.Vector3i

// Int4 is a length 4 vector of int32
type Int4 struct {
Expand Down

0 comments on commit fa5c57c

Please sign in to comment.