PyGLM icon indicating copy to clipboard operation
PyGLM copied to clipboard

Trying to utilize glm.glm_typing

Open Wasserwecken opened this issue 2 years ago • 1 comments

I would like to reuse the defined types of the glm libary in my own methods. Because I dont want to loose the already defined type casts. But I am unable to import it correctly. Did I do something wrong or is it just locked?

Example one: image

Example two: image

Wasserwecken avatar Dec 16 '22 10:12 Wasserwecken

Hi there @Wasserwecken,

unfortunately, glm_typing is not currently available as a sub-package of glm. You can however use the following code for the time being:

import importlib
glm_typing = importlib.import_module("glm-stubs.glm_typing")

Zuzu-Typ avatar Dec 16 '22 12:12 Zuzu-Typ