Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: How to adjust Bitmap onto a picture control in mfc.? PinmvpRichard MacCutchan5-Mar-13 0:09 
GeneralRe: How to adjust Bitmap onto a picture control in mfc.? Pinmembermbatra315-Mar-13 0:15 
GeneralRe: How to adjust Bitmap onto a picture control in mfc.? PinmvpRichard MacCutchan5-Mar-13 1:26 
QuestionRotating a single object out of 3 in OpenGL Pinmembersujandasmahapatra4-Mar-13 0:53 
I have 3 objects on the screen, I want to rotate onll 2 objects the axis and X,Y,Z. Another line is there which I want not to rotate. But with this code below all are moving. Check below my DrawScene function.
[code]
void CopenGLCoordView::DrawScene(CDC *pDC)
{
wglMakeCurrent(pDC->m_hDC, m_hrc);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_TEST);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();


if (wd <= ht)
glOrtho(left, right, top*ht/wd, bottom*ht/wd, znear, zfar);
else
glOrtho(left*wd/ht, right*wd/ht, top, bottom, znear, zfar);


glPushMatrix();
glRotatef(rot[0], 1.0f, 0.0f, 0.0f);
glRotatef(rot[1], 0.0f, 1.0f, 0.0f);
glRotatef(rot[2], 0.0f, 0.0f, 1.0f);
glCallList(axes);
glPrintX("X");
glPrintY("Y");
glPrintZ("Z");
glPopMatrix();

drawLine(); //This is also moving...i want this to not to move...


glFlush();
SwapBuffers(pDC->m_hDC);

wglMakeCurrent(NULL, NULL);
} Smile | :)
[/code]
QuestionHow to owner draw a combobox Pinmemberhaha_c4-Mar-13 0:07 
AnswerRe: How to owner draw a combobox PinmvpRichard MacCutchan4-Mar-13 0:33 
QuestionWin32_NetworkAdapter class to change network configuration Pinmembertoms from newdelhi3-Mar-13 21:22 
AnswerRe: Win32_NetworkAdapter class to change network configuration PinmemberDavidCrow4-Mar-13 4:23 
GeneralRe: Win32_NetworkAdapter class to change network configuration Pinmembertoms from newdelhi4-Mar-13 17:36 
QuestionHow to implement such such a gradient path like a ring? Pinmemberkcynic3-Mar-13 20:14 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid