Panda3D
|
This graphics pipe represents the interface for creating OpenGL graphics windows on the various OSX's. More...
#include "osxGraphicsPipe.h"
Public Member Functions | |
virtual TypeHandle | force_init_type () |
virtual string | get_interface_name () const |
Returns the name of the rendering interface associated with this GraphicsPipe. | |
virtual PreferredWindowThread | get_preferred_window_thread () const |
Returns an indication of the thread in which this GraphicsPipe requires its window processing to be performed: typically either the app thread (e.g. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static CGImageRef | create_cg_image (const PNMImage &pnm_image) |
Creates a new Quartz bitmap image with the data in the indicated PNMImage. | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
static | PT (GraphicsPipe) pipe_constructor() |
Protected Member Functions | |
virtual | PT (GraphicsOutput) make_output(const string &name |
virtual | PT (GraphicsStateGuardian) make_callback_gsg(GraphicsEngine *engine) |
Protected Attributes | |
virtual const FrameBufferProperties const WindowProperties int GraphicsEngine * | engine |
virtual const FrameBufferProperties & | fb_prop |
virtual const FrameBufferProperties const WindowProperties int | flags |
virtual const FrameBufferProperties const WindowProperties int GraphicsEngine GraphicsStateGuardian * | gsg |
virtual const FrameBufferProperties const WindowProperties int GraphicsEngine GraphicsStateGuardian GraphicsOutput * | host |
virtual const FrameBufferProperties const WindowProperties int GraphicsEngine GraphicsStateGuardian GraphicsOutput int bool & | precertify |
virtual const FrameBufferProperties const WindowProperties int GraphicsEngine GraphicsStateGuardian GraphicsOutput int | retry |
virtual const FrameBufferProperties const WindowProperties & | win_prop |
Friends | |
class | osxGraphicsBuffer |
This graphics pipe represents the interface for creating OpenGL graphics windows on the various OSX's.
Definition at line 29 of file osxGraphicsPipe.h.
CGImageRef osxGraphicsPipe::create_cg_image | ( | const PNMImage & | pnm_image | ) | [static] |
Creates a new Quartz bitmap image with the data in the indicated PNMImage.
The caller should eventually free this image via CGImageRelease.
Definition at line 251 of file osxGraphicsPipe.cxx.
References PNMImage::get_alpha(), PNMImage::get_blue(), PNMImageHeader::get_color_type(), PNMImage::get_gray(), PNMImage::get_green(), PNMImageHeader::get_num_channels(), PNMImage::get_red(), PNMImageHeader::get_x_size(), and PNMImageHeader::get_y_size().
string osxGraphicsPipe::get_interface_name | ( | ) | const [virtual] |
Returns the name of the rendering interface associated with this GraphicsPipe.
This is used to present to the user to allow him/her to choose between several possible GraphicsPipes available on a particular platform, so the name should be meaningful and unique for a given platform.
Implements GraphicsPipe.
Definition at line 214 of file osxGraphicsPipe.cxx.
GraphicsPipe::PreferredWindowThread osxGraphicsPipe::get_preferred_window_thread | ( | ) | const [virtual] |
Returns an indication of the thread in which this GraphicsPipe requires its window processing to be performed: typically either the app thread (e.g.
X) or the draw thread (Windows).
Reimplemented from GraphicsPipe.
Definition at line 239 of file osxGraphicsPipe.cxx.
static void osxGraphicsPipe::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from GraphicsPipe.
Definition at line 59 of file osxGraphicsPipe.h.
References GraphicsPipe::init_type().