11import mujoco ._structs
22import numpy
3- import numpy .typing
4- import typing
53from typing import overload
64
75class MjrContext :
8- auxColor : numpy .typing . NDArray [numpy .uint32 ]
9- auxColor_r : numpy .typing . NDArray [numpy .uint32 ]
10- auxFBO : numpy .typing . NDArray [numpy .uint32 ]
11- auxFBO_r : numpy .typing . NDArray [numpy .uint32 ]
12- auxHeight : numpy .typing . NDArray [numpy .int32 ]
13- auxSamples : numpy .typing . NDArray [numpy .int32 ]
14- auxWidth : numpy .typing . NDArray [numpy .int32 ]
6+ auxColor : numpy .ndarray [numpy .uint32 ]
7+ auxColor_r : numpy .ndarray [numpy .uint32 ]
8+ auxFBO : numpy .ndarray [numpy .uint32 ]
9+ auxFBO_r : numpy .ndarray [numpy .uint32 ]
10+ auxHeight : numpy .ndarray [numpy .int32 ]
11+ auxSamples : numpy .ndarray [numpy .int32 ]
12+ auxWidth : numpy .ndarray [numpy .int32 ]
1513 baseBuiltin : int
1614 baseFontBig : int
1715 baseFontNormal : int
@@ -21,18 +19,18 @@ class MjrContext:
2119 basePlane : int
2220 charHeight : int
2321 charHeightBig : int
24- charWidth : numpy .typing . NDArray [numpy .int32 ]
25- charWidthBig : numpy .typing . NDArray [numpy .int32 ]
22+ charWidth : numpy .ndarray [numpy .int32 ]
23+ charWidthBig : numpy .ndarray [numpy .int32 ]
2624 currentBuffer : int
2725 fogEnd : float
28- fogRGBA : numpy .typing . NDArray [numpy .float32 ]
26+ fogRGBA : numpy .ndarray [numpy .float32 ]
2927 fogStart : float
3028 fontScale : int
3129 glInitialized : int
3230 lineWidth : float
33- mat_texid : numpy .typing . NDArray [numpy .int32 ]
34- mat_texrepeat : numpy .typing . NDArray [numpy .float32 ]
35- mat_texuniform : numpy .typing . NDArray [numpy .int32 ]
31+ mat_texid : numpy .ndarray [numpy .int32 ]
32+ mat_texrepeat : numpy .ndarray [numpy .float32 ]
33+ mat_texuniform : numpy .ndarray [numpy .int32 ]
3634 ntexture : int
3735 offColor : int
3836 offColor_r : int
@@ -55,8 +53,8 @@ class MjrContext:
5553 shadowScale : float
5654 shadowSize : int
5755 shadowTex : int
58- texture : numpy .typing . NDArray [numpy .uint32 ]
59- textureType : numpy .typing . NDArray [numpy .int32 ]
56+ texture : numpy .ndarray [numpy .uint32 ]
57+ textureType : numpy .ndarray [numpy .int32 ]
6058 windowAvailable : int
6159 windowDoublebuffer : int
6260 windowSamples : int
@@ -68,16 +66,16 @@ class MjrContext:
6866
6967 1. __init__(self: mujoco._render.MjrContext) -> None
7068
71- 2. __init__(self: mujoco._render.MjrContext, arg0: mujoco._structs.MjModel, arg1: typing.SupportsInt ) -> None
69+ 2. __init__(self: mujoco._render.MjrContext, arg0: mujoco._structs.MjModel, arg1: int ) -> None
7270 """
7371 @overload
74- def __init__ (self , arg0 : mujoco ._structs .MjModel , arg1 : typing . SupportsInt ) -> None :
72+ def __init__ (self , arg0 : mujoco ._structs .MjModel , arg1 : int ) -> None :
7573 """__init__(*args, **kwargs)
7674 Overloaded function.
7775
7876 1. __init__(self: mujoco._render.MjrContext) -> None
7977
80- 2. __init__(self: mujoco._render.MjrContext, arg0: mujoco._structs.MjModel, arg1: typing.SupportsInt ) -> None
78+ 2. __init__(self: mujoco._render.MjrContext, arg0: mujoco._structs.MjModel, arg1: int ) -> None
8179 """
8280 def _pybind11_conduit_v1_ (self , * args , ** kwargs ): ...
8381 def free (self ) -> None :
@@ -86,28 +84,23 @@ class MjrContext:
8684 Frees resources in current active OpenGL context, sets struct to default.
8785 """
8886 @property
89- def nskin (self ) -> int :
90- """(arg0: mujoco._render.MjrContext) -> int"""
87+ def nskin (self ) -> int : ...
9188 @property
92- def skinfaceVBO (self ) -> tuple :
93- """(arg0: mujoco._render.MjrContext) -> tuple"""
89+ def skinfaceVBO (self ) -> tuple : ...
9490 @property
95- def skinnormalVBO (self ) -> tuple :
96- """(arg0: mujoco._render.MjrContext) -> tuple"""
91+ def skinnormalVBO (self ) -> tuple : ...
9792 @property
98- def skintexcoordVBO (self ) -> tuple :
99- """(arg0: mujoco._render.MjrContext) -> tuple"""
93+ def skintexcoordVBO (self ) -> tuple : ...
10094 @property
101- def skinvertVBO (self ) -> tuple :
102- """(arg0: mujoco._render.MjrContext) -> tuple"""
95+ def skinvertVBO (self ) -> tuple : ...
10396
10497class MjrRect :
10598 bottom : int
10699 height : int
107100 left : int
108101 width : int
109- def __init__ (self , left : typing . SupportsInt , bottom : typing . SupportsInt , width : typing . SupportsInt , height : typing . SupportsInt ) -> None :
110- """__init__(self: mujoco._render.MjrRect, left: typing.SupportsInt , bottom: typing.SupportsInt , width: typing.SupportsInt , height: typing.SupportsInt ) -> None"""
102+ def __init__ (self , left : int , bottom : int , width : int , height : int ) -> None :
103+ """__init__(self: mujoco._render.MjrRect, left: int , bottom: int , width: int , height: int ) -> None"""
111104 def _pybind11_conduit_v1_ (self , * args , ** kwargs ): ...
112105 def __copy__ (self ) -> MjrRect :
113106 """__copy__(self: mujoco._render.MjrRect) -> mujoco._render.MjrRect"""
@@ -116,38 +109,38 @@ class MjrRect:
116109 def __eq__ (self , arg0 : object ) -> bool :
117110 """__eq__(self: object, arg0: object) -> bool"""
118111
119- def mjr_addAux (index : typing . SupportsInt , width : typing . SupportsInt , height : typing . SupportsInt , samples : typing . SupportsInt , con : MjrContext ) -> None :
120- """mjr_addAux(index: typing.SupportsInt , width: typing.SupportsInt , height: typing.SupportsInt , samples: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
112+ def mjr_addAux (index : int , width : int , height : int , samples : int , con : MjrContext ) -> None :
113+ """mjr_addAux(index: int , width: int , height: int , samples: int , con: mujoco._render.MjrContext) -> None
121114
122115 Add Aux buffer with given index to context; free previous Aux buffer.
123116 """
124- def mjr_blitAux (index : typing . SupportsInt , src : MjrRect , left : typing . SupportsInt , bottom : typing . SupportsInt , con : MjrContext ) -> None :
125- """mjr_blitAux(index: typing.SupportsInt , src: mujoco._render.MjrRect, left: typing.SupportsInt , bottom: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
117+ def mjr_blitAux (index : int , src : MjrRect , left : int , bottom : int , con : MjrContext ) -> None :
118+ """mjr_blitAux(index: int , src: mujoco._render.MjrRect, left: int , bottom: int , con: mujoco._render.MjrContext) -> None
126119
127120 Blit from Aux buffer to con->currentBuffer.
128121 """
129- def mjr_blitBuffer (src : MjrRect , dst : MjrRect , flg_color : typing . SupportsInt , flg_depth : typing . SupportsInt , con : MjrContext ) -> None :
130- """mjr_blitBuffer(src: mujoco._render.MjrRect, dst: mujoco._render.MjrRect, flg_color: typing.SupportsInt , flg_depth: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
122+ def mjr_blitBuffer (src : MjrRect , dst : MjrRect , flg_color : int , flg_depth : int , con : MjrContext ) -> None :
123+ """mjr_blitBuffer(src: mujoco._render.MjrRect, dst: mujoco._render.MjrRect, flg_color: int , flg_depth: int , con: mujoco._render.MjrContext) -> None
131124
132125 Blit from src viewpoint in current framebuffer to dst viewport in other framebuffer. If src, dst have different size and flg_depth==0, color is interpolated with GL_LINEAR.
133126 """
134- def mjr_changeFont (fontscale : typing . SupportsInt , con : MjrContext ) -> None :
135- """mjr_changeFont(fontscale: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
127+ def mjr_changeFont (fontscale : int , con : MjrContext ) -> None :
128+ """mjr_changeFont(fontscale: int , con: mujoco._render.MjrContext) -> None
136129
137130 Change font of existing context.
138131 """
139- def mjr_drawPixels (rgb : typing . Annotated [ numpy .typing . NDArray [numpy .uint8 ], ' [m, 1]' ] | None , depth : typing . Annotated [ numpy .typing . NDArray [numpy .float32 ], ' [m, 1]' ] | None , viewport : MjrRect , con : MjrContext ) -> None :
140- ''' mjr_drawPixels(rgb: typing.Annotated [numpy.typing.NDArray [numpy.uint8], " [m, 1]"] | None , depth: typing.Annotated [numpy.typing.NDArray [numpy.float32], " [m, 1]"] | None , viewport: mujoco._render.MjrRect, con: mujoco._render.MjrContext) -> None
132+ def mjr_drawPixels (rgb : numpy .ndarray [numpy .uint8 [m , 1 ]] | None , depth : numpy .ndarray [numpy .float32 [m , 1 ]] | None , viewport : MjrRect , con : MjrContext ) -> None :
133+ """ mjr_drawPixels(rgb: Optional [numpy.ndarray [numpy.uint8[m, 1]]] , depth: Optional [numpy.ndarray [numpy.float32[m, 1]]] , viewport: mujoco._render.MjrRect, con: mujoco._render.MjrContext) -> None
141134
142135 Draw pixels from client buffer to current OpenGL framebuffer. Viewport is in OpenGL framebuffer; client buffer starts at (0,0).
143- '''
136+ """
144137def mjr_figure (viewport : MjrRect , fig : mujoco ._structs .MjvFigure , con : MjrContext ) -> None :
145138 """mjr_figure(viewport: mujoco._render.MjrRect, fig: mujoco._structs.MjvFigure, con: mujoco._render.MjrContext) -> None
146139
147140 Draw 2D figure.
148141 """
149- def mjr_findRect (x : typing . SupportsInt , y : typing . SupportsInt , nrect : typing . SupportsInt , rect : MjrRect ) -> int :
150- """mjr_findRect(x: typing.SupportsInt , y: typing.SupportsInt , nrect: typing.SupportsInt , rect: mujoco._render.MjrRect) -> int
142+ def mjr_findRect (x : int , y : int , nrect : int , rect : MjrRect ) -> int :
143+ """mjr_findRect(x: int , y: int , nrect: int , rect: mujoco._render.MjrRect) -> int
151144
152145 Find first rectangle containing mouse, -1: not found.
153146 """
@@ -161,8 +154,8 @@ def mjr_getError() -> int:
161154
162155 Call glGetError and return result.
163156 """
164- def mjr_label (viewport : MjrRect , font : typing . SupportsInt , txt : str , r : typing . SupportsFloat , g : typing . SupportsFloat , b : typing . SupportsFloat , a : typing . SupportsFloat , rt : typing . SupportsFloat , gt : typing . SupportsFloat , bt : typing . SupportsFloat , con : MjrContext ) -> None :
165- """mjr_label(viewport: mujoco._render.MjrRect, font: typing.SupportsInt , txt: str, r: typing.SupportsFloat , g: typing.SupportsFloat , b: typing.SupportsFloat , a: typing.SupportsFloat , rt: typing.SupportsFloat , gt: typing.SupportsFloat , bt: typing.SupportsFloat , con: mujoco._render.MjrContext) -> None
157+ def mjr_label (viewport : MjrRect , font : int , txt : str , r : float , g : float , b : float , a : float , rt : float , gt : float , bt : float , con : MjrContext ) -> None :
158+ """mjr_label(viewport: mujoco._render.MjrRect, font: int , txt: str, r: float , g: float , b: float , a: float , rt: float , gt: float , bt: float , con: mujoco._render.MjrContext) -> None
166159
167160 Draw rectangle with centered text.
168161 """
@@ -171,18 +164,18 @@ def mjr_maxViewport(con: MjrContext) -> MjrRect:
171164
172165 Get maximum viewport for active buffer.
173166 """
174- def mjr_overlay (font : typing . SupportsInt , gridpos : typing . SupportsInt , viewport : MjrRect , overlay : str , overlay2 : str , con : MjrContext ) -> None :
175- """mjr_overlay(font: typing.SupportsInt , gridpos: typing.SupportsInt , viewport: mujoco._render.MjrRect, overlay: str, overlay2: str, con: mujoco._render.MjrContext) -> None
167+ def mjr_overlay (font : int , gridpos : int , viewport : MjrRect , overlay : str , overlay2 : str , con : MjrContext ) -> None :
168+ """mjr_overlay(font: int , gridpos: int , viewport: mujoco._render.MjrRect, overlay: str, overlay2: str, con: mujoco._render.MjrContext) -> None
176169
177170 Draw text overlay; font is mjtFont; gridpos is mjtGridPos.
178171 """
179- def mjr_readPixels (rgb : typing . Annotated [numpy .typing . ArrayLike , numpy . uint8 ] | None , depth : typing . Annotated [ numpy .typing . ArrayLike , numpy .float32 ] | None , viewport : MjrRect , con : MjrContext ) -> None :
180- """mjr_readPixels(rgb: typing.Annotated [numpy.typing.ArrayLike, numpy.uint8] | None , depth: typing.Annotated [numpy.typing.ArrayLike, numpy.float32] | None , viewport: mujoco._render.MjrRect, con: mujoco._render.MjrContext) -> None
172+ def mjr_readPixels (rgb : numpy . ndarray [numpy .uint8 ] | None , depth : numpy .ndarray [ numpy .float32 ] | None , viewport : MjrRect , con : MjrContext ) -> None :
173+ """mjr_readPixels(rgb: Optional [numpy.ndarray[ numpy.uint8]] , depth: Optional [numpy.ndarray[ numpy.float32]] , viewport: mujoco._render.MjrRect, con: mujoco._render.MjrContext) -> None
181174
182175 Read pixels from current OpenGL framebuffer to client buffer. Viewport is in OpenGL framebuffer; client buffer starts at (0,0).
183176 """
184- def mjr_rectangle (viewport : MjrRect , r : typing . SupportsFloat , g : typing . SupportsFloat , b : typing . SupportsFloat , a : typing . SupportsFloat ) -> None :
185- """mjr_rectangle(viewport: mujoco._render.MjrRect, r: typing.SupportsFloat , g: typing.SupportsFloat , b: typing.SupportsFloat , a: typing.SupportsFloat ) -> None
177+ def mjr_rectangle (viewport : MjrRect , r : float , g : float , b : float , a : float ) -> None :
178+ """mjr_rectangle(viewport: mujoco._render.MjrRect, r: float , g: float , b: float , a: float ) -> None
186179
187180 Draw rectangle.
188181 """
@@ -191,8 +184,8 @@ def mjr_render(viewport: MjrRect, scn: mujoco._structs.MjvScene, con: MjrContext
191184
192185 Render 3D scene.
193186 """
194- def mjr_resizeOffscreen (width : typing . SupportsInt , height : typing . SupportsInt , con : MjrContext ) -> None :
195- """mjr_resizeOffscreen(width: typing.SupportsInt , height: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
187+ def mjr_resizeOffscreen (width : int , height : int , con : MjrContext ) -> None :
188+ """mjr_resizeOffscreen(width: int , height: int , con: mujoco._render.MjrContext) -> None
196189
197190 Resize offscreen buffers.
198191 """
@@ -201,33 +194,33 @@ def mjr_restoreBuffer(con: MjrContext) -> None:
201194
202195 Make con->currentBuffer current again.
203196 """
204- def mjr_setAux (index : typing . SupportsInt , con : MjrContext ) -> None :
205- """mjr_setAux(index: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
197+ def mjr_setAux (index : int , con : MjrContext ) -> None :
198+ """mjr_setAux(index: int , con: mujoco._render.MjrContext) -> None
206199
207200 Set Aux buffer for custom OpenGL rendering (call restoreBuffer when done).
208201 """
209- def mjr_setBuffer (framebuffer : typing . SupportsInt , con : MjrContext ) -> None :
210- """mjr_setBuffer(framebuffer: typing.SupportsInt , con: mujoco._render.MjrContext) -> None
202+ def mjr_setBuffer (framebuffer : int , con : MjrContext ) -> None :
203+ """mjr_setBuffer(framebuffer: int , con: mujoco._render.MjrContext) -> None
211204
212205 Set OpenGL framebuffer for rendering: mjFB_WINDOW or mjFB_OFFSCREEN. If only one buffer is available, set that buffer and ignore framebuffer argument.
213206 """
214- def mjr_text (font : typing . SupportsInt , txt : str , con : MjrContext , x : typing . SupportsFloat , y : typing . SupportsFloat , r : typing . SupportsFloat , g : typing . SupportsFloat , b : typing . SupportsFloat ) -> None :
215- """mjr_text(font: typing.SupportsInt , txt: str, con: mujoco._render.MjrContext, x: typing.SupportsFloat , y: typing.SupportsFloat , r: typing.SupportsFloat , g: typing.SupportsFloat , b: typing.SupportsFloat ) -> None
207+ def mjr_text (font : int , txt : str , con : MjrContext , x : float , y : float , r : float , g : float , b : float ) -> None :
208+ """mjr_text(font: int , txt: str, con: mujoco._render.MjrContext, x: float , y: float , r: float , g: float , b: float ) -> None
216209
217210 Draw text at (x,y) in relative coordinates; font is mjtFont.
218211 """
219- def mjr_uploadHField (m : mujoco ._structs .MjModel , con : MjrContext , hfieldid : typing . SupportsInt ) -> None :
220- """mjr_uploadHField(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, hfieldid: typing.SupportsInt ) -> None
212+ def mjr_uploadHField (m : mujoco ._structs .MjModel , con : MjrContext , hfieldid : int ) -> None :
213+ """mjr_uploadHField(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, hfieldid: int ) -> None
221214
222215 Upload height field to GPU, overwriting previous upload if any.
223216 """
224- def mjr_uploadMesh (m : mujoco ._structs .MjModel , con : MjrContext , meshid : typing . SupportsInt ) -> None :
225- """mjr_uploadMesh(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, meshid: typing.SupportsInt ) -> None
217+ def mjr_uploadMesh (m : mujoco ._structs .MjModel , con : MjrContext , meshid : int ) -> None :
218+ """mjr_uploadMesh(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, meshid: int ) -> None
226219
227220 Upload mesh to GPU, overwriting previous upload if any.
228221 """
229- def mjr_uploadTexture (m : mujoco ._structs .MjModel , con : MjrContext , texid : typing . SupportsInt ) -> None :
230- """mjr_uploadTexture(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, texid: typing.SupportsInt ) -> None
222+ def mjr_uploadTexture (m : mujoco ._structs .MjModel , con : MjrContext , texid : int ) -> None :
223+ """mjr_uploadTexture(m: mujoco._structs.MjModel, con: mujoco._render.MjrContext, texid: int ) -> None
231224
232225 Upload texture to GPU, overwriting previous upload if any.
233226 """
0 commit comments