Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
grapa_alisa
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Alisa Jung
grapa_alisa
Commits
6b35ed3e
Commit
6b35ed3e
authored
Nov 15, 2015
by
Alisa Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orthographic camera for front, left and top view; kept perspective camera for perspective view
parent
5aeebcb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
myglwidget.cpp
helloqube/myglwidget.cpp
+5
-1
No files found.
helloqube/myglwidget.cpp
View file @
6b35ed3e
...
...
@@ -284,7 +284,11 @@ void MyGLWidget::resizeGL(int width, int height){
glMatrixMode
(
GL_PROJECTION
);
//from HelloGL example
glLoadIdentity
();
gluPerspective
(
45.0
,
p
,
0.1
,
1000
);
//set vof to 45°
if
(
isPerspective
){
gluPerspective
(
45.0
,
p
,
0.1
,
1000
);
//set vof to 45°
}
else
{
glOrtho
(
-
2
*
p
,
2
*
p
,
-
2
,
2
,
1
,
1000
);
}
glMatrixMode
(
GL_MODELVIEW
);
...
...
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