diff --git a/panda/src/display/graphicsWindow.cxx b/panda/src/display/graphicsWindow.cxx index 3e6c1d2c89..01255789f3 100644 --- a/panda/src/display/graphicsWindow.cxx +++ b/panda/src/display/graphicsWindow.cxx @@ -693,3 +693,11 @@ get_depth_bitwidth(void) { display_cat.warning() << "get_depth_bitwidth() unimplemented by " << get_type() << endl; return -1; } + +void GraphicsWindow:: +get_framebuffer_format(PixelBuffer::Type &fb_type, PixelBuffer::Format &fb_format) { + display_cat.warning() << "get_framebuffer_format() unimplemented by " << get_type() << endl; + + fb_type = PixelBuffer::T_unsigned_byte; + fb_format = PixelBuffer::F_rgb; +} diff --git a/panda/src/display/graphicsWindow.h b/panda/src/display/graphicsWindow.h index 1f624b897c..795c1f22cf 100644 --- a/panda/src/display/graphicsWindow.h +++ b/panda/src/display/graphicsWindow.h @@ -113,13 +113,16 @@ public: INLINE const Properties& get_properties() const; + virtual void get_framebuffer_format(PixelBuffer::Type &fb_type, PixelBuffer::Format &fb_format); + PUBLISHED: INLINE int get_width() const; INLINE int get_height() const; INLINE int get_xorg() const; INLINE int get_yorg() const; - virtual int get_depth_bitwidth(void); // # of z bits/pixel + // # of z bits/pixel. purpose is to adjust camera near plane if have fewer z bits + virtual int get_depth_bitwidth(void); INLINE GraphicsStateGuardian *get_gsg() const; INLINE GraphicsPipe *get_pipe() const;