Click here to Skip to main content
15,888,008 members
Home / Discussions / Graphics
   

Graphics

 
QuestionRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Mark Salsbery30-Jul-08 7:55
Mark Salsbery30-Jul-08 7:55 
AnswerRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Jim Warburton30-Jul-08 14:12
Jim Warburton30-Jul-08 14:12 
GeneralRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Mark Salsbery30-Jul-08 14:25
Mark Salsbery30-Jul-08 14:25 
QuestionRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Mark Salsbery30-Jul-08 14:44
Mark Salsbery30-Jul-08 14:44 
AnswerRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Jim Warburton31-Jul-08 1:11
Jim Warburton31-Jul-08 1:11 
GeneralRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Mark Salsbery31-Jul-08 7:15
Mark Salsbery31-Jul-08 7:15 
GeneralRe: Is it possible to avoid decimation when drawing a bitmap? Pin
Jim Warburton1-Aug-08 0:03
Jim Warburton1-Aug-08 0:03 
GeneralOpenGL : glGenLists fails (GL_INVALID_OPERATION) (RESOLVED) [modified] Pin
Maximilien29-Jul-08 3:26
Maximilien29-Jul-08 3:26 
I'm trying to call glGenLists and it fails with the GL_INVALID_OPERATION error.

The error description (from MSDN) says that the glGenLists falls between a glBegin and its glEnd.

I have many glBegin and glEnd in my program; is there a way to :

- know when that call was done (i.e. after which glBegin, if it's of any use ?
- or to synchronize things up so that the glGenLists does not fall between the 2 calls ?


--------------

Solution :

I just needed to put my code at the beginning of the OnDraw of my view that reacts to a boolean that states the font change

(for example pseudo-ish-code)

OnChangeFont( int iSize )
{
  m_bChangeFont = true;
  m_iFontSize = iSize;
}

OnDraw(CDC* pDC)
{
  if ( m_bChangeFont)
  {
    DoTheFontChange();
    m_bChangeFont = false;
  }

  DrawTheScene();
}


Thanks.

Max



Last modified: 34mins after originally posted --



QuestionGdiplus::Bitmap destruction crash Pin
Alain Rist28-Jul-08 2:36
Alain Rist28-Jul-08 2:36 
QuestionRe: Gdiplus::Bitmap destruction crash Pin
Mark Salsbery28-Jul-08 7:09
Mark Salsbery28-Jul-08 7:09 
AnswerRe: Gdiplus::Bitmap destruction crash [modified] Pin
Alain Rist28-Jul-08 7:44
Alain Rist28-Jul-08 7:44 
GeneralRe: Gdiplus::Bitmap destruction crash Pin
Mark Salsbery28-Jul-08 7:57
Mark Salsbery28-Jul-08 7:57 
QuestionQuestion Pin
RotaryAce27-Jul-08 13:43
RotaryAce27-Jul-08 13:43 
AnswerRe: Question Pin
Shog927-Jul-08 18:11
sitebuilderShog927-Jul-08 18:11 
AnswerRe: Question Pin
Cedric Moonen27-Jul-08 20:39
Cedric Moonen27-Jul-08 20:39 
AnswerRe: Question Pin
Harvey Saayman27-Jul-08 20:45
Harvey Saayman27-Jul-08 20:45 
QuestionSmart Tee Preview not working properly for MPEG1 Pin
Kuldeep Bhatnagar24-Jul-08 18:56
Kuldeep Bhatnagar24-Jul-08 18:56 
QuestionRe: Smart Tee Preview not working properly for MPEG1 Pin
Mark Salsbery25-Jul-08 6:54
Mark Salsbery25-Jul-08 6:54 
AnswerRe: Smart Tee Preview not working properly for MPEG1 Pin
Kuldeep Bhatnagar28-Jul-08 1:27
Kuldeep Bhatnagar28-Jul-08 1:27 
QuestionRe: Smart Tee Preview not working properly for MPEG1 Pin
Mark Salsbery28-Jul-08 7:13
Mark Salsbery28-Jul-08 7:13 
AnswerRe: Smart Tee Preview not working properly for MPEG1 Pin
Kuldeep Bhatnagar28-Jul-08 23:15
Kuldeep Bhatnagar28-Jul-08 23:15 
GeneralRe: Smart Tee Preview not working properly for MPEG1 Pin
Kuldeep Bhatnagar29-Jul-08 0:58
Kuldeep Bhatnagar29-Jul-08 0:58 
QuestionHELPP please. Pin
chasoknight23-Jul-08 23:34
chasoknight23-Jul-08 23:34 
AnswerRe: HELPP please. Pin
Tim Craig24-Jul-08 14:46
Tim Craig24-Jul-08 14:46 
GeneralRe: HELPP please. Pin
chasoknight24-Jul-08 15:00
chasoknight24-Jul-08 15:00 

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.