“You have hosed this SDI app up beyond belief.”
huh ?
"This is your MFC Windows header.
#include <afxwin.h> // MFC core and standard components.
Don’t use window.h. I can’t believe this even compiled."
I tried without and opengl needed it
“Don’t use glaux! There are plenty of bmp loaders floating around if you can’t write your own.”
Glaux is fine for now
“Why did you use OnPaint() when you are supposed to use OnDraw()?”
OnPaint is ok
"Put your opengl stuff in the standard directories so that you don’t waste time of people who are trying to help you.
#include <GL/gl.h> // OpenGL include file
#include <GL/glu.h> // OpenGL Utilities include file"
that’s right I’ll do that (No need to take that arrogant style)
“You are drawing the square over the triangle.”
That was not the point of my posting…I already have a little 3D engine…I just took some basic rendering and played around with the translation.
“Pay attention to the other posters, you don’t know how set up an OpenGL viewing frustrum and you didn’t copy the stuff from NeHe correctly.”
1)My viewing frustrum is working in my main project like it is in the code i posted so I couldn’t know that it was wrong here.
2)I pay attention to other posters. i did like he said and it worked thanks to him. We are here to learn not to proof we’re the best like you seem to try to do. In fact you’re the one who don’t pay attention to other posters cause you didn’t see that my problem was fix thanks to richarve.
3)I didn’t copy the whole nehe code I took some rendering code and modify it to test what I as doing wrong.
"Don’t change the MFC SDI structure if you don’t know what you’re doing, e.g., OnSize, etc. "
As I said…I’m here to learn. If someone doesn’t try what he doesn’t know…he’ll do nothing. It’s simple isn’t it ?
Thank you anyway for trying to help but really…you don’t need to be arrogant.
Learning is the goal…not showing off.
Evil-Dog
Sleep is a waste of time