ncca-ngl 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/PKG-INFO +1 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/pyproject.toml +1 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/__main__.py +7 -7
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/lookatwidget.py +3 -3
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/rgbacolourwidget.py +9 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/rgbcolourwidget.py +3 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/transformwidget.py +4 -4
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/vec2widget.py +1 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/vec3widget.py +1 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/vec4widget.py +1 -1
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/LICENSE.txt +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/.ruff_cache/.gitignore +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/.ruff_cache/0.13.0/10564494386971134025 +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/.ruff_cache/0.13.0/7783445477288392980 +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/.ruff_cache/CACHEDIR.TAG +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/NGLDebug.log +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/Primitives.npz +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/buddah.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/bunny.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/cube.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/dodecahedron.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/dragon.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/football.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/icosahedron.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/octahedron.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/pack_arrays.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/teapot.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/tetrahedron.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/PrimData/troll.npy +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/__init__.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/abstract_vao.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/base_mesh.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/base_mesh.pyi +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/bbox.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/bezier_curve.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/first_person_camera.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/image.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/log.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/mat2.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/mat3.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/mat4.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/multi_buffer_vao.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/obj.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/plane.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/prim_data.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/primitives.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/pyside_event_handling_mixin.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/quaternion.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/random.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shader.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shader_lib.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shader_program.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/checker_fragment.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/checker_vertex.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/colour_fragment.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/colour_vertex.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/diffuse_fragment.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/diffuse_vertex.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/text_fragment.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/text_geometry.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/shaders/text_vertex.glsl +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/simple_index_vao.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/simple_vao.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/text.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/texture.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/transform.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/util.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vao_factory.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec2.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec2_array.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec3.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec3_array.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec4.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/vec4_array.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/NGLDebug.log +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/__init__.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/glsl/phong.frag +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/glsl/phong.vert +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/glsl/picking.frag +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/glsl/picking.vert +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/mat4widget.py +0 -0
- {ncca_ngl-0.3.1 → ncca_ngl-0.3.2}/src/ncca/ngl/widgets/transformation_widget.py +0 -0
|
@@ -21,7 +21,7 @@ class SimpleDialog(QDialog):
|
|
|
21
21
|
self.setMinimumWidth(200)
|
|
22
22
|
layout = QGridLayout()
|
|
23
23
|
|
|
24
|
-
self.vec2_widget = Vec2Widget("Vec2 Widget", Vec2(1, 2)
|
|
24
|
+
self.vec2_widget = Vec2Widget(self, "Vec2 Widget", Vec2(1, 2))
|
|
25
25
|
self.vec2_widget.set_x_range(-1, 1)
|
|
26
26
|
self.vec2_widget.set_y_range(-2, 2)
|
|
27
27
|
layout.addWidget(self.vec2_widget, 0, 0)
|
|
@@ -29,7 +29,7 @@ class SimpleDialog(QDialog):
|
|
|
29
29
|
layout.addWidget(self.vec2_label, 0, 1)
|
|
30
30
|
self.vec2_widget.valueChanged.connect(self._update_vec2)
|
|
31
31
|
|
|
32
|
-
self.vec3_widget = Vec3Widget("Vec3 Widget", Vec3(1, 2, 3)
|
|
32
|
+
self.vec3_widget = Vec3Widget(self, "Vec3 Widget", Vec3(1, 2, 3))
|
|
33
33
|
self.vec3_widget.set_y_range(-2, 2)
|
|
34
34
|
self.vec3_widget.set_z_range(-3, 3)
|
|
35
35
|
layout.addWidget(self.vec3_widget, 1, 0)
|
|
@@ -37,7 +37,7 @@ class SimpleDialog(QDialog):
|
|
|
37
37
|
layout.addWidget(self.vec3_label, 1, 1)
|
|
38
38
|
self.vec3_widget.valueChanged.connect(self._update_vec3)
|
|
39
39
|
|
|
40
|
-
self.vec4_widget = Vec4Widget("Vec4 Widget", Vec4(1, 2, 3, 1.0)
|
|
40
|
+
self.vec4_widget = Vec4Widget(self, "Vec4 Widget", Vec4(1, 2, 3, 1.0))
|
|
41
41
|
self.vec4_widget.set_y_range(-2, 2)
|
|
42
42
|
self.vec4_widget.set_z_range(-3, 3)
|
|
43
43
|
layout.addWidget(self.vec4_widget, 2, 0)
|
|
@@ -45,15 +45,15 @@ class SimpleDialog(QDialog):
|
|
|
45
45
|
layout.addWidget(self.vec4_label, 2, 1)
|
|
46
46
|
self.vec4_widget.valueChanged.connect(self._update_vec4)
|
|
47
47
|
|
|
48
|
-
self.transform_widget = TransformWidget("Transform Widget"
|
|
48
|
+
self.transform_widget = TransformWidget(self, "Transform Widget")
|
|
49
49
|
layout.addWidget(self.transform_widget, 3, 0)
|
|
50
50
|
|
|
51
|
-
self.lookat = LookAtWidget("Look At"
|
|
51
|
+
self.lookat = LookAtWidget(self, "Look At")
|
|
52
52
|
layout.addWidget(self.lookat, 4, 0)
|
|
53
53
|
|
|
54
|
-
self.rgb_colour_widget = RGBColourWidget("RGB Colour Widget", 1.0, 0.0, 0.0
|
|
54
|
+
self.rgb_colour_widget = RGBColourWidget(self, "RGB Colour Widget", 1.0, 0.0, 0.0)
|
|
55
55
|
layout.addWidget(self.rgb_colour_widget, 5, 0)
|
|
56
|
-
self.rgba_colour_widget = RGBAColourWidget("RGB Colour Widget", 1.0, 0.0, 0.0, 1.0
|
|
56
|
+
self.rgba_colour_widget = RGBAColourWidget(self, "RGB Colour Widget", 1.0, 0.0, 0.0, 1.0)
|
|
57
57
|
layout.addWidget(self.rgba_colour_widget, 6, 0)
|
|
58
58
|
|
|
59
59
|
self.setLayout(layout)
|
|
@@ -11,7 +11,7 @@ class LookAtWidget(QFrame):
|
|
|
11
11
|
|
|
12
12
|
valueChanged = Signal(Mat4)
|
|
13
13
|
|
|
14
|
-
def __init__(self, name: str, eye=Vec3(2, 2, 2), look=Vec3(0, 0, 0)
|
|
14
|
+
def __init__(self, parent: QWidget | None = None, name: str = "", eye=Vec3(2, 2, 2), look=Vec3(0, 0, 0)) -> None:
|
|
15
15
|
"""
|
|
16
16
|
Args:
|
|
17
17
|
name: The name of the widget.
|
|
@@ -38,8 +38,8 @@ class LookAtWidget(QFrame):
|
|
|
38
38
|
content_layout = QVBoxLayout(self._content_widget)
|
|
39
39
|
content_layout.setContentsMargins(0, 0, 0, 0)
|
|
40
40
|
|
|
41
|
-
self._eye = Vec3Widget("Eye", eye
|
|
42
|
-
self._look = Vec3Widget("Look", look
|
|
41
|
+
self._eye = Vec3Widget(self, "Eye", eye)
|
|
42
|
+
self._look = Vec3Widget(self, "Look", look)
|
|
43
43
|
self._up = QComboBox(self)
|
|
44
44
|
for v in ["y-up", "x-up", "z-up"]:
|
|
45
45
|
self._up.addItem(v)
|
|
@@ -22,7 +22,15 @@ class RGBAColourWidget(QFrame):
|
|
|
22
22
|
bValueChanged = Signal(float)
|
|
23
23
|
aValueChanged = Signal(float)
|
|
24
24
|
|
|
25
|
-
def __init__(
|
|
25
|
+
def __init__(
|
|
26
|
+
self,
|
|
27
|
+
parent: QWidget | None = None,
|
|
28
|
+
name: str = "",
|
|
29
|
+
r: float = 1.0,
|
|
30
|
+
g: float = 1.0,
|
|
31
|
+
b: float = 1.0,
|
|
32
|
+
a: float = 1.0,
|
|
33
|
+
) -> None:
|
|
26
34
|
"""
|
|
27
35
|
Args:
|
|
28
36
|
name: The name of the widget.
|
|
@@ -21,7 +21,9 @@ class RGBColourWidget(QFrame):
|
|
|
21
21
|
gValueChanged = Signal(float)
|
|
22
22
|
bValueChanged = Signal(float)
|
|
23
23
|
|
|
24
|
-
def __init__(
|
|
24
|
+
def __init__(
|
|
25
|
+
self, parent: QWidget | None = None, name: str = "", r: float = 1.0, g: float = 1.0, b: float = 1.0
|
|
26
|
+
) -> None:
|
|
25
27
|
"""
|
|
26
28
|
Args:
|
|
27
29
|
name: The name of the widget.
|
|
@@ -12,7 +12,7 @@ class TransformWidget(QFrame):
|
|
|
12
12
|
valueChanged = Signal(Mat4)
|
|
13
13
|
_rotation_order = ["xyz", "yzx", "zxy", "xzy", "yxz", "zyx"]
|
|
14
14
|
|
|
15
|
-
def __init__(self,
|
|
15
|
+
def __init__(self, parent: QWidget | None = None, name: str = "") -> None:
|
|
16
16
|
"""
|
|
17
17
|
Args:
|
|
18
18
|
name: The name of the widget.
|
|
@@ -39,9 +39,9 @@ class TransformWidget(QFrame):
|
|
|
39
39
|
content_layout = QVBoxLayout(self._content_widget)
|
|
40
40
|
content_layout.setContentsMargins(0, 0, 0, 0)
|
|
41
41
|
|
|
42
|
-
self._position = Vec3Widget("Position", Vec3(0.0, 0.0, 0.0)
|
|
43
|
-
self._rotation = Vec3Widget("Rotation", Vec3(0.0, 0.0, 0.0)
|
|
44
|
-
self._scale = Vec3Widget("Scale", Vec3(1.0, 1.0, 1.0)
|
|
42
|
+
self._position = Vec3Widget(self, "Position", Vec3(0.0, 0.0, 0.0))
|
|
43
|
+
self._rotation = Vec3Widget(self, "Rotation", Vec3(0.0, 0.0, 0.0))
|
|
44
|
+
self._scale = Vec3Widget(self, "Scale", Vec3(1.0, 1.0, 1.0))
|
|
45
45
|
self._rot_order = QComboBox(self)
|
|
46
46
|
for v in self._rotation_order:
|
|
47
47
|
self._rot_order.addItem(v)
|
|
@@ -11,7 +11,7 @@ class Vec2Widget(QFrame):
|
|
|
11
11
|
xValueChanged = Signal(float)
|
|
12
12
|
yValueChanged = Signal(float)
|
|
13
13
|
|
|
14
|
-
def __init__(self, name: str, value: Vec2 = Vec2(0.0, 0.0)
|
|
14
|
+
def __init__(self, parent: QWidget | None = None, name: str = "", value: Vec2 = Vec2(0.0, 0.0)) -> None:
|
|
15
15
|
"""
|
|
16
16
|
Args:
|
|
17
17
|
name: The name of the widget.
|
|
@@ -12,7 +12,7 @@ class Vec3Widget(QFrame):
|
|
|
12
12
|
yValueChanged = Signal(float)
|
|
13
13
|
zValueChanged = Signal(float)
|
|
14
14
|
|
|
15
|
-
def __init__(self, name: str, value: Vec3 = Vec3(0.0, 0.0, 0.0)
|
|
15
|
+
def __init__(self, parent: QWidget | None = None, name: str = "", value: Vec3 = Vec3(0.0, 0.0, 0.0)) -> None:
|
|
16
16
|
"""
|
|
17
17
|
Args:
|
|
18
18
|
name: The name of the widget.
|
|
@@ -13,7 +13,7 @@ class Vec4Widget(QFrame):
|
|
|
13
13
|
zValueChanged = Signal(float)
|
|
14
14
|
wValueChanged = Signal(float)
|
|
15
15
|
|
|
16
|
-
def __init__(self, name: str, value: Vec4 = Vec4(0.0, 0.0, 0.0, 1.0)
|
|
16
|
+
def __init__(self, parent: QWidget | None = None, name: str = "", value: Vec4 = Vec4(0.0, 0.0, 0.0, 1.0)) -> None:
|
|
17
17
|
"""
|
|
18
18
|
Args:
|
|
19
19
|
name: The name of the widget.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|