mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
back-buffers
This commit is contained in:
parent
47fa65c34a
commit
d4c6ef6ea9
@ -291,6 +291,9 @@ ConfigVariableInt stencil_bits
|
||||
ConfigVariableInt multisamples
|
||||
("multisamples", 0,
|
||||
PRC_DESC("The minimum number of samples requested."));
|
||||
ConfigVariableInt back_buffers
|
||||
("back-buffers", 1,
|
||||
PRC_DESC("The default number of back buffers requested."));
|
||||
|
||||
ConfigVariableDouble background_color
|
||||
("background-color", "0.41 0.41 0.41",
|
||||
|
@ -86,6 +86,7 @@ extern EXPCL_PANDA_DISPLAY ConfigVariableInt color_bits;
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableInt alpha_bits;
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableInt stencil_bits;
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableInt multisamples;
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableInt back_buffers;
|
||||
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableDouble background_color;
|
||||
extern EXPCL_PANDA_DISPLAY ConfigVariableBool sync_video;
|
||||
|
@ -70,7 +70,7 @@ subsumes(const FrameBufferProperties &other) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
const FrameBufferProperties &FrameBufferProperties::
|
||||
get_default() {
|
||||
static bool default_ready = false;
|
||||
static bool default_ready = false;
|
||||
static FrameBufferProperties default_props;
|
||||
|
||||
if (default_ready) {
|
||||
@ -78,7 +78,7 @@ get_default() {
|
||||
}
|
||||
|
||||
default_props.set_rgb_color(1);
|
||||
default_props.set_back_buffers(1);
|
||||
default_props.set_back_buffers(back_buffers);
|
||||
|
||||
int num_words = framebuffer_mode.get_num_words();
|
||||
if (num_words > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user