diff --git a/.vscode/PythonImportHelper-v2-Completion.json b/.vscode/PythonImportHelper-v2-Completion.json index 63ba044..3509097 100644 --- a/.vscode/PythonImportHelper-v2-Completion.json +++ b/.vscode/PythonImportHelper-v2-Completion.json @@ -52,12 +52,11 @@ "documentation": {} }, { - "label": "glpy", - "kind": 6, + "label": "*", + "importPath": "glpy.tests", + "description": "glpy.tests", "isExtraImport": true, - "importPath": "glpy", - "description": "glpy", - "detail": "glpy", + "detail": "glpy.tests", "documentation": {} }, { @@ -142,11 +141,20 @@ "documentation": {} }, { - "label": "glfw_window", + "label": "glfw_shader", "kind": 2, "importPath": "src.glpy.tests", "description": "src.glpy.tests", - "peekOfCode": "def glfw_window(width:int,height:int,title:str)->int:...\ndef glfw_black_window(width:int,height:int,title:str)->int:...", + "peekOfCode": "def glfw_shader(width:int,height:int,title:str)->int:...\ndef glfw_basic_triangle(width:int,height:int,title:str)->int:...\ndef glfw_black_window(width:int,height:int,title:str)->int:...", + "detail": "src.glpy.tests", + "documentation": {} + }, + { + "label": "glfw_basic_triangle", + "kind": 2, + "importPath": "src.glpy.tests", + "description": "src.glpy.tests", + "peekOfCode": "def glfw_basic_triangle(width:int,height:int,title:str)->int:...\ndef glfw_black_window(width:int,height:int,title:str)->int:...", "detail": "src.glpy.tests", "documentation": {} }, diff --git a/src/glpy.cp312-win_amd64.pyd b/src/glpy.cp312-win_amd64.pyd index 72e7e85..85d1f3f 100644 Binary files a/src/glpy.cp312-win_amd64.pyd and b/src/glpy.cp312-win_amd64.pyd differ diff --git a/src/glpy/tests.py b/src/glpy/tests.py index e907249..95196c2 100644 --- a/src/glpy/tests.py +++ b/src/glpy/tests.py @@ -1,3 +1,5 @@ -def glfw_window(width:int,height:int,title:str)->int:... +def glfw_shader(width:int,height:int,title:str)->int:... + +def glfw_basic_triangle(width:int,height:int,title:str)->int:... def glfw_black_window(width:int,height:int,title:str)->int:... \ No newline at end of file diff --git a/src/main.py b/src/main.py index c4d2c1b..34cf2b5 100644 --- a/src/main.py +++ b/src/main.py @@ -1,8 +1,8 @@ from pydoc import doc -import glpy as gl +from glpy.tests import * -print(gl.tests.glfw_black_window(500,500,"Hello world")) +# print(gl.tests.glfw_black_window(500,500,"Hello world")) -print(gl.tests.glfw_window(width=500,height=500,title="I'm Zengtudor")) +print(glfw_basic_triangle(width=700,height=500,title="I'm Zengtudor"))