14#ifndef WDXGRAPHICSWINDOW9_H
15#define WDXGRAPHICSWINDOW9_H
27class EXPCL_PANDADX wdxGraphicsWindow9 :
public WinGraphicsWindow {
29 wdxGraphicsWindow9(GraphicsEngine *engine, GraphicsPipe *pipe,
30 const std::string &name,
35 GraphicsOutput *host);
36 virtual ~wdxGraphicsWindow9();
45 virtual void close_window();
46 virtual bool open_window();
47 virtual void reset_window(
bool swapchain);
50 virtual void handle_reshape();
51 virtual bool do_fullscreen_resize(
int x_size,
int y_size);
56 char szDriver[MAX_DEVICE_IDENTIFIER_STRING];
57 char szDescription[MAX_DEVICE_IDENTIFIER_STRING];
58 GUID guidDeviceIdentifier;
59 DWORD VendorID, DeviceID;
60 LARGE_INTEGER _driver_version;
63 typedef pvector<DXDeviceInfo> DXDeviceInfoVec;
65 bool create_screen_buffers_and_device(
DXScreenData &display,
66 bool force_16bpp_zbuffer);
69 bool consider_device(wdxGraphicsPipe9 *dxpipe, DXDeviceInfo *device_info);
71 bool reset_device_resize_window(UINT new_xsize, UINT new_ysize);
72 void init_resized_window();
74 static int D3DFMT_to_DepthBits(D3DFORMAT fmt);
75 static bool is_badvidmem_card(D3DADAPTER_IDENTIFIER9 *pDevID);
80 int _depth_buffer_bpp;
81 bool _awaiting_restore;
87 static void init_type() {
88 WinGraphicsWindow::init_type();
90 WinGraphicsWindow::get_class_type());
93 return get_class_type();
95 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
99 friend class wdxGraphicsPipe9;
A GraphicsStateGuardian for rendering into DirectX9 contexts.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
virtual void end_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread after rendering is completed for a given frame.
virtual void end_flip()
This function will be called within the draw thread after begin_flip() has been called on all windows...
virtual bool begin_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread before beginning rendering for a given frame.
Encapsulates all the communication with a particular instance of a given rendering backend.
virtual int verify_window_sizes(int numsizes, int *dimen)
Determines which of the indicated window sizes are supported by available hardware (e....
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
This graphics pipe represents the interface for creating DirectX9 graphics windows.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.