This commit is contained in:
ZtRXR 2024-06-29 17:33:00 +08:00
parent e08642bc0b
commit e4be55d72f
4 changed files with 21 additions and 11 deletions

View File

@ -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": {}
},

Binary file not shown.

View File

@ -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:...

View File

@ -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"))