Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CocoaGraphicsStateGuardian Class Reference

A tiny specialization on GLGraphicsStateGuardian to add some Cocoa-specific information. More...

#include "cocoaGraphicsStateGuardian.h"

Inheritance diagram for CocoaGraphicsStateGuardian:

Public Member Functions

 CocoaGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe, CocoaGraphicsStateGuardian *share_with)
 
void choose_pixel_format (const FrameBufferProperties &properties, CGDirectDisplayID display, bool need_pbuffer)
 
virtual TypeHandle force_init_type ()
 
const FrameBufferPropertiesget_fb_properties () const
 Gets the FrameBufferProperties for all windows and buffers that use this GSG. More...
 
void get_properties (FrameBufferProperties &properties, NSOpenGLPixelFormat *pixel_format, int virtual_screen)
 
virtual TypeHandle get_type () const
 
void lock_context ()
 Locks the context. More...
 
bool setup_vsync ()
 
void unlock_context ()
 Unlocks the context. More...
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 

Public Attributes

NSOpenGLContext * _context
 
CVDisplayLinkRef _display_link = nullptr
 
FrameBufferProperties _fbprops
 
NSOpenGLPixelFormat * _format = nullptr
 
AtomicAdjust::Integer _last_wait_frame = 0
 
NSOpenGLContext * _share_context
 
TrueConditionVarImpl _swap_condition
 
TrueMutexImpl _swap_lock
 

Detailed Description

A tiny specialization on GLGraphicsStateGuardian to add some Cocoa-specific information.

Definition at line 29 of file cocoaGraphicsStateGuardian.h.

Member Function Documentation

◆ get_fb_properties()

const FrameBufferProperties & CocoaGraphicsStateGuardian::get_fb_properties ( ) const
inline

Gets the FrameBufferProperties for all windows and buffers that use this GSG.

Definition at line 19 of file cocoaGraphicsStateGuardian.I.

◆ lock_context()

void CocoaGraphicsStateGuardian::lock_context ( )
inline

Locks the context.

Definition at line 27 of file cocoaGraphicsStateGuardian.I.

◆ unlock_context()

void CocoaGraphicsStateGuardian::unlock_context ( )
inline

Unlocks the context.

Definition at line 36 of file cocoaGraphicsStateGuardian.I.


The documentation for this class was generated from the following files: