Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OpenGl1D.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 OPENGL1D_HPP_
9 #define OPENGL1D_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 OpenGl1D {
21 public:
22  OpenGl1D();
23  virtual ~OpenGl1D();
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 /* OPENGL1D_HPP_ */
void init(SDL_Renderer *renderer, SDL_Window *window)
Definition: OpenGl1D.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: OpenGl1D.cpp:30
virtual ~OpenGl1D()
Definition: OpenGl1D.cpp:16
Definition: OpenGl1D.hpp:20
OpenGl1D()
Definition: OpenGl1D.cpp:13