14 #ifndef WDXGRAPHICSWINDOW9_H 15 #define WDXGRAPHICSWINDOW9_H 30 const std::string &name,
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;
65 bool create_screen_buffers_and_device(
DXScreenData &display,
66 bool force_16bpp_zbuffer);
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();}
A GraphicsStateGuardian for rendering into DirectX9 contexts.
virtual void end_flip()
This function will be called within the draw thread after begin_flip() has been called on all windows...
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.
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.
This is our own Panda specialization on the default STL vector.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
An abstract base class for glGraphicsWindow and dxGraphicsWindow (and, in general,...
An object to create GraphicsOutputs that share a particular 3-D API.
virtual int verify_window_sizes(int numsizes, int *dimen)
Determines which of the indicated window sizes are supported by available hardware (e....
This is a base class for the various different classes that represent the result of a frame of render...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A single graphics window for rendering DirectX under Microsoft Windows.
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend.
This graphics pipe represents the interface for creating DirectX9 graphics windows.
This class is the main interface to controlling the render 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 frameBuffer before...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.