mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
display: make refresh_rate float, deprecate get_display_mode_xyz
This commit is contained in:
parent
a52744a973
commit
7c3e660b15
@ -210,7 +210,7 @@ get_display_mode(int display_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @deprecated use get_display_mode instead.
|
||||||
*/
|
*/
|
||||||
int DisplayInformation::
|
int DisplayInformation::
|
||||||
get_display_mode_width (int display_index) {
|
get_display_mode_width (int display_index) {
|
||||||
@ -225,7 +225,7 @@ get_display_mode_width (int display_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @deprecated use get_display_mode instead.
|
||||||
*/
|
*/
|
||||||
int DisplayInformation::
|
int DisplayInformation::
|
||||||
get_display_mode_height (int display_index) {
|
get_display_mode_height (int display_index) {
|
||||||
@ -240,7 +240,7 @@ get_display_mode_height (int display_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @deprecated use get_display_mode instead.
|
||||||
*/
|
*/
|
||||||
int DisplayInformation::
|
int DisplayInformation::
|
||||||
get_display_mode_bits_per_pixel (int display_index) {
|
get_display_mode_bits_per_pixel (int display_index) {
|
||||||
@ -255,9 +255,9 @@ get_display_mode_bits_per_pixel (int display_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @deprecated use get_display_mode instead.
|
||||||
*/
|
*/
|
||||||
int DisplayInformation::
|
double DisplayInformation::
|
||||||
get_display_mode_refresh_rate (int display_index) {
|
get_display_mode_refresh_rate (int display_index) {
|
||||||
int value;
|
int value;
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ get_display_mode_refresh_rate (int display_index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @deprecated use get_display_mode instead.
|
||||||
*/
|
*/
|
||||||
int DisplayInformation::
|
int DisplayInformation::
|
||||||
get_display_mode_fullscreen_only (int display_index) {
|
get_display_mode_fullscreen_only (int display_index) {
|
||||||
|
@ -21,7 +21,7 @@ PUBLISHED:
|
|||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
int bits_per_pixel;
|
int bits_per_pixel;
|
||||||
int refresh_rate;
|
double refresh_rate;
|
||||||
int fullscreen_only;
|
int fullscreen_only;
|
||||||
|
|
||||||
bool operator == (const DisplayMode &other) const;
|
bool operator == (const DisplayMode &other) const;
|
||||||
@ -60,7 +60,7 @@ PUBLISHED:
|
|||||||
int get_display_mode_width(int display_index);
|
int get_display_mode_width(int display_index);
|
||||||
int get_display_mode_height(int display_index);
|
int get_display_mode_height(int display_index);
|
||||||
int get_display_mode_bits_per_pixel(int display_index);
|
int get_display_mode_bits_per_pixel(int display_index);
|
||||||
int get_display_mode_refresh_rate(int display_index);
|
double get_display_mode_refresh_rate(int display_index);
|
||||||
int get_display_mode_fullscreen_only(int display_index);
|
int get_display_mode_fullscreen_only(int display_index);
|
||||||
|
|
||||||
GraphicsStateGuardian::ShaderModel get_shader_model();
|
GraphicsStateGuardian::ShaderModel get_shader_model();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user