V
Ville Ahonen
I'm just learning C++ and thought I'd program a simple screensaver in
VC++ as my first assignment. I've found some tutorials showing how to
create a screenasver using OpenGL, but I found it very confusing and
perhaps uunnecessarily complex for my needs. What I would like to do is
1) know the dimensions of the screen (eg. 1024x768x32bit)
2) be able to use some sort of framebuffering, i.e. drawing to one frame
while showing the other to avoid flickering
3) perhaps have some timer that would be able to trigger a drawing
method at a frequency matching the refresh rate of the monitor
A reference to a good tutorial or some simple stump of code that draws a
white pixel in the center of the screen would be just perfect. I already
have the rest of the code done, i.e. I am able to produce a vector with
x and y values I'd like to plot on the screen.
Thanks a lot,
Ville
VC++ as my first assignment. I've found some tutorials showing how to
create a screenasver using OpenGL, but I found it very confusing and
perhaps uunnecessarily complex for my needs. What I would like to do is
1) know the dimensions of the screen (eg. 1024x768x32bit)
2) be able to use some sort of framebuffering, i.e. drawing to one frame
while showing the other to avoid flickering
3) perhaps have some timer that would be able to trigger a drawing
method at a frequency matching the refresh rate of the monitor
A reference to a good tutorial or some simple stump of code that draws a
white pixel in the center of the screen would be just perfect. I already
have the rest of the code done, i.e. I am able to produce a vector with
x and y values I'd like to plot on the screen.
Thanks a lot,
Ville