fermisurfer
2.0.0
fermisurfer
src
operation.hpp
Go to the documentation of this file.
1
/*
2
The MIT License (MIT)
3
4
Copyright (c) 2014 Mitsuaki KAWAMURA
5
6
Permission is hereby granted, free of charge, to any person obtaining a copy
7
of this software and associated documentation files (the "Software"), to deal
8
in the Software without restriction, including without limitation the rights
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
copies of the Software, and to permit persons to whom the Software is
11
furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
THE SOFTWARE.
23
*/
24
#ifndef _OPERATOR_H_
25
#define _OPERATOR_H_
26
27
#include "wx/glcanvas.h"
28
29
// The OpenGL-enabled canvas
30
class
TestGLCanvas
:
public
wxGLCanvas
31
{
32
public
:
33
TestGLCanvas
(wxWindow* parent,
34
wxWindowID
id
= wxID_ANY,
35
int
* gl_attrib = NULL);
36
37
virtual
~TestGLCanvas
();
38
39
void
OnPaint
(wxPaintEvent& event);
40
void
OnSize
(wxSizeEvent& event);
41
void
OnChar
(wxKeyEvent& event);
42
void
OnMouseEvent
(wxMouseEvent& event);
43
void
InitGL
();
44
45
private
:
46
wxGLContext*
m_glRC
;
47
48
wxDECLARE_NO_COPY_CLASS
(
TestGLCanvas
);
49
wxDECLARE_EVENT_TABLE
();
50
};
51
52
#endif // _OPERATOR_H_
TestGLCanvas::~TestGLCanvas
virtual ~TestGLCanvas()
Definition:
operation.cpp:294
TestGLCanvas::OnSize
void OnSize(wxSizeEvent &event)
TestGLCanvas::m_glRC
wxGLContext * m_glRC
Definition:
operation.hpp:46
TestGLCanvas::OnPaint
void OnPaint(wxPaintEvent &event)
Glut Display function called by glutDisplayFunc.
Definition:
draw.cpp:554
TestGLCanvas::wxDECLARE_EVENT_TABLE
wxDECLARE_EVENT_TABLE()
TestGLCanvas::wxDECLARE_NO_COPY_CLASS
wxDECLARE_NO_COPY_CLASS(TestGLCanvas)
TestGLCanvas::TestGLCanvas
TestGLCanvas(wxWindow *parent, wxWindowID id=wxID_ANY, int *gl_attrib=NULL)
Definition:
operation.cpp:285
TestGLCanvas::InitGL
void InitGL()
Definition:
operation.cpp:268
TestGLCanvas::OnChar
void OnChar(wxKeyEvent &event)
Glut special key function.
Definition:
operation.cpp:226
TestGLCanvas
Definition:
operation.hpp:30
TestGLCanvas::OnMouseEvent
void OnMouseEvent(wxMouseEvent &event)
Glut mouse function.
Definition:
operation.cpp:89
Generated on Mon May 29 2023 15:37:02 for fermisurfer by
1.8.17