//myView->MustBeResized(); // can be used instead of SetWindow() when EGLsurface has not been changed
EGLContext anEglContext = eglGetCurrentContext();
- myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext, NULL, NULL);
+ myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext);
}
}
}
}
aWindow->SetSize (aWidth, aHeight);
- myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext, NULL, NULL);
+ myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext);
}
Handle(OpenGl_GraphicDriver) aDriver = new OpenGl_GraphicDriver (NULL, Standard_False);
Handle(AndroidQt_Window) aWindow = new AndroidQt_Window (aWidth, aHeight);
myView = myViewer->CreateView();
- myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext, NULL, NULL);
+ myView->SetWindow (aWindow, (Aspect_RenderingContext )anEglContext);
myView->TriedronDisplay (Aspect_TOTP_RIGHT_LOWER, Quantity_NOC_WHITE, 0.08, V3d_ZBUFFER);
return true;
//! The main functionality is viewport dimensions.
class AndroidQt_Window : public Aspect_Window
{
-
+ DEFINE_STANDARD_RTTIEXT(AndroidQt_Window, Aspect_Window)
public:
//! Creates a wrapper over existing Window handle
//! Returns parent of native Window handle.
virtual Aspect_Drawable NativeParentHandle() const { return 0; }
- virtual void Destroy() {}
+ //! Returns native Window FB config (GLXFBConfig on Xlib)
+ virtual Aspect_FBConfig NativeFBConfig() const { return 0; }
//! Opens the window <me>
virtual void Map() const {}
int myY1;
int myY2;
-public:
-
- DEFINE_STANDARD_RTTIEXT(AndroidQt_Window,Aspect_Window)
-
};
-DEFINE_STANDARD_HANDLE(AndroidQt_Window, Aspect_Window)
-
#endif // ANDROIDQT_WINDOW_H