Panda3D
cocoaGraphicsPipe.I
1 // Filename: cocoaGraphicsPipe.I
2 // Created by: rdb (14May12)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CocoaGraphicsPipe::get_display_id
18 // Access: Public
19 // Description: Returns the Quartz display ID associated with
20 // this graphics pipe.
21 ////////////////////////////////////////////////////////////////////
22 INLINE CGDirectDisplayID CocoaGraphicsPipe::
23 get_display_id() const {
24  return _display;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: CocoaGraphicsPipe::get_nsscreen
29 // Access: Public
30 // Description: Returns the Cocoa NSScreen pointer associated with
31 // this graphics pipe.
32 ////////////////////////////////////////////////////////////////////
33 INLINE NSScreen *CocoaGraphicsPipe::
34 get_nsscreen() const {
35  return _screen;
36 }
CGDirectDisplayID get_display_id() const
Returns the Quartz display ID associated with this graphics pipe.
NSScreen * get_nsscreen() const
Returns the Cocoa NSScreen pointer associated with this graphics pipe.