Click here to Skip to main content
15,896,455 members
Articles / Desktop Programming / MFC

PicZoom: A Photo Viewer Created in OpenGL

Rate me:
Please Sign up or sign in to vote.
4.86/5 (64 votes)
16 Feb 2011CPOL16 min read 161.1K   11.6K   151  
PicZoom: A Photo Viewer created in OpenGL
#include "Timer.h"

#pragma once

class FontEngine;

/*
This class simply handles drawing of Text. Show and hide are very smooth
with this class. Subash forced me to create a class. Since he felt 
text display at bottom of window was not smooth, now its okay.
*/
class GLText
{
public:
    GLText( HWND hParentWnd, FontEngine* pFontEngine_i, const int nTimerID_i );
    ~GLText();
    void SetText( const CString csNewText_i );
    void Draw( const int nX_i, const int nY_i );
    bool IsDrawPending();

    FontEngine* m_pFontEngine;
    int         m_nTimer;
    HWND        m_hParentWnd;
    CString     m_csDisplayString;
    CString     m_csDisplayStringNew;
    Timer       m_StringTimerShow;
    Timer       m_StringTimerHide;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions