canjiang-ren
unread,Oct 31, 2009, 2:09:11 AM10/31/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to G3D Users
Hello,
1.
I got many compile error on vs2008 x64 at vista, something like 'eax'
in System.h line 452 undeclared.
2.
can we add a weak window interface between RenderDevice and OSWindow?
at the current version, we use factory pattern to decide to create sdl
or win32 window, but how about something like qt?
Even if we can inherit from OSWindow using qt implement, for example:
class QWindow : public G3D::OSWindow, the QWindow is duplicated with
QGLWidget, right?
so, i think it is better to decompose the OSWindow from RenderDevice,
using a weak window interface to get window width/height and swap
buffer. than the clean RenderDevice can be use in QGLWidget as gl
renderer.
for example:
class IWindow {
int width();
int height();
void swapGLBuffer();
};
class OSWindow: public IWindow {} ;
class QWindow: public IWindow{
pointer to QGLWidget;
};
renderDevice->init(new QWindow(this));