Skip to content

pyrender 0.1.45

Download JSON

  • PyPI https://pypi.org/project/pyrender/
    Repository https://github.com/mmatl/pyrender

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 1
        "Any" : 0
        "Untyped" : 872
    • 0.1% coverage
    • 0.1% coverage (strict)
    • 873 typable
      • 1 typed
      • 872 untyped
      • 0 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 9
        "classes" : 761
        "other" : 0
    • 3 functions (+0 overloads)
      • 6 parameters
    • 33 classes
      • 197 methods (+0 overloads)
        • 331 parameters
      • 135 properties
    • 22 modules
      • 0 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
pyrender.camera 0.0% 0.0% 73 0
pyrender.constants 0.0% 0.0% 0 0
pyrender.font 0.0% 0.0% 37 0
pyrender.light 0.0% 0.0% 59 0
pyrender.material 0.0% 0.0% 118 0
pyrender.mesh 0.0% 0.0% 39 0
pyrender.node 0.0% 0.0% 57 0
pyrender.offscreen 0.0% 0.0% 20 0
pyrender.platforms.base 0.0% 0.0% 15 0
pyrender.platforms.egl 11.1% 11.1% 9 0
pyrender.platforms.osmesa 0.0% 0.0% 8 0
pyrender.platforms.pyglet_platform 0.0% 0.0% 8 0
pyrender.primitive 0.0% 0.0% 68 0
pyrender.renderer 0.0% 0.0% 105 0
pyrender.sampler 0.0% 0.0% 21 0
pyrender.scene 0.0% 0.0% 63 0
pyrender.shader_program 0.0% 0.0% 30 0
pyrender.texture 0.0% 0.0% 43 0
pyrender.trackball 0.0% 0.0% 19 0
pyrender.utils 0.0% 0.0% 9 0
pyrender.version 0.0% 0.0% 0 0
pyrender.viewer 0.0% 0.0% 72 0

Incomplete Annotations

pyrender.camera (73 missing, 0 any)

Symbol Typable Typed Any
meth Camera.init 4 0 0
meth Camera.get_projection_matrix 3 0 0
prop Camera.name 2 0 0
prop Camera.znear 2 0 0
prop Camera.zfar 2 0 0
attr Camera.name 1 0 0
attr Camera.znear 1 0 0
attr Camera.zfar 1 0 0
meth PerspectiveCamera.init 6 0 0
meth PerspectiveCamera.get_projection_matrix 3 0 0
prop PerspectiveCamera.yfov 2 0 0
prop PerspectiveCamera.zfar 2 0 0
prop PerspectiveCamera.aspectRatio 2 0 0
attr PerspectiveCamera.yfov 1 0 0
attr PerspectiveCamera.aspectRatio 1 0 0
meth IntrinsicsCamera.init 8 0 0
meth IntrinsicsCamera.get_projection_matrix 3 0 0
prop IntrinsicsCamera.fx 2 0 0
prop IntrinsicsCamera.fy 2 0 0
prop IntrinsicsCamera.cx 2 0 0
prop IntrinsicsCamera.cy 2 0 0
attr IntrinsicsCamera.fx 1 0 0
attr IntrinsicsCamera.fy 1 0 0
attr IntrinsicsCamera.cx 1 0 0
attr IntrinsicsCamera.cy 1 0 0
meth OrthographicCamera.init 6 0 0
meth OrthographicCamera.get_projection_matrix 3 0 0
prop OrthographicCamera.xmag 2 0 0
prop OrthographicCamera.ymag 2 0 0
prop OrthographicCamera.znear 2 0 0
attr OrthographicCamera.xmag 1 0 0
attr OrthographicCamera.ymag 1 0 0

pyrender.font (37 missing, 0 any)

Symbol Typable Typed Any
meth Font.init 3 0 0
meth Font._add_to_context 1 0 0
meth Font._remove_from_context 1 0 0
meth Font._in_context 1 0 0
meth Font._bind 1 0 0
meth Font._unbind 1 0 0
meth Font.delete 1 0 0
meth Font.render_string 6 0 0
prop Font.font_file 2 0 0
prop Font.font_pt 2 0 0
attr Font.font_file 1 0 0
attr Font.font_pt 1 0 0
meth Character.init 5 0 0
attr Character.texture 1 0 0
attr Character.size 1 0 0
attr Character.bearing 1 0 0
attr Character.advance 1 0 0
meth FontCache.init 2 0 0
meth FontCache.get_font 3 0 0
meth FontCache.clear 1 0 0
attr FontCache.font_dir 1 0 0

pyrender.light (59 missing, 0 any)

Symbol Typable Typed Any
meth Light.init 4 0 0
meth Light._generate_shadow_texture 2 0 0
meth Light._get_shadow_camera 2 0 0
prop Light.name 2 0 0
prop Light.color 2 0 0
prop Light.intensity 2 0 0
prop Light.shadow_texture 2 0 0
attr Light.name 1 0 0
attr Light.color 1 0 0
attr Light.intensity 1 0 0
meth PointLight.init 5 0 0
meth PointLight._generate_shadow_texture 2 0 0
meth PointLight._get_shadow_camera 2 0 0
prop PointLight.range 2 0 0
attr PointLight.range 1 0 0
meth SpotLight.init 7 0 0
meth SpotLight._generate_shadow_texture 2 0 0
meth SpotLight._get_shadow_camera 2 0 0
prop SpotLight.innerConeAngle 2 0 0
prop SpotLight.outerConeAngle 2 0 0
prop SpotLight.range 2 0 0
attr SpotLight.outerConeAngle 1 0 0
attr SpotLight.innerConeAngle 1 0 0
attr SpotLight.range 1 0 0
meth DirectionalLight.init 4 0 0
meth DirectionalLight._generate_shadow_texture 2 0 0
meth DirectionalLight._get_shadow_camera 2 0 0

pyrender.material (118 missing, 0 any)

Symbol Typable Typed Any
meth Material.init 11 0 0
meth Material._compute_transparency 1 0 0
meth Material._compute_tex_flags 1 0 0
meth Material._compute_textures 1 0 0
meth Material._format_texture 3 0 0
prop Material.name 2 0 0
prop Material.normalTexture 2 0 0
prop Material.occlusionTexture 2 0 0
prop Material.emissiveTexture 2 0 0
prop Material.emissiveFactor 2 0 0
prop Material.alphaMode 2 0 0
prop Material.alphaCutoff 2 0 0
prop Material.doubleSided 2 0 0
prop Material.smooth 2 0 0
prop Material.wireframe 2 0 0
prop Material.is_transparent 1 0 0
prop Material.tex_flags 1 0 0
prop Material.textures 1 0 0
attr Material.name 1 0 0
attr Material.normalTexture 1 0 0
attr Material.occlusionTexture 1 0 0
attr Material.emissiveTexture 1 0 0
attr Material.emissiveFactor 1 0 0
attr Material.alphaMode 1 0 0
attr Material.alphaCutoff 1 0 0
attr Material.doubleSided 1 0 0
attr Material.smooth 1 0 0
attr Material.wireframe 1 0 0
meth MetallicRoughnessMaterial.init 16 0 0
meth MetallicRoughnessMaterial._compute_tex_flags 1 0 0
meth MetallicRoughnessMaterial._compute_transparency 1 0 0
meth MetallicRoughnessMaterial._compute_textures 1 0 0
prop MetallicRoughnessMaterial.baseColorFactor 2 0 0
prop MetallicRoughnessMaterial.baseColorTexture 2 0 0
prop MetallicRoughnessMaterial.metallicFactor 2 0 0
prop MetallicRoughnessMaterial.roughnessFactor 2 0 0
prop MetallicRoughnessMaterial.metallicRoughnessTexture 2 0 0
attr MetallicRoughnessMaterial.baseColorFactor 1 0 0
attr MetallicRoughnessMaterial.baseColorTexture 1 0 0
attr MetallicRoughnessMaterial.metallicFactor 1 0 0
attr MetallicRoughnessMaterial.roughnessFactor 1 0 0
attr MetallicRoughnessMaterial.metallicRoughnessTexture 1 0 0
meth SpecularGlossinessMaterial.init 16 0 0
meth SpecularGlossinessMaterial._compute_tex_flags 1 0 0
meth SpecularGlossinessMaterial._compute_transparency 1 0 0
meth SpecularGlossinessMaterial._compute_textures 1 0 0
prop SpecularGlossinessMaterial.diffuseFactor 2 0 0
prop SpecularGlossinessMaterial.diffuseTexture 2 0 0
prop SpecularGlossinessMaterial.specularFactor 2 0 0
prop SpecularGlossinessMaterial.glossinessFactor 2 0 0
prop SpecularGlossinessMaterial.specularGlossinessTexture 2 0 0
attr SpecularGlossinessMaterial.diffuseFactor 1 0 0
attr SpecularGlossinessMaterial.diffuseTexture 1 0 0
attr SpecularGlossinessMaterial.specularFactor 1 0 0
attr SpecularGlossinessMaterial.glossinessFactor 1 0 0
attr SpecularGlossinessMaterial.specularGlossinessTexture 1 0 0

pyrender.mesh (39 missing, 0 any)

Symbol Typable Typed Any
meth Mesh.init 5 0 0
meth Mesh.from_points 6 0 0
meth Mesh.from_trimesh 7 0 0
meth Mesh._get_trimesh_props 4 0 0
prop Mesh.name 2 0 0
prop Mesh.primitives 2 0 0
prop Mesh.weights 2 0 0
prop Mesh.is_visible 2 0 0
prop Mesh.bounds 1 0 0
prop Mesh.centroid 1 0 0
prop Mesh.extents 1 0 0
prop Mesh.scale 1 0 0
prop Mesh.is_transparent 1 0 0
attr Mesh.primitives 1 0 0
attr Mesh.name 1 0 0
attr Mesh.weights 1 0 0
attr Mesh.is_visible 1 0 0

pyrender.node (57 missing, 0 any)

Symbol Typable Typed Any
meth Node.init 12 0 0
meth Node._t_from_m 2 0 0
meth Node._r_from_m 2 0 0
meth Node._q_from_m 2 0 0
meth Node._s_from_m 2 0 0
meth Node._r_from_q 2 0 0
meth Node._m_from_tqs 4 0 0
prop Node.name 2 0 0
prop Node.camera 2 0 0
prop Node.children 2 0 0
prop Node.skin 2 0 0
prop Node.mesh 2 0 0
prop Node.light 2 0 0
prop Node.rotation 2 0 0
prop Node.translation 2 0 0
prop Node.scale 2 0 0
prop Node.matrix 2 0 0
attr Node.name 1 0 0
attr Node.camera 1 0 0
attr Node.children 1 0 0
attr Node.skin 1 0 0
attr Node.mesh 1 0 0
attr Node.weights 1 0 0
attr Node.light 1 0 0
attr Node.rotation 1 0 0
attr Node.translation 1 0 0
attr Node.scale 1 0 0
attr Node.matrix 1 0 0

pyrender.offscreen (20 missing, 0 any)

Symbol Typable Typed Any
meth OffscreenRenderer.init 4 0 0
meth OffscreenRenderer.render 4 0 0
meth OffscreenRenderer.delete 1 0 0
meth OffscreenRenderer._create 1 0 0
meth OffscreenRenderer.del 1 0 0
prop OffscreenRenderer.viewport_width 2 0 0
prop OffscreenRenderer.viewport_height 2 0 0
prop OffscreenRenderer.point_size 2 0 0
attr OffscreenRenderer.viewport_width 1 0 0
attr OffscreenRenderer.viewport_height 1 0 0
attr OffscreenRenderer.point_size 1 0 0

pyrender.platforms.base (15 missing, 0 any)

Symbol Typable Typed Any
meth Platform.init 3 0 0
meth Platform.init_context 1 0 0
meth Platform.make_current 1 0 0
meth Platform.make_uncurrent 1 0 0
meth Platform.delete_context 1 0 0
meth Platform.supports_framebuffers 1 0 0
meth Platform.del 1 0 0
prop Platform.viewport_width 2 0 0
prop Platform.viewport_height 2 0 0
attr Platform.viewport_width 1 0 0
attr Platform.viewport_height 1 0 0

pyrender.platforms.egl (8 missing, 0 any)

Symbol Typable Typed Any
meth EGLPlatform.init 4 1 0
meth EGLPlatform.init_context 1 0 0
meth EGLPlatform.make_current 1 0 0
meth EGLPlatform.make_uncurrent 1 0 0
meth EGLPlatform.delete_context 1 0 0
meth EGLPlatform.supports_framebuffers 1 0 0

pyrender.platforms.osmesa (8 missing, 0 any)

Symbol Typable Typed Any
meth OSMesaPlatform.init 3 0 0
meth OSMesaPlatform.init_context 1 0 0
meth OSMesaPlatform.make_current 1 0 0
meth OSMesaPlatform.make_uncurrent 1 0 0
meth OSMesaPlatform.delete_context 1 0 0
meth OSMesaPlatform.supports_framebuffers 1 0 0

pyrender.platforms.pyglet_platform (8 missing, 0 any)

Symbol Typable Typed Any
meth PygletPlatform.init 3 0 0
meth PygletPlatform.init_context 1 0 0
meth PygletPlatform.make_current 1 0 0
meth PygletPlatform.make_uncurrent 1 0 0
meth PygletPlatform.delete_context 1 0 0
meth PygletPlatform.supports_framebuffers 1 0 0

pyrender.primitive (68 missing, 0 any)

Symbol Typable Typed Any
meth Primitive.init 14 0 0
meth Primitive.delete 1 0 0
meth Primitive._add_to_context 1 0 0
meth Primitive._remove_from_context 1 0 0
meth Primitive._in_context 1 0 0
meth Primitive._bind 1 0 0
meth Primitive._unbind 1 0 0
meth Primitive._compute_bounds 1 0 0
meth Primitive._compute_transparency 1 0 0
meth Primitive._compute_buf_flags 1 0 0
prop Primitive.positions 2 0 0
prop Primitive.normals 2 0 0
prop Primitive.tangents 2 0 0
prop Primitive.texcoord_0 2 0 0
prop Primitive.texcoord_1 2 0 0
prop Primitive.color_0 2 0 0
prop Primitive.joints_0 2 0 0
prop Primitive.weights_0 2 0 0
prop Primitive.indices 2 0 0
prop Primitive.material 2 0 0
prop Primitive.mode 2 0 0
prop Primitive.targets 2 0 0
prop Primitive.poses 2 0 0
prop Primitive.bounds 1 0 0
prop Primitive.centroid 1 0 0
prop Primitive.extents 1 0 0
prop Primitive.scale 1 0 0
prop Primitive.buf_flags 1 0 0
prop Primitive.is_transparent 1 0 0
attr Primitive.positions 1 0 0
attr Primitive.normals 1 0 0
attr Primitive.tangents 1 0 0
attr Primitive.texcoord_0 1 0 0
attr Primitive.texcoord_1 1 0 0
attr Primitive.color_0 1 0 0
attr Primitive.joints_0 1 0 0
attr Primitive.weights_0 1 0 0
attr Primitive.indices 1 0 0
attr Primitive.material 1 0 0
attr Primitive.mode 1 0 0
attr Primitive.targets 1 0 0
attr Primitive.poses 1 0 0

pyrender.renderer (105 missing, 0 any)

Symbol Typable Typed Any
meth Renderer.init 4 0 0
meth Renderer.render 4 0 0
meth Renderer.render_text 9 0 0
meth Renderer.read_color_buf 1 0 0
meth Renderer.read_depth_buf 1 0 0
meth Renderer.delete 1 0 0
meth Renderer.del 1 0 0
meth Renderer._forward_pass 4 0 0
meth Renderer._shadow_mapping_pass 4 0 0
meth Renderer._normals_pass 3 0 0
meth Renderer._bind_and_draw_primitive 5 0 0
meth Renderer._bind_lighting 5 0 0
meth Renderer._sorted_mesh_nodes 2 0 0
meth Renderer._sorted_nodes_by_distance 4 0 0
meth Renderer._update_context 3 0 0
meth Renderer._bind_texture 4 0 0
meth Renderer._get_next_active_texture 1 0 0
meth Renderer._reset_active_textures 1 0 0
meth Renderer._get_camera_matrices 2 0 0
meth Renderer._get_light_cam_matrices 4 0 0
meth Renderer._get_text_program 1 0 0
meth Renderer._compute_max_n_lights 2 0 0
meth Renderer._get_primitive_program 4 0 0
meth Renderer._configure_forward_pass_viewport 2 0 0
meth Renderer._configure_shadow_mapping_viewport 3 0 0
meth Renderer._configure_shadow_framebuffer 1 0 0
meth Renderer._delete_shadow_framebuffer 1 0 0
meth Renderer._configure_main_framebuffer 1 0 0
meth Renderer._delete_main_framebuffer 1 0 0
meth Renderer._read_main_framebuffer 3 0 0
meth Renderer._resize_image 3 0 0
meth Renderer._forward_pass_no_reset 3 0 0
meth Renderer._render_light_shadowmaps 5 0 0
meth Renderer._get_debug_quad_program 1 0 0
meth Renderer._render_debug_quad 1 0 0
prop Renderer.viewport_width 2 0 0
prop Renderer.viewport_height 2 0 0
prop Renderer.point_size 2 0 0
attr Renderer.dpscale 1 0 0
attr Renderer.viewport_width 1 0 0
attr Renderer.viewport_height 1 0 0
attr Renderer.point_size 1 0 0

pyrender.sampler (21 missing, 0 any)

Symbol Typable Typed Any
meth Sampler.init 6 0 0
prop Sampler.name 2 0 0
prop Sampler.magFilter 2 0 0
prop Sampler.minFilter 2 0 0
prop Sampler.wrapS 2 0 0
prop Sampler.wrapT 2 0 0
attr Sampler.name 1 0 0
attr Sampler.magFilter 1 0 0
attr Sampler.minFilter 1 0 0
attr Sampler.wrapS 1 0 0
attr Sampler.wrapT 1 0 0

pyrender.scene (63 missing, 0 any)

Symbol Typable Typed Any
meth Scene.init 5 0 0
meth Scene.add 6 0 0
meth Scene.get_nodes 5 0 0
meth Scene.add_node 3 0 0
meth Scene.has_node 2 0 0
meth Scene.remove_node 2 0 0
meth Scene.get_pose 2 0 0
meth Scene.set_pose 3 0 0
meth Scene.clear 1 0 0
meth Scene._remove_node 2 0 0
meth Scene.from_trimesh_scene 4 0 0
prop Scene.name 2 0 0
prop Scene.nodes 1 0 0
prop Scene.bg_color 2 0 0
prop Scene.ambient_light 2 0 0
prop Scene.meshes 1 0 0
prop Scene.mesh_nodes 1 0 0
prop Scene.lights 1 0 0
prop Scene.light_nodes 1 0 0
prop Scene.point_lights 1 0 0
prop Scene.point_light_nodes 1 0 0
prop Scene.spot_lights 1 0 0
prop Scene.spot_light_nodes 1 0 0
prop Scene.directional_lights 1 0 0
prop Scene.directional_light_nodes 1 0 0
prop Scene.cameras 1 0 0
prop Scene.camera_nodes 1 0 0
prop Scene.main_camera_node 2 0 0
prop Scene.bounds 1 0 0
prop Scene.centroid 1 0 0
prop Scene.extents 1 0 0
prop Scene.scale 1 0 0
attr Scene.bg_color 1 0 0
attr Scene.ambient_light 1 0 0
attr Scene.name 1 0 0

pyrender.shader_program (30 missing, 0 any)

Symbol Typable Typed Any
meth ShaderProgramCache.init 2 0 0
meth ShaderProgramCache.get_program 5 0 0
meth ShaderProgramCache.clear 1 0 0
attr ShaderProgramCache.shader_dir 1 0 0
meth ShaderProgram.init 5 0 0
meth ShaderProgram._add_to_context 1 0 0
meth ShaderProgram._in_context 1 0 0
meth ShaderProgram._remove_from_context 1 0 0
meth ShaderProgram._load 2 0 0
meth ShaderProgram._bind 1 0 0
meth ShaderProgram._unbind 1 0 0
meth ShaderProgram.delete 1 0 0
meth ShaderProgram.set_uniform 4 0 0
attr ShaderProgram.vertex_shader 1 0 0
attr ShaderProgram.fragment_shader 1 0 0
attr ShaderProgram.geometry_shader 1 0 0
attr ShaderProgram.defines 1 0 0

pyrender.texture (43 missing, 0 any)

Symbol Typable Typed Any
meth Texture.init 9 0 0
meth Texture.is_transparent 2 0 0
meth Texture.delete 1 0 0
meth Texture._add_to_context 1 0 0
meth Texture._remove_from_context 1 0 0
meth Texture._in_context 1 0 0
meth Texture._bind 1 0 0
meth Texture._unbind 1 0 0
meth Texture._bind_as_depth_attachment 1 0 0
meth Texture._bind_as_color_attachment 1 0 0
prop Texture.name 2 0 0
prop Texture.sampler 2 0 0
prop Texture.source 2 0 0
prop Texture.source_channels 2 0 0
prop Texture.width 2 0 0
prop Texture.height 2 0 0
prop Texture.tex_type 2 0 0
prop Texture.data_format 2 0 0
attr Texture.source_channels 1 0 0
attr Texture.name 1 0 0
attr Texture.sampler 1 0 0
attr Texture.source 1 0 0
attr Texture.width 1 0 0
attr Texture.height 1 0 0
attr Texture.tex_type 1 0 0
attr Texture.data_format 1 0 0

pyrender.trackball (19 missing, 0 any)

Symbol Typable Typed Any
meth Trackball.init 5 0 0
meth Trackball.set_state 2 0 0
meth Trackball.resize 2 0 0
meth Trackball.down 2 0 0
meth Trackball.drag 2 0 0
meth Trackball.scroll 2 0 0
meth Trackball.rotate 3 0 0
prop Trackball.pose 1 0 0

pyrender.utils (9 missing, 0 any)

Symbol Typable Typed Any
func format_texture_source 3 0 0
func format_color_vector 3 0 0
func format_color_array 3 0 0

pyrender.viewer (72 missing, 0 any)

Symbol Typable Typed Any
meth Viewer.init 8 0 0
meth Viewer.close_external 1 0 0
meth Viewer.save_gif 2 0 0
meth Viewer.on_close 1 0 0
meth Viewer.on_draw 1 0 0
meth Viewer.on_resize 3 0 0
meth Viewer.on_mouse_press 5 0 0
meth Viewer.on_mouse_drag 7 0 0
meth Viewer.on_mouse_release 5 0 0
meth Viewer.on_mouse_scroll 5 0 0
meth Viewer.on_key_press 3 0 0
meth Viewer._time_event 3 0 0
meth Viewer._reset_view 1 0 0
meth Viewer._get_save_filename 2 0 0
meth Viewer._save_image 1 0 0
meth Viewer._record 1 0 0
meth Viewer._rotate 1 0 0
meth Viewer._render 1 0 0
meth Viewer._init_and_start_app 1 0 0
meth Viewer._compute_initial_camera_pose 1 0 0
meth Viewer._create_raymond_lights 1 0 0
meth Viewer._create_direct_light 1 0 0
meth Viewer._set_axes 3 0 0
meth Viewer._remove_axes 1 0 0
meth Viewer._location_to_x_y 2 0 0
prop Viewer.scene 1 0 0
prop Viewer.viewport_size 1 0 0
prop Viewer.render_lock 1 0 0
prop Viewer.is_active 1 0 0
prop Viewer.run_in_thread 1 0 0
prop Viewer.render_flags 2 0 0
prop Viewer.viewer_flags 2 0 0
prop Viewer.registered_keys 2 0 0

Type-Ignore Comments

No type-ignore comments.