mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
a56ee57422
14
direct/src/dist/commands.py
vendored
14
direct/src/dist/commands.py
vendored
@ -1594,6 +1594,20 @@ class bdist_apps(setuptools.Command):
|
|||||||
'manylinux1_i686': ['gztar'],
|
'manylinux1_i686': ['gztar'],
|
||||||
'manylinux2010_x86_64': ['gztar'],
|
'manylinux2010_x86_64': ['gztar'],
|
||||||
'manylinux2010_i686': ['gztar'],
|
'manylinux2010_i686': ['gztar'],
|
||||||
|
'manylinux2014_x86_64': ['gztar'],
|
||||||
|
'manylinux2014_i686': ['gztar'],
|
||||||
|
'manylinux2014_aarch64': ['gztar'],
|
||||||
|
'manylinux2014_armv7l': ['gztar'],
|
||||||
|
'manylinux2014_ppc64': ['gztar'],
|
||||||
|
'manylinux2014_ppc64le': ['gztar'],
|
||||||
|
'manylinux2014_s390x': ['gztar'],
|
||||||
|
'manylinux_2_24_x86_64': ['gztar'],
|
||||||
|
'manylinux_2_24_i686': ['gztar'],
|
||||||
|
'manylinux_2_24_aarch64': ['gztar'],
|
||||||
|
'manylinux_2_24_armv7l': ['gztar'],
|
||||||
|
'manylinux_2_24_ppc64': ['gztar'],
|
||||||
|
'manylinux_2_24_ppc64le': ['gztar'],
|
||||||
|
'manylinux_2_24_s390x': ['gztar'],
|
||||||
'android': ['aab'],
|
'android': ['aab'],
|
||||||
# Everything else defaults to ['zip']
|
# Everything else defaults to ['zip']
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,9 @@ Built-in global variables
|
|||||||
Some key variables used in all Panda3D scripts are actually attributes of the
|
Some key variables used in all Panda3D scripts are actually attributes of the
|
||||||
ShowBase instance. When creating an instance of this class, it will write many
|
ShowBase instance. When creating an instance of this class, it will write many
|
||||||
of these variables to the built-in scope of the Python interpreter, so that
|
of these variables to the built-in scope of the Python interpreter, so that
|
||||||
they are accessible to any Python module, without the need fors extra imports.
|
they are accessible to any Python module, without the need for extra imports.
|
||||||
|
For example, the ShowBase instance itself is accessible anywhere through the
|
||||||
|
:data:`~builtins.base` variable.
|
||||||
|
|
||||||
While these are handy for prototyping, we do not recommend using them in bigger
|
While these are handy for prototyping, we do not recommend using them in bigger
|
||||||
projects, as it can make the code confusing to read to other Python developers,
|
projects, as it can make the code confusing to read to other Python developers,
|
||||||
|
@ -137,6 +137,9 @@ def GetLibDir():
|
|||||||
|
|
||||||
if os.path.isfile('/etc/debian_version'):
|
if os.path.isfile('/etc/debian_version'):
|
||||||
return GetDebLibDir()
|
return GetDebLibDir()
|
||||||
|
elif os.path.isfile('/etc/arch-release'):
|
||||||
|
# ArchLinux has lib64, but it is a symlink to lib.
|
||||||
|
return "lib"
|
||||||
else:
|
else:
|
||||||
# Okay, maybe we're on an RPM-based system?
|
# Okay, maybe we're on an RPM-based system?
|
||||||
return GetRPMLibDir()
|
return GetRPMLibDir()
|
||||||
|
@ -415,6 +415,8 @@ elif target == 'linux' and (os.path.isfile("/lib/libc-2.5.so") or os.path.isfile
|
|||||||
# This is manylinux1. A bit of a sloppy check, though.
|
# This is manylinux1. A bit of a sloppy check, though.
|
||||||
if GetTargetArch() in ('x86_64', 'amd64'):
|
if GetTargetArch() in ('x86_64', 'amd64'):
|
||||||
PLATFORM = 'manylinux1-x86_64'
|
PLATFORM = 'manylinux1-x86_64'
|
||||||
|
elif GetTargetArch() in ('arm64', 'aarch64'):
|
||||||
|
PLATFORM = 'manylinux1-aarch64'
|
||||||
else:
|
else:
|
||||||
PLATFORM = 'manylinux1-i686'
|
PLATFORM = 'manylinux1-i686'
|
||||||
|
|
||||||
@ -422,6 +424,8 @@ elif target == 'linux' and (os.path.isfile("/lib/libc-2.12.so") or os.path.isfil
|
|||||||
# Same sloppy check for manylinux2010.
|
# Same sloppy check for manylinux2010.
|
||||||
if GetTargetArch() in ('x86_64', 'amd64'):
|
if GetTargetArch() in ('x86_64', 'amd64'):
|
||||||
PLATFORM = 'manylinux2010-x86_64'
|
PLATFORM = 'manylinux2010-x86_64'
|
||||||
|
elif GetTargetArch() in ('arm64', 'aarch64'):
|
||||||
|
PLATFORM = 'manylinux2010-aarch64'
|
||||||
else:
|
else:
|
||||||
PLATFORM = 'manylinux2010-i686'
|
PLATFORM = 'manylinux2010-i686'
|
||||||
|
|
||||||
@ -429,6 +433,8 @@ elif target == 'linux' and (os.path.isfile("/lib/libc-2.17.so") or os.path.isfil
|
|||||||
# Same sloppy check for manylinux2014.
|
# Same sloppy check for manylinux2014.
|
||||||
if GetTargetArch() in ('x86_64', 'amd64'):
|
if GetTargetArch() in ('x86_64', 'amd64'):
|
||||||
PLATFORM = 'manylinux2014-x86_64'
|
PLATFORM = 'manylinux2014-x86_64'
|
||||||
|
elif GetTargetArch() in ('arm64', 'aarch64'):
|
||||||
|
PLATFORM = 'manylinux2014-aarch64'
|
||||||
else:
|
else:
|
||||||
PLATFORM = 'manylinux2014-i686'
|
PLATFORM = 'manylinux2014-i686'
|
||||||
|
|
||||||
@ -436,6 +442,8 @@ elif target == 'linux' and (os.path.isfile("/lib/i386-linux-gnu/libc-2.24.so") o
|
|||||||
# Same sloppy check for manylinux_2_24.
|
# Same sloppy check for manylinux_2_24.
|
||||||
if GetTargetArch() in ('x86_64', 'amd64'):
|
if GetTargetArch() in ('x86_64', 'amd64'):
|
||||||
PLATFORM = 'manylinux_2_24-x86_64'
|
PLATFORM = 'manylinux_2_24-x86_64'
|
||||||
|
elif GetTargetArch() in ('arm64', 'aarch64'):
|
||||||
|
PLATFORM = 'manylinux_2_24-aarch64'
|
||||||
else:
|
else:
|
||||||
PLATFORM = 'manylinux_2_24-i686'
|
PLATFORM = 'manylinux_2_24-i686'
|
||||||
|
|
||||||
|
@ -849,12 +849,6 @@ reset() {
|
|||||||
Geom::GR_line_strip |
|
Geom::GR_line_strip |
|
||||||
Geom::GR_flat_last_vertex;
|
Geom::GR_flat_last_vertex;
|
||||||
|
|
||||||
#ifndef OPENGLES
|
|
||||||
if (_supports_geometry_shaders) {
|
|
||||||
_supported_geom_rendering |= Geom::GR_adjacency;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_supports_point_parameters = false;
|
_supports_point_parameters = false;
|
||||||
|
|
||||||
#ifdef OPENGLES_1
|
#ifdef OPENGLES_1
|
||||||
@ -1797,6 +1791,10 @@ reset() {
|
|||||||
_supports_geometry_shaders = false;
|
_supports_geometry_shaders = false;
|
||||||
_glFramebufferTexture = nullptr;
|
_glFramebufferTexture = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_supports_geometry_shaders) {
|
||||||
|
_supported_geom_rendering |= Geom::GR_adjacency;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
_shader_caps._supports_glsl = _supports_glsl;
|
_shader_caps._supports_glsl = _supports_glsl;
|
||||||
|
|
||||||
|
@ -287,6 +287,17 @@ process_events() {
|
|||||||
*/
|
*/
|
||||||
void WinGraphicsWindow::
|
void WinGraphicsWindow::
|
||||||
set_properties_now(WindowProperties &properties) {
|
set_properties_now(WindowProperties &properties) {
|
||||||
|
if (properties.has_fullscreen() && !properties.get_fullscreen() &&
|
||||||
|
is_fullscreen()) {
|
||||||
|
if (do_windowed_switch()) {
|
||||||
|
_properties.set_fullscreen(false);
|
||||||
|
properties.clear_fullscreen();
|
||||||
|
} else {
|
||||||
|
windisplay_cat.warning()
|
||||||
|
<< "Switching to windowed mode failed!\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GraphicsWindow::set_properties_now(properties);
|
GraphicsWindow::set_properties_now(properties);
|
||||||
if (!properties.is_any_specified()) {
|
if (!properties.is_any_specified()) {
|
||||||
// The base class has already handled this case.
|
// The base class has already handled this case.
|
||||||
@ -441,14 +452,6 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
windisplay_cat.warning()
|
windisplay_cat.warning()
|
||||||
<< "Switching to fullscreen mode failed!\n";
|
<< "Switching to fullscreen mode failed!\n";
|
||||||
}
|
}
|
||||||
} else if (!properties.get_fullscreen() && is_fullscreen()){
|
|
||||||
if (do_windowed_switch()){
|
|
||||||
_properties.set_fullscreen(false);
|
|
||||||
properties.clear_fullscreen();
|
|
||||||
} else {
|
|
||||||
windisplay_cat.warning()
|
|
||||||
<< "Switching to windowed mode failed!\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user