Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenGlFdtd1D.hpp
Go to the documentation of this file.
1 /*
2  * OpenGlFdtd1D.hpp
3  *
4  * Created on: Jul 6, 2014
5  * Author: nano
6  */
7 
8 #ifndef OPENGLFDTD1D_HPP_
9 #define OPENGLFDTD1D_HPP_
10 
11 #include <SDL2/SDL.h>
12 #include <GL/gl.h>
13 #include <GL/glu.h>
14 #include <iostream>
15 #include <vector>
16 
17 namespace phoxonics {
18 namespace visual {
19 
20 class OpenGlFdtd1D {
21 public:
22  OpenGlFdtd1D();
23  virtual ~OpenGlFdtd1D();
24 
25  void init(SDL_Renderer* renderer, SDL_Window* window);
26  void render(std::vector<std::pair<double, double>>& xy_ez,
27  std::vector<std::pair<double, double>>& xy_hy, double mouse_x, double mouse_y);
28 
29 private:
30  SDL_Window* window_ { nullptr };
31  SDL_Renderer* renderer_ { nullptr };
32 };
33 
34 } /* namespace visual */
35 } /* namespace phoxonics */
36 
37 #endif /* OPENGLFDTD1D_HPP_ */
void init(SDL_Renderer *renderer, SDL_Window *window)
Definition: OpenGlFdtd1D.cpp:20
Definition: CommonBase.hpp:14
void render(std::vector< std::pair< double, double >> &xy_ez, std::vector< std::pair< double, double >> &xy_hy, double mouse_x, double mouse_y)
Definition: OpenGlFdtd1D.cpp:32
OpenGlFdtd1D()
Definition: OpenGlFdtd1D.cpp:13
virtual ~OpenGlFdtd1D()
Definition: OpenGlFdtd1D.cpp:16
Definition: OpenGlFdtd1D.hpp:20