Flow Visualisation
IRenderer.h
Go to the documentation of this file.
1 //
2 // IRenderer.h
3 // flowviz
4 //
5 // Created by Johann Götz on 01.05.15.
6 // Copyright (c) 2015 Johann Götz. All rights reserved.
7 //
8 
9 #ifndef __flowviz__IRenderer__
10 #define __flowviz__IRenderer__
11 
12 #define STANDARD_SCREEN_WIDTH 1280
13 #define STANDARD_SCREEN_HEIGHT 800
14 
15 
19 class IRenderer
20 {
21 protected:
24 
25 public:
29  virtual ~IRenderer() { }
30 
36  virtual void createWindow(int screenWidth = STANDARD_SCREEN_WIDTH, int screenHeight = STANDARD_SCREEN_HEIGHT) = 0;
37 
41  virtual void initRenderer() = 0;
42 
46  virtual void clear() = 0;
47 
51  virtual void swapBuffers() = 0;
52 
53 };
54 
55 #endif /* defined(__flowviz__IRenderer__) */
#define STANDARD_SCREEN_HEIGHT
Definition: IRenderer.h:13
virtual void initRenderer()=0
Initializes Renderer.
int m_screenHeight
Definition: IRenderer.h:23
virtual void swapBuffers()=0
Swaps buffers;.
Abstract renderer class.
Definition: IRenderer.h:19
int m_screenWidth
Definition: IRenderer.h:22
virtual void clear()=0
Clears screen buffer.
virtual void createWindow(int screenWidth=STANDARD_SCREEN_WIDTH, int screenHeight=STANDARD_SCREEN_HEIGHT)=0
Create a new window with specified sized.
virtual ~IRenderer()
Virtual descructor to clean up.
Definition: IRenderer.h:29
#define STANDARD_SCREEN_WIDTH
Definition: IRenderer.h:12