OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Initialises the renderer for use, claiming hardware resources. | 70 // Initialises the renderer for use, claiming hardware resources. |
71 virtual InitStatus InitPlatformSpecific(const DisplayWindow& display, | 71 virtual InitStatus InitPlatformSpecific(const DisplayWindow& display, |
72 bool off_screen); | 72 bool off_screen); |
73 | 73 |
74 // Released all hardware resources. | 74 // Released all hardware resources. |
75 virtual void Destroy(); | 75 virtual void Destroy(); |
76 | 76 |
77 // Attempts to reset the back buffer to its new dimensions. | 77 // Attempts to reset the back buffer to its new dimensions. |
78 virtual void Resize(int width, int height); | 78 virtual void Resize(int width, int height); |
79 | 79 |
80 // Turns fullscreen display on or off. | 80 // Overridden from Renderer. |
81 // Parameters: | 81 virtual bool GoFullscreen(const DisplayWindow& display, |
82 // fullscreen: true for fullscreen, false for in-plugin display | 82 int mode_id); |
83 // display: a platform-specific display identifier | 83 |
84 // mode_id: a mode returned by GetDisplayModes, for fullscreen use. Ignored | 84 // Overridden from Renderer. |
85 // in non-fullscreen mode. | 85 virtual bool CancelFullscreen(const DisplayWindow& display, |
86 // Returns true on success, false on failure. | 86 int width, int height); |
87 virtual bool SetFullscreen(bool fullscreen, const DisplayWindow& display, | |
88 int mode_id); | |
89 | 87 |
90 // Tells whether we're currently displayed fullscreen or not. | 88 // Tells whether we're currently displayed fullscreen or not. |
91 virtual bool fullscreen() const { | 89 virtual bool fullscreen() const { |
92 return fullscreen_; | 90 return fullscreen_; |
93 } | 91 } |
94 | 92 |
95 // Get a vector of the available fullscreen display modes. | 93 // Get a vector of the available fullscreen display modes. |
96 // Clears *modes on error. | 94 // Clears *modes on error. |
97 virtual void GetDisplayModes(std::vector<DisplayMode> *modes); | 95 virtual void GetDisplayModes(std::vector<DisplayMode> *modes); |
98 | 96 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 264 |
267 // The font to use to display the message when we go to fullscreen. | 265 // The font to use to display the message when we go to fullscreen. |
268 CComPtr<ID3DXFont> fullscreen_message_font_; | 266 CComPtr<ID3DXFont> fullscreen_message_font_; |
269 // The line used to draw the background for the message. | 267 // The line used to draw the background for the message. |
270 CComPtr<ID3DXLine> fullscreen_message_line_; | 268 CComPtr<ID3DXLine> fullscreen_message_line_; |
271 }; | 269 }; |
272 | 270 |
273 } // namespace o3d | 271 } // namespace o3d |
274 | 272 |
275 #endif // O3D_CORE_WIN_D3D9_RENDERER_D3D9_H_ | 273 #endif // O3D_CORE_WIN_D3D9_RENDERER_D3D9_H_ |
OLD | NEW |