simvx.graphics._types¶
Shared constants, numpy dtypes, and enums for SimVX Graphics.
Module Contents¶
Classes¶
Opaque handle to a registered GPU mesh. |
|
Viewport configuration for rendering. |
|
Material feature bitmask — matches shader #defines. |
Data¶
API¶
- simvx.graphics._types.__all__¶
[‘Feature’, ‘MeshHandle’, ‘Viewport’, ‘VERTEX_DTYPE’, ‘TRANSFORM_DTYPE’, ‘MATERIAL_DTYPE’, ‘INDIRECT…
- simvx.graphics._types.SHADER_DIR¶
None
- simvx.graphics._types.UI_VERTEX_STRIDE¶
32
- simvx.graphics._types.ALPHA_OPAQUE: int¶
0
- simvx.graphics._types.ALPHA_BLEND: int¶
1
- simvx.graphics._types.ALPHA_CUTOFF: int¶
2
- simvx.graphics._types.MAX_TEXTURES¶
4096
- simvx.graphics._types.MAX_LIGHTS¶
1024
- simvx.graphics._types.MAX_OBJECTS¶
65536
- simvx.graphics._types.FRAMES_IN_FLIGHT¶
2
- class simvx.graphics._types.MeshHandle¶
Bases:
typing.NamedTupleOpaque handle to a registered GPU mesh.
- id: int¶
None
- vertex_count: int¶
None
- index_count: int¶
None
- bounding_radius: float¶
None
- class simvx.graphics._types.Viewport¶
Viewport configuration for rendering.
- x: int¶
None
- y: int¶
None
- width: int¶
None
- height: int¶
None
- camera_view: numpy.ndarray¶
None
- camera_proj: numpy.ndarray¶
None
- render_target: Any | None¶
None
- class simvx.graphics._types.Feature¶
Bases:
enum.IntFlagMaterial feature bitmask — matches shader #defines.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- NONE¶
0
- HAS_ALBEDO¶
None
- HAS_NORMAL¶
None
- HAS_METALLIC_ROUGHNESS¶
None
- HAS_EMISSIVE¶
None
- HAS_AO¶
None
- HAS_EMISSIVE_COLOR¶
None
- __abs__()¶
- __add__()¶
- __and__()¶
- __bool__()¶
- __ceil__()¶
- __delattr__()¶
- __dir__()¶
- __divmod__()¶
- __eq__()¶
- __float__()¶
- __floor__()¶
- __floordiv__()¶
- __format__()¶
- __ge__()¶
- __getattribute__()¶
- __getnewargs__()¶
- __getstate__()¶
- __gt__()¶
- __hash__()¶
- __index__()¶
- __int__()¶
- __invert__()¶
- __le__()¶
- __lshift__()¶
- __lt__()¶
- __mod__()¶
- __mul__()¶
- __ne__()¶
- __neg__()¶
- __new__()¶
- __or__()¶
- __pos__()¶
- __pow__()¶
- __radd__()¶
- __rand__()¶
- __rdivmod__()¶
- __reduce__()¶
- __reduce_ex__()¶
- __repr__()¶
- __rfloordiv__()¶
- __rlshift__()¶
- __rmod__()¶
- __rmul__()¶
- __ror__()¶
- __round__()¶
- __rpow__()¶
- __rrshift__()¶
- __rshift__()¶
- __rsub__()¶
- __rtruediv__()¶
- __rxor__()¶
- __setattr__()¶
- __sizeof__()¶
- __str__()¶
- __sub__()¶
- __subclasshook__()¶
- __truediv__()¶
- __trunc__()¶
- __xor__()¶
- as_integer_ratio()¶
- bit_count()¶
- bit_length()¶
- conjugate()¶
- class denominator¶
- class imag¶
- is_integer()¶
- class numerator¶
- class real¶
- to_bytes()¶
- __deepcopy__(memo)¶
- __copy__()¶
- name()¶
- value()¶
- __contains__(other)¶
- __iter__()¶
- __len__()¶
- simvx.graphics._types.VERTEX_DTYPE¶
‘dtype(…)’
- simvx.graphics._types.TRANSFORM_DTYPE¶
‘dtype(…)’
- simvx.graphics._types.MATERIAL_DTYPE¶
‘dtype(…)’
- simvx.graphics._types.INDIRECT_DRAW_DTYPE¶
‘dtype(…)’
- simvx.graphics._types.LIGHT_DTYPE¶
‘dtype(…)’
- simvx.graphics._types.SKINNED_VERTEX_DTYPE¶
‘dtype(…)’