mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add get_framebuffer_format
This commit is contained in:
parent
a57283816f
commit
c7e59814b4
@ -693,3 +693,11 @@ get_depth_bitwidth(void) {
|
|||||||
display_cat.warning() << "get_depth_bitwidth() unimplemented by " << get_type() << endl;
|
display_cat.warning() << "get_depth_bitwidth() unimplemented by " << get_type() << endl;
|
||||||
return -1;
|
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;
|
||||||
|
}
|
||||||
|
@ -113,13 +113,16 @@ public:
|
|||||||
|
|
||||||
INLINE const Properties& get_properties() const;
|
INLINE const Properties& get_properties() const;
|
||||||
|
|
||||||
|
virtual void get_framebuffer_format(PixelBuffer::Type &fb_type, PixelBuffer::Format &fb_format);
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE int get_width() const;
|
INLINE int get_width() const;
|
||||||
INLINE int get_height() const;
|
INLINE int get_height() const;
|
||||||
INLINE int get_xorg() const;
|
INLINE int get_xorg() const;
|
||||||
INLINE int get_yorg() 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 GraphicsStateGuardian *get_gsg() const;
|
||||||
INLINE GraphicsPipe *get_pipe() const;
|
INLINE GraphicsPipe *get_pipe() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user