Originally posted by: David Waterfall
When i use the function auxSolidTeapot(2.0f),it seems only show the x,y coordinate ,and i can not make clear of the teapot as a three_dimension, but a two_dimension,can you tell me which function I need to add.Thank you.
ReplyOriginally posted by: Leo
Hi Guys:
I know how to get mfc(SDI) work with opengl with one rendering context, but how do i do that with multiple context? I have been searching the net and texts (redbook, superbible) but can't find nothing =(. Any help will be greatly appreciated.
Leo.
ReplyOriginally posted by: Kanda
That's nice, but whent u maximize the window, the ogl view should be resized...how to handle this ??
ReplyOriginally posted by: Adam
HI dudes,
This is what i want to do...except i need it in a child window..not a dialog box...does anyone know how to do it??
Reply
Originally posted by: David Price
First of all, excellent work. I have always wanted to have OpenGL in a portion of a dialog.
I can't get textures to work. They seem to load ok but when I try to display something texture mapped the textures are always white. But if I use the same initialisation code in a class derived from CDialog the textures work.
David
Originally posted by: Daniel
I can modify the function COpenGL::OnPaint()content to draw any shape using glBegin(GL_QUADS), glBegin(GL_TRIANGLEs), etc., but I am not able to use OpenGL display list. Please help.
ReplyOriginally posted by: G. Darryl K.
Secondly, now that the "child OpenGL" view is created and visible... how to handle mouse messages for ON_WM_LBUTTONDOWN and ON_WM_LBUTTONUP say for example, rotating or zooming? (I have the OpenGL view bounded by a CPictureBox object.)
I was able to figure out some (I think it is correct) of the solution, but sure could use more guidance.
The first thing I did was modify the OpenGL view style in its class constructor so that it can notify its parent with the STN_CLICKED notification message.
COpenGLView::COpenGLView(CWnd *pclWnd)
According to MSDN, "The STN_CLICKED notification message is sent when the user clicks a static control that has the SS_NOTIFY style. The parent window of the control receives this notification message through the WM_COMMAND message."
With this in mind I created via the ClassWizard, an OnCommand method in the parent dialog class:
BOOL COPENGL01Dlg::OnCommand(WPARAM wParam, LPARAM lParam)
return CDialog::OnCommand(wParam, lParam);
Firstly, nice work! Exactly what I was looking for, thanks.
{
pclWnd->ModifyStyle(0,SS_NOTIFY,0);
.
SetPixelFormat...
CreateContext...
.
}
{
if(wParam == IDC_OPENGL_WINDOW) // CPictureBox Resource ID
{
// Now what? I want the COpenGLView class
// to handle the mouse events of Left Down and Up.
}
}
Suggestions and ideas of how to implement the intended functionality sure would be appreciated. Thanks in advance!
Originally posted by: Bean
Hi there.
It's a pretty cool program..
it solves my problem.
I ran into one more problem, the OnPaint of the chlid window gets called so much that (although there was no need at all to invalidating it), OnIdle never gets called by the program ?
Do u guys know what;s wrong ?
Thanks
Originally posted by: SH Lee
Hi:
I am trying to draw an 3D object onto a dialog base application. The dialog box has edit boxes and radio buttons and so forth.
If I use single buffering then I can get both the object and the dialog controls to display on the dialog box, but the object is screwed up.
If I use double buffering then the object is perfect, but I lose the dialog controls. Does anyone have experience or can provide some sort of help please.
email : war3@icitiro.com
Originally posted by: bilge
hi
thanx for your good work.I am using it .But I got a problem when I decide get
mouse events from openGL control. Is there any method to handle mouse
events.
thanks.
Reply