| 
									
										
										
										
											2008-12-18 10:30:20 +00:00
										 |  |  | #ifndef _SDLWINDOW_H
 | 
					
						
							|  |  |  | #define _SDLWINDOW_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "GLWindow.h"
 | 
					
						
							| 
									
										
										
										
											2008-12-19 11:46:52 +00:00
										 |  |  | #if defined HAVE_SDL && HAVE_SDL
 | 
					
						
							| 
									
										
										
										
											2008-12-18 10:30:20 +00:00
										 |  |  | #include <SDL.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SDLWindow : public GLWindow  | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     virtual void SwapBuffers(); | 
					
						
							|  |  |  |     virtual void SetWindowText(const char *text); | 
					
						
							|  |  |  |     virtual bool PeekMessages(); | 
					
						
							|  |  |  |     virtual void Update(); | 
					
						
							|  |  |  |     virtual bool MakeCurrent(); | 
					
						
							| 
									
										
										
										
											2008-12-20 23:13:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     static bool valid() { return true; } | 
					
						
							| 
									
										
										
										
											2008-12-18 10:30:20 +00:00
										 |  |  |     ~SDLWindow(); | 
					
						
							|  |  |  |     SDLWindow(int _iwidth, int _iheight); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2008-12-19 11:46:52 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | class SDLWindow : public GLWindow  | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |  public: | 
					
						
							|  |  |  |     SDLWindow(int _iwidth, int _iheight) {} | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-12-18 10:30:20 +00:00
										 |  |  | #endif
 |