GraphicsPipe

how can i make (declare)
“GraphicsPipe pipe”
to get
pipe.get_display_width();

There’s a get_default_pipe() method of PandaFramework, which returns a pointer to a GraphicsPipe object that you can use.

thanks
could you please help with this

GraphicsPipe *pipe = framework.get_default_pipe();

window_x = pipe.get_display_height();
window_y = pipe.get_display_width();

got
request for member ‘get_display_height’ in ‘pipe’, which is of non-class type ‘GraphicsPipe*’

I really suggest learning C++ before you attempt Panda3D.

In this case, it’s because pipe is a pointer and not an object. Use pipe->get_display_height() instead of pipe.get_display_height().