Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
401554dc
Commit
401554dc
authored
Dec 02, 2008
by
Oliver Bock
Browse files
Added multisampling support
* Only when available of course * Uses highest number of buffers by default
parent
5a0790ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
401554dc
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
const
float
PulsarAnimationWidget
::
deg2rad
=
PI
/
180.0
f
;
const
float
PulsarAnimationWidget
::
deg2rad
=
PI
/
180.0
f
;
PulsarAnimationWidget
::
PulsarAnimationWidget
(
QWidget
*
parent
)
:
PulsarAnimationWidget
::
PulsarAnimationWidget
(
QWidget
*
parent
)
:
QGLWidget
(
QGLFormat
(
QGL
::
AlphaChannel
),
parent
),
QGLWidget
(
QGLFormat
(
QGL
::
AlphaChannel
|
QGL
::
SampleBuffers
),
parent
),
m_frameTimer
()
m_frameTimer
()
{
{
if
(
!
format
().
rgba
())
{
if
(
!
format
().
rgba
())
{
...
@@ -32,6 +32,9 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) :
...
@@ -32,6 +32,9 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) :
if
(
!
format
().
alpha
())
{
if
(
!
format
().
alpha
())
{
qWarning
(
"Sorry, no alpha channel support..."
);
qWarning
(
"Sorry, no alpha channel support..."
);
}
}
if
(
!
format
().
sampleBuffers
())
{
qWarning
(
"Sorry, no multisampling support..."
);
}
connect
(
&
m_frameTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
updateFrame
()));
connect
(
&
m_frameTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
updateFrame
()));
...
...
Write
Preview
Supports
Markdown
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