Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
C-Fu
OpenGL
Commits
11a8de82
Commit
11a8de82
authored
Sep 08, 2016
by
Anakin
Browse files
fixed interaction bug
parent
ee73c16e
Changes
3
Hide whitespace changes
Inline
Side-by-side
MshViewer/Header/OpenGLController.h
View file @
11a8de82
...
...
@@ -10,7 +10,7 @@ class OpenGLController
////////////////////////////////////////////////////////////////////////////////////////////
// constructor/destructor
public:
static
OpenGLController
&
getInstance
(
int
oglMajor
=
4
,
int
oglMinor
=
5
);
static
OpenGLController
*
getInstance
(
int
oglMajor
=
4
,
int
oglMinor
=
5
);
~
OpenGLController
();
private:
...
...
MshViewer/Source/OpenGlController.cpp
View file @
11a8de82
...
...
@@ -16,9 +16,9 @@
/////////////////////////////////////////////////////////////////////////
// public constructor/destructor
OpenGLController
&
OpenGLController
::
getInstance
(
int
oglMajor
,
int
oglMinor
)
OpenGLController
*
OpenGLController
::
getInstance
(
int
oglMajor
,
int
oglMinor
)
{
static
OpenGLController
instace
(
oglMajor
,
oglMinor
);
static
OpenGLController
*
instace
=
new
OpenGLController
(
oglMajor
,
oglMinor
);
return
instace
;
}
...
...
MshViewer/main.cpp
View file @
11a8de82
...
...
@@ -6,13 +6,13 @@
int
main
(
int
argc
,
char
**
argv
)
{
OpenGLController
scene
=
OpenGLController
::
getInstance
();
//scene.loadMsh("");
OpenGLController
*
scene
=
OpenGLController
::
getInstance
();
do
{
scene
.
updateScene
();
}
while
(
!
glfwWindowShouldClose
(
scene
.
getWindow
()));
scene
->
updateScene
();
}
while
(
!
glfwWindowShouldClose
(
scene
->
getWindow
()));
delete
scene
;
return
0
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment