Panda3D
Loading...
Searching...
No Matches
Macros | Functions
osxGraphicsPipe.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "osxGraphicsPipe.h"
#include "config_osxdisplay.h"
#include "osxGraphicsWindow.h"
#include "osxGraphicsBuffer.h"
#include "osxGraphicsStateGuardian.h"
#include "pnmImage.h"
#include "subprocessWindow.h"
#include "nativeWindowHandle.h"
#include "displayInformation.h"
import <Carbon/Carbon.h>

Go to the source code of this file.

Macros

#define GetModeBitsPerPixel(mode)   GetDictionaryLong((mode), kCGDisplayBitsPerPixel)
 
#define GetModeHeight(mode)   GetDictionaryLong((mode), kCGDisplayHeight)
 
#define GetModeRefreshRate(mode)   GetDictionaryLong((mode), kCGDisplayRefreshRate)
 
#define GetModeSafeForHardware(mode)   GetDictionaryBoolean((mode), kCGDisplayModeIsSafeForHardware)
 
#define GetModeStretched(mode)   GetDictionaryBoolean((mode), kCGDisplayModeIsStretched)
 
#define GetModeWidth(mode)   GetDictionaryLong((mode), kCGDisplayWidth)
 
#define MAX_DISPLAYS   32
 

Functions

Boolean GetDictionaryBoolean (CFDictionaryRef theDict, const void *key)
 
long GetDictionaryLong (CFDictionaryRef theDict, const void *key)
 
CFArrayRef GSCGDisplayAvailableModesUsefulForOpenGL (CGDirectDisplayID display)
 
 PT (GraphicsOutput) osxGraphicsPipe
 Creates a new window on the pipe, if possible.
 
 PT (GraphicsPipe) osxGraphicsPipe
 This function is passed to the GraphicsPipeSelection object to allow the user to make a default osxGraphicsPipe.
 
 PT (GraphicsStateGuardian) osxGraphicsPipe
 This is called when make_output() is used to create a CallbackGraphicsWindow.
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Definition in file osxGraphicsPipe.cxx.

Macro Definition Documentation

◆ GetModeBitsPerPixel

#define GetModeBitsPerPixel ( mode)    GetDictionaryLong((mode), kCGDisplayBitsPerPixel)

Definition at line 27 of file osxGraphicsPipe.cxx.

◆ GetModeHeight

#define GetModeHeight ( mode)    GetDictionaryLong((mode), kCGDisplayHeight)

Definition at line 25 of file osxGraphicsPipe.cxx.

◆ GetModeRefreshRate

#define GetModeRefreshRate ( mode)    GetDictionaryLong((mode), kCGDisplayRefreshRate)

Definition at line 26 of file osxGraphicsPipe.cxx.

◆ GetModeSafeForHardware

#define GetModeSafeForHardware ( mode)    GetDictionaryBoolean((mode), kCGDisplayModeIsSafeForHardware)

Definition at line 28 of file osxGraphicsPipe.cxx.

◆ GetModeStretched

#define GetModeStretched ( mode)    GetDictionaryBoolean((mode), kCGDisplayModeIsStretched)

Definition at line 29 of file osxGraphicsPipe.cxx.

◆ GetModeWidth

#define GetModeWidth ( mode)    GetDictionaryLong((mode), kCGDisplayWidth)

Definition at line 24 of file osxGraphicsPipe.cxx.

◆ MAX_DISPLAYS

#define MAX_DISPLAYS   32

Definition at line 30 of file osxGraphicsPipe.cxx.

Function Documentation

◆ GetDictionaryBoolean()

Boolean GetDictionaryBoolean ( CFDictionaryRef theDict,
const void * key )

Definition at line 32 of file osxGraphicsPipe.cxx.

◆ GetDictionaryLong()

long GetDictionaryLong ( CFDictionaryRef theDict,
const void * key )

Definition at line 42 of file osxGraphicsPipe.cxx.

◆ GSCGDisplayAvailableModesUsefulForOpenGL()

CFArrayRef GSCGDisplayAvailableModesUsefulForOpenGL ( CGDirectDisplayID display)

Definition at line 91 of file osxGraphicsPipe.cxx.

◆ PT() [1/3]

Creates a new window on the pipe, if possible.

Definition at line 346 of file osxGraphicsPipe.cxx.

References WindowHandle::get_os_handle, WindowProperties::get_parent_window, FrameBufferProperties::is_basic(), and TypedObject::is_of_type().

◆ PT() [2/3]

PT ( GraphicsPipe )

This function is passed to the GraphicsPipeSelection object to allow the user to make a default osxGraphicsPipe.

Definition at line 214 of file osxGraphicsPipe.cxx.

◆ PT() [3/3]

This is called when make_output() is used to create a CallbackGraphicsWindow.

If the GraphicsPipe can construct a GSG that's not associated with any particular window object, do so now, assuming the correct graphics context has been set up externally.

Definition at line 448 of file osxGraphicsPipe.cxx.