@@ -90,6 +90,41 @@ plStarterI_get_background_layer(PyObject* self, PyObject* args, PyObject* kwargs
9090 return PyCapsule_New (ptBGLayer , "plDrawLayer2D" , NULL );
9191}
9292
93+ PyObject *
94+ plStarterI_get_device (PyObject * self , PyObject * args , PyObject * kwargs )
95+ {
96+ plDevice * ptDevice = gptStarter -> get_device ();
97+ return PyCapsule_New (ptDevice , "plDevice" , NULL );
98+ }
99+
100+ PyObject *
101+ plStarterI_get_swapchain (PyObject * self , PyObject * args , PyObject * kwargs )
102+ {
103+ plSwapchain * ptSwapchain = gptStarter -> get_swapchain ();
104+ return PyCapsule_New (ptSwapchain , "plSwapchain" , NULL );
105+ }
106+
107+ PyObject *
108+ plStarterI_get_render_pass (PyObject * self , PyObject * args , PyObject * kwargs )
109+ {
110+ plRenderPassHandle tHandle = gptStarter -> get_render_pass ();
111+ return Py_BuildValue ("K" , tHandle .uData );
112+ }
113+
114+ PyObject *
115+ plStarterI_begin_main_pass (PyObject * self , PyObject * args , PyObject * kwargs )
116+ {
117+ plRenderEncoder * ptEncoder = gptStarter -> begin_main_pass ();
118+ return PyCapsule_New (ptEncoder , "plRenderEncoder" , NULL );
119+ }
120+
121+ PyObject *
122+ plStarterI_end_main_pass (PyObject * self , PyObject * args , PyObject * kwargs )
123+ {
124+ gptStarter -> end_main_pass ();
125+ Py_RETURN_NONE ;
126+ }
127+
93128plPythonIntConstantPair gatStarterIntPairs [] = {
94129 PL_ADD_INT_CONSTANT (PL_STARTER_FLAGS_NONE ),
95130 PL_ADD_INT_CONSTANT (PL_STARTER_FLAGS_DRAW_EXT ),
0 commit comments