Click here to Skip to main content
16,021,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Answer... and nother nice idea Pin
Mircea Puiu29-Aug-06 6:03
Mircea Puiu29-Aug-06 6:03 
Questionevent log doubt Pin
ashokvishnu28-Aug-06 18:42
ashokvishnu28-Aug-06 18:42 
AnswerRe: event log doubt Pin
kakan28-Aug-06 19:46
professionalkakan28-Aug-06 19:46 
AnswerRe: event log doubt Pin
Hamid Taebi28-Aug-06 20:26
professionalHamid Taebi28-Aug-06 20:26 
GeneralRe: event log doubt Pin
ashokvishnu28-Aug-06 21:36
ashokvishnu28-Aug-06 21:36 
GeneralRe: event log doubt Pin
Hamid Taebi28-Aug-06 22:10
professionalHamid Taebi28-Aug-06 22:10 
GeneralRe: event log doubt Pin
ashokvishnu29-Aug-06 1:40
ashokvishnu29-Aug-06 1:40 
QuestionOpenGl query on translate Pin
jamni28-Aug-06 17:33
jamni28-Aug-06 17:33 
Hello

I have a viewer written in VC++ and OpenGl which will load and show the building models. Initially the model was designed to draw every floor in the center of the screen and then translate (shift) while drawing the next floor. Thus the display will always be centered.

I am trying to change this behaviour as the translation for every floor is a huge overhead for a large models. So I chose a co-ordinates to start with and then it builds the model. However once it is complete i want to move the model to the center which I am not able to do. I tried the following:

glPushMatrix();
glMatrixMode(GL_MODELVIEW);
glTranslatef(-8.0, -8.0, -8.0);
RedrawWindow(NULL,NULL,RDW_UPDATENOW|RDW_INVALIDATE);
glPopMatrix();

I am not sure how to determine the center of the screen. Theoretically it should be, say for x, Near_Left_Bottom_Point.x + Far_Right_Top_Point.x)/2.0
and so on.

but I am not sure how to obtain the Near_Left_Bottom_Point.x.

Any pointers would be much helpful!

Thanks in advance
Sigh | :sigh:

Jam

QuestionBasic thread Pin
Oliver12328-Aug-06 14:18
Oliver12328-Aug-06 14:18 
AnswerRe: Basic thread Pin
Jun Du28-Aug-06 14:44
Jun Du28-Aug-06 14:44 
AnswerRe: Basic thread Pin
_AnsHUMAN_ 28-Aug-06 18:18
_AnsHUMAN_ 28-Aug-06 18:18 
AnswerRe: Basic thread Pin
Hamid Taebi28-Aug-06 19:30
professionalHamid Taebi28-Aug-06 19:30 
AnswerRe: Basic thread Pin
Oliver12329-Aug-06 9:46
Oliver12329-Aug-06 9:46 
Questionhow to compare an empty editbox Pin
samkook28-Aug-06 14:16
samkook28-Aug-06 14:16 
AnswerRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 15:16
Waldermort28-Aug-06 15:16 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 16:00
samkook28-Aug-06 16:00 
GeneralRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 16:47
Waldermort28-Aug-06 16:47 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 20:27
samkook28-Aug-06 20:27 
QuestionRe: how to compare an empty editbox Pin
David Crow29-Aug-06 2:47
David Crow29-Aug-06 2:47 
QuestionNonsense VC++ errors... Pin
Lord Kixdemp28-Aug-06 11:20
Lord Kixdemp28-Aug-06 11:20 
AnswerRe: Nonsense VC++ errors... Pin
led mike28-Aug-06 11:31
led mike28-Aug-06 11:31 
AnswerRe: Nonsense VC++ errors... Pin
khan++28-Aug-06 21:48
khan++28-Aug-06 21:48 
GeneralRe: Nonsense VC++ errors... Pin
Lord Kixdemp30-Aug-06 10:27
Lord Kixdemp30-Aug-06 10:27 
GeneralRe: Nonsense VC++ errors... Pin
khan++30-Aug-06 23:34
khan++30-Aug-06 23:34 
QuestionProperty Page Captions [modified] Pin
Scott P. Chapman28-Aug-06 11:08
Scott P. Chapman28-Aug-06 11:08 

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.