Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
eglGraphicsStateGuardian Class Reference

A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information. More...

#include "eglGraphicsStateGuardian.h"

Inheritance diagram for eglGraphicsStateGuardian:

Public Member Functions

 eglGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe, eglGraphicsStateGuardian *share_with)
 
void choose_pixel_format (const FrameBufferProperties &properties, eglGraphicsPipe *egl_pipe, bool need_window, bool need_pbuffer, bool need_pixmap)
 Selects a visual or fbconfig for all the windows and buffers that use this gsg.
 
bool egl_is_at_least_version (int major_version, int minor_version) const
 Returns true if the runtime GLX version number is at least the indicated value, false otherwise.
 
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, bool &pbuffer_supported, bool &pixmap_supported, bool &slow, EGLConfig config)
 Gets the FrameBufferProperties to match the indicated config.
 
virtual TypeHandle get_type () const
 
virtual void reset ()
 Resets all internal state as if the gsg were newly created.
 

Static Public Member Functions

static TypeHandle get_class_type ()
 
static void init_type ()
 

Public Attributes

EGLContext _context
 
EGLDisplay _egl_display
 
EGLConfig _fbconfig
 
FrameBufferProperties _fbprops
 
EGLContext _share_context
 

Detailed Description

A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information.

Definition at line 36 of file eglGraphicsStateGuardian.h.

Constructor & Destructor Documentation

◆ eglGraphicsStateGuardian()

eglGraphicsStateGuardian::eglGraphicsStateGuardian ( GraphicsEngine * engine,
GraphicsPipe * pipe,
eglGraphicsStateGuardian * share_with )

Definition at line 25 of file eglGraphicsStateGuardian.cxx.

◆ ~eglGraphicsStateGuardian()

eglGraphicsStateGuardian::~eglGraphicsStateGuardian ( )
virtual

Definition at line 44 of file eglGraphicsStateGuardian.cxx.

Member Function Documentation

◆ choose_pixel_format()

void eglGraphicsStateGuardian::choose_pixel_format ( const FrameBufferProperties & properties,
eglGraphicsPipe * egl_pipe,
bool need_window,
bool need_pbuffer,
bool need_pixmap )

Selects a visual or fbconfig for all the windows and buffers that use this gsg.

Also creates the GL context and obtains the visual.

Definition at line 116 of file eglGraphicsStateGuardian.cxx.

References FrameBufferProperties::clear(), extract_words(), get_egl_error_string(), get_properties(), and FrameBufferProperties::get_quality().

◆ egl_is_at_least_version()

bool eglGraphicsStateGuardian::egl_is_at_least_version ( int major_version,
int minor_version ) const

Returns true if the runtime GLX version number is at least the indicated value, false otherwise.

Definition at line 293 of file eglGraphicsStateGuardian.cxx.

◆ force_init_type()

virtual TypeHandle eglGraphicsStateGuardian::force_init_type ( )
inlinevirtual

Definition at line 87 of file eglGraphicsStateGuardian.h.

◆ get_class_type()

static TypeHandle eglGraphicsStateGuardian::get_class_type ( )
inlinestatic

Definition at line 76 of file eglGraphicsStateGuardian.h.

◆ get_fb_properties()

const FrameBufferProperties & eglGraphicsStateGuardian::get_fb_properties ( ) const
inline

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

Definition at line 18 of file eglGraphicsStateGuardian.I.

◆ get_properties()

void eglGraphicsStateGuardian::get_properties ( FrameBufferProperties & properties,
bool & pbuffer_supported,
bool & pixmap_supported,
bool & slow,
EGLConfig config )

Gets the FrameBufferProperties to match the indicated config.

Definition at line 58 of file eglGraphicsStateGuardian.cxx.

References FrameBufferProperties::clear(), get_egl_error_string(), and FrameBufferProperties::set_rgba_bits().

Referenced by choose_pixel_format().

◆ get_type()

virtual TypeHandle eglGraphicsStateGuardian::get_type ( ) const
inlinevirtual

Definition at line 84 of file eglGraphicsStateGuardian.h.

◆ init_type()

static void eglGraphicsStateGuardian::init_type ( )
inlinestatic

Definition at line 79 of file eglGraphicsStateGuardian.h.

◆ reset()

void eglGraphicsStateGuardian::reset ( )
virtual

Resets all internal state as if the gsg were newly created.

Definition at line 279 of file eglGraphicsStateGuardian.cxx.

Member Data Documentation

◆ _context

EGLContext eglGraphicsStateGuardian::_context

Definition at line 56 of file eglGraphicsStateGuardian.h.

◆ _egl_display

EGLDisplay eglGraphicsStateGuardian::_egl_display

Definition at line 57 of file eglGraphicsStateGuardian.h.

◆ _fbconfig

EGLConfig eglGraphicsStateGuardian::_fbconfig

Definition at line 61 of file eglGraphicsStateGuardian.h.

◆ _fbprops

FrameBufferProperties eglGraphicsStateGuardian::_fbprops

Definition at line 62 of file eglGraphicsStateGuardian.h.

◆ _share_context

EGLContext eglGraphicsStateGuardian::_share_context

Definition at line 55 of file eglGraphicsStateGuardian.h.


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