Click here to Skip to main content
15,912,329 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Tim Craig24-Feb-08 12:47
Tim Craig24-Feb-08 12:47 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon25-Feb-08 0:49
mvePete O'Hanlon25-Feb-08 0:49 
AnswerRe: How i can improve this website Pin
Christian Graus25-Feb-08 9:42
protectorChristian Graus25-Feb-08 9:42 
GeneralRe: How i can improve this website Pin
Pete O'Hanlon25-Feb-08 9:56
mvePete O'Hanlon25-Feb-08 9:56 
GeneralOpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 4:11
braveheartkenya24-Feb-08 4:11 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom [modified] Pin
Christoph Menge24-Feb-08 10:14
Christoph Menge24-Feb-08 10:14 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 11:13
braveheartkenya24-Feb-08 11:13 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge24-Feb-08 13:01
Christoph Menge24-Feb-08 13:01 
As long as your window cannot be resized, you do not really have to handle the resize event, that is true. However, as it is basically no more code (because you can just move most of your inialization code into it), I consider it better.

When a control is invalidated, you force the control and its children to redraw. The Invalidate()-method and the Refresh()-method do exactly that (only the latter also forces immediate redraw). Both methods are implemented by Control. However, Tao's SimpleOpenGlControl also offers a Draw()-method.

It's implementation is rather simple:
<br />
public void Draw() {<br />
    this.Invalidate();<br />
}<br />


So it is essentially all the same thing! I suggest, however, to use the Draw()-method because future releases of the control might behave differently.

"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford

Articles 
Blog

GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya29-Feb-08 10:26
braveheartkenya29-Feb-08 10:26 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge3-Mar-08 1:14
Christoph Menge3-Mar-08 1:14 
QuestionWhere did my "dshow.h" go? Pin
Jun Du23-Feb-08 3:53
Jun Du23-Feb-08 3:53 
AnswerRe: Where did my "dshow.h" go? Pin
Jun Du23-Feb-08 5:57
Jun Du23-Feb-08 5:57 
QuestionDoes Vista support managed DirectX out of the box? Pin
Dmitri Nеstеruk22-Feb-08 6:58
Dmitri Nеstеruk22-Feb-08 6:58 
QuestionSkin Detection Algorithm??? Pin
jamilkhan00721-Feb-08 18:13
jamilkhan00721-Feb-08 18:13 
GeneralMPEG Video file Pin
roshihans20-Feb-08 18:11
roshihans20-Feb-08 18:11 
QuestionDirectX Wrapper DXSmith Pin
Dave Kent Bell19-Feb-08 11:29
Dave Kent Bell19-Feb-08 11:29 
Generalpleaseee help (texture mapping) Pin
naroqueen17-Feb-08 7:41
naroqueen17-Feb-08 7:41 
GeneralRe: pleaseee help (texture mapping) Pin
Gavin Williams18-Feb-08 5:14
Gavin Williams18-Feb-08 5:14 
GeneralRe: pleaseee help (texture mapping) Pin
naroqueen18-Feb-08 6:40
naroqueen18-Feb-08 6:40 
GeneralRe: pleaseee help (texture mapping) Pin
Pete O'Hanlon18-Feb-08 8:49
mvePete O'Hanlon18-Feb-08 8:49 
GeneralRe: pleaseee help (texture mapping) Pin
Chris Austin19-Feb-08 10:20
Chris Austin19-Feb-08 10:20 
Questionmesh picking using directx and c# .net Pin
selvarajanlatha13-Feb-08 2:53
selvarajanlatha13-Feb-08 2:53 
GeneralRe: mesh picking using directx and c# .net Pin
Gavin Williams13-Feb-08 14:33
Gavin Williams13-Feb-08 14:33 
GeneralRe: mesh picking using directx and c# .net Pin
Gavin Williams18-Feb-08 5:00
Gavin Williams18-Feb-08 5:00 
GeneralRe: mesh picking using directx and c# .net Pin
selvarajanlatha23-Feb-08 20:19
selvarajanlatha23-Feb-08 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.