Panda3D
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 (GraphicsPipe) osxGraphicsPipe
 This function is passed to the GraphicsPipeSelection object to allow the user to make a default osxGraphicsPipe. More...
 
 PT (GraphicsOutput) osxGraphicsPipe
 Creates a new window on the pipe, if possible. More...
 
 PT (GraphicsStateGuardian) osxGraphicsPipe
 This is called when make_output() is used to create a CallbackGraphicsWindow. More...
 

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.

Function Documentation

◆ PT() [1/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() [2/3]

PT ( GraphicsOutput  )

Creates a new window on the pipe, if possible.

Definition at line 346 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.