Panda3D

cocoaGraphicsStateGuardian.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cocoaGraphicsStateGuardian.I
10 * @author rdb
11 * @date 2012-05-14
12 */
13
14 /**
15 * Gets the FrameBufferProperties for all windows and buffers that use this
16 * GSG.
17 */
18 INLINE const FrameBufferProperties &CocoaGraphicsStateGuardian::
19 get_fb_properties() const {
20 return _fbprops;
21 }
22
23 /**
24 * Locks the context.
25 */
26 INLINE void CocoaGraphicsStateGuardian::
27 lock_context() {
28 nassertv(_context != nil);
29 CGLLockContext((CGLContextObj) [_context CGLContextObj]);
30 }
31
32 /**
33 * Unlocks the context.
34 */
35 INLINE void CocoaGraphicsStateGuardian::
36 unlock_context() {
37 nassertv(_context != nil);
38 CGLUnlockContext((CGLContextObj) [_context CGLContextObj]);
39 }
CocoaGraphicsStateGuardian::get_fb_properties
const FrameBufferProperties & get_fb_properties() const
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
Definition: cocoaGraphicsStateGuardian.I:19
CocoaGraphicsStateGuardian::unlock_context
void unlock_context()
Unlocks the context.
Definition: cocoaGraphicsStateGuardian.I:36
CocoaGraphicsStateGuardian::lock_context
void lock_context()
Locks the context.
Definition: cocoaGraphicsStateGuardian.I:27
FrameBufferProperties
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
Definition: frameBufferProperties.h:26