Panda3D
Loading...
Searching...
No Matches
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.
 
void get_properties (FrameBufferProperties &properties, NSOpenGLPixelFormat *pixel_format, int virtual_screen)
 
virtual TypeHandle get_type () const
 
void lock_context ()
 Locks the context.
 
bool setup_vsync ()
 
void unlock_context ()
 Unlocks the context.
 

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

◆ force_init_type()

virtual TypeHandle CocoaGraphicsStateGuardian::force_init_type ( )
inlinevirtual

Definition at line 73 of file cocoaGraphicsStateGuardian.h.

◆ get_class_type()

static TypeHandle CocoaGraphicsStateGuardian::get_class_type ( )
inlinestatic

Definition at line 62 of file cocoaGraphicsStateGuardian.h.

◆ 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 18 of file cocoaGraphicsStateGuardian.I.

◆ get_type()

virtual TypeHandle CocoaGraphicsStateGuardian::get_type ( ) const
inlinevirtual

Definition at line 70 of file cocoaGraphicsStateGuardian.h.

◆ init_type()

static void CocoaGraphicsStateGuardian::init_type ( )
inlinestatic

Definition at line 65 of file cocoaGraphicsStateGuardian.h.

◆ lock_context()

void CocoaGraphicsStateGuardian::lock_context ( )
inline

Locks the context.

Definition at line 26 of file cocoaGraphicsStateGuardian.I.

◆ unlock_context()

void CocoaGraphicsStateGuardian::unlock_context ( )
inline

Unlocks the context.

Definition at line 35 of file cocoaGraphicsStateGuardian.I.

Member Data Documentation

◆ _context

NSOpenGLContext* CocoaGraphicsStateGuardian::_context

Definition at line 48 of file cocoaGraphicsStateGuardian.h.

◆ _display_link

CVDisplayLinkRef CocoaGraphicsStateGuardian::_display_link = nullptr

Definition at line 52 of file cocoaGraphicsStateGuardian.h.

◆ _fbprops

FrameBufferProperties CocoaGraphicsStateGuardian::_fbprops

Definition at line 50 of file cocoaGraphicsStateGuardian.h.

◆ _format

NSOpenGLPixelFormat* CocoaGraphicsStateGuardian::_format = nullptr

Definition at line 49 of file cocoaGraphicsStateGuardian.h.

◆ _last_wait_frame

AtomicAdjust::Integer CocoaGraphicsStateGuardian::_last_wait_frame = 0

Definition at line 55 of file cocoaGraphicsStateGuardian.h.

◆ _share_context

NSOpenGLContext* CocoaGraphicsStateGuardian::_share_context

Definition at line 47 of file cocoaGraphicsStateGuardian.h.

◆ _swap_condition

TrueConditionVarImpl CocoaGraphicsStateGuardian::_swap_condition

Definition at line 54 of file cocoaGraphicsStateGuardian.h.

◆ _swap_lock

TrueMutexImpl CocoaGraphicsStateGuardian::_swap_lock

Definition at line 53 of file cocoaGraphicsStateGuardian.h.


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