Panda3D
Loading...
Searching...
No Matches
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 */
19get_fb_properties() const {
20 return _fbprops;
21}
22
23/**
24 * Locks the context.
25 */
28 nassertv(_context != nil);
29 CGLLockContext((CGLContextObj) [_context CGLContextObj]);
30}
31
32/**
33 * Unlocks the context.
34 */
37 nassertv(_context != nil);
38 CGLUnlockContext((CGLContextObj) [_context CGLContextObj]);
39}
const FrameBufferProperties & get_fb_properties() const
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
void unlock_context()
Unlocks the context.
void lock_context()
Locks the context.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...