Click here to Skip to main content
15,797,167 members
Home / Discussions / Graphics
   

Graphics

 
QuestionHow do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk15-Jan-09 15:11
Darryl Bryk15-Jan-09 15:11 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Baltoro25-Jan-09 11:07
Baltoro25-Jan-09 11:07 
AnswerRe: How do I Display a 2D array as an image in a MDI using MFC Pin
Darryl Bryk26-Jan-09 14:10
Darryl Bryk26-Jan-09 14:10 
QuestionDirectShow Video capturing Pin
Hadi Dayvary14-Jan-09 11:27
Hadi Dayvary14-Jan-09 11:27 
QuestionopenGL SwapBuffers Pin
Nishad S13-Jan-09 23:11
Nishad S13-Jan-09 23:11 
AnswerRe: openGL SwapBuffers Pin
Dan14-Jan-09 10:07
Dan14-Jan-09 10:07 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 18:41
Nishad S14-Jan-09 18:41 
GeneralRe: openGL SwapBuffers Pin
Dan14-Jan-09 21:40
Dan14-Jan-09 21:40 
Matters on what you are trying to do, you don't need to use wm_paint at all, you can update the render whenever you feel you need to.
If you need to continually update the window, u can use a pump, ie:
bool quit = false;
while(!quit) {
    PeekMessage(&msg, hwnd, NULL, NULL, PM_REMOVE);
    if (msg.message == WM_QUIT) {
        quit = true;

    } else {
        DoRendering();
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }
}

Or you can simply swap buffers when u only render, not on every paint.
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 22:03
Nishad S14-Jan-09 22:03 
GeneralRe: openGL SwapBuffers Pin
Nishad S15-Jan-09 0:49
Nishad S15-Jan-09 0:49 
GeneralRe: openGL SwapBuffers Pin
Dan15-Jan-09 10:27
Dan15-Jan-09 10:27 
GeneralRe: openGL SwapBuffers Pin
Nishad S18-Jan-09 18:24
Nishad S18-Jan-09 18:24 
QuestionHaving trouble with transformations [Christian Graus please save me] Pin
gantww12-Jan-09 17:35
gantww12-Jan-09 17:35 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn12-Jan-09 19:39
sitebuilderLuc Pattyn12-Jan-09 19:39 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Mark Churchill13-Jan-09 18:46
Mark Churchill13-Jan-09 18:46 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn13-Jan-09 19:08
sitebuilderLuc Pattyn13-Jan-09 19:08 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
gantww29-Jan-09 12:14
gantww29-Jan-09 12:14 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn29-Jan-09 12:30
sitebuilderLuc Pattyn29-Jan-09 12:30 
QuestionOpenGL Bitmap fonts not being displayed on some hardware Pin
McDave12-Jan-09 14:16
McDave12-Jan-09 14:16 
AnswerRe: OpenGL Bitmap fonts not being displayed on some hardware Pin
McDave13-Jan-09 1:13
McDave13-Jan-09 1:13 
QuestionProblem in GDI+ Pin
vinay_K12-Jan-09 3:04
vinay_K12-Jan-09 3:04 
AnswerRe: Problem in GDI+ Pin
Henry Minute12-Jan-09 3:16
Henry Minute12-Jan-09 3:16 
QuestionGDI+ refresh image (C++) Pin
Valdyr11-Jan-09 10:14
Valdyr11-Jan-09 10:14 
AnswerRe: GDI+ refresh image (C++) Pin
Tim Craig11-Jan-09 18:03
Tim Craig11-Jan-09 18:03 
GeneralRe: GDI+ refresh image (C++) [modified] Pin
Valdyr12-Jan-09 0:25
Valdyr12-Jan-09 0:25 

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.