mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
add winprop copy constructor
This commit is contained in:
parent
74ede70c63
commit
a6d61dea80
@ -27,6 +27,24 @@ INLINE GraphicsWindow::Properties::
|
|||||||
~Properties() {
|
~Properties() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: GraphicsWindow::Properties::Destructor
|
||||||
|
// Access: Published
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE GraphicsWindow::Properties::Properties(const Properties &InitProp) {
|
||||||
|
_xorg=InitProp._xorg;
|
||||||
|
_yorg=InitProp._yorg;
|
||||||
|
_xsize=InitProp._xsize;
|
||||||
|
_ysize=InitProp._ysize;
|
||||||
|
_title=InitProp._title;
|
||||||
|
_border=InitProp._border;
|
||||||
|
_fullscreen=InitProp._fullscreen;
|
||||||
|
_mask=InitProp._mask;
|
||||||
|
_want_depth_bits=InitProp._want_depth_bits;
|
||||||
|
_want_color_bits=InitProp._want_color_bits;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: GraphicsWindow::Properties::set_origin
|
// Function: GraphicsWindow::Properties::set_origin
|
||||||
// Access: Published
|
// Access: Published
|
||||||
@ -222,6 +240,7 @@ close_window() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
INLINE bool GraphicsWindow::
|
INLINE bool GraphicsWindow::
|
||||||
is_closed() const {
|
is_closed() const {
|
||||||
|
|
||||||
return (_gsg == (GraphicsStateGuardian *)NULL);
|
return (_gsg == (GraphicsStateGuardian *)NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@ PUBLISHED:
|
|||||||
class EXPCL_PANDA Properties {
|
class EXPCL_PANDA Properties {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
Properties();
|
Properties();
|
||||||
|
Properties(const Properties &);
|
||||||
INLINE ~Properties();
|
INLINE ~Properties();
|
||||||
|
|
||||||
INLINE void set_origin(int xorg, int yorg);
|
INLINE void set_origin(int xorg, int yorg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user