def _screen_buffer(self):
<EOL>address = _LIB.Screen(self._env)<EOL>buffer_ = ctypes.cast(address, ctypes.POINTER(SCREEN_TENSOR)).contents<EOL>screen = np.frombuffer(buffer_, dtype='<STR_LIT>')<EOL>screen = screen.reshape(SCREEN_SHAPE_32_BIT)<EOL>if sys.byteorder == '<STR_LIT>':<EOL><INDENT>screen = screen[:, :, ::-<NUM_LIT:1>]<EOL><DEDENT>return screen[:, :, <NUM_LIT:1>:]<EOL>
Setup the screen buffer from the C++ code.