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.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
This class is the main interface to controlling the render process.
This is a base class for the various different classes that represent the result of a frame of render...
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.
An object to create GraphicsOutputs that share a particular 3-D API.
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.
An abstract base class for glGraphicsWindow and dxGraphicsWindow (and, in general,...
A container for the various kinds of properties we might ask to have on a graphics window before we o...
This is our own Panda specialization on the default STL vector.
This graphics pipe represents the interface for creating DirectX9 graphics windows.
A single graphics window for rendering DirectX under Microsoft 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.