I have a hidden graphics buffer and want to render a output of a camera to a buffer without rendering it into a main window, the code for python is
mybuffer = base.win.makeTextureBuffer("My Buffer", 512, 512)
mytexture = mybuffer.getTexture()
mybuffer.setSort(-100)
mycamera = base.makeCamera(mybuffer)
myscene = NodePath("My Scene")
mycamera.node().setScene(myscene)
here i have mycamera = base.makeCamera(mybuffer)
to attach the cam to the buffer i could not find the corressponding statement in cpp can someone direct me to this statement.
Thanks.