|
|
@ -679,26 +679,28 @@ public:
|
|
|
|
virtual void stencilOp(TStencilOp fail, TStencilOp zfail, TStencilOp zpass);
|
|
|
|
virtual void stencilOp(TStencilOp fail, TStencilOp zfail, TStencilOp zpass);
|
|
|
|
virtual void stencilMask(uint mask);
|
|
|
|
virtual void stencilMask(uint mask);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GfxMode _CurrentMode;
|
|
|
|
|
|
|
|
sint32 _WindowX;
|
|
|
|
|
|
|
|
sint32 _WindowY;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef NL_OS_MAC
|
|
|
|
|
|
|
|
NLMISC::CCocoaEventEmitter _EventEmitter;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
virtual class IVertexBufferHardGL *createVertexBufferHard(uint size, uint numVertices, CVertexBuffer::TPreferredMemory vbType, CVertexBuffer *vb);
|
|
|
|
virtual class IVertexBufferHardGL *createVertexBufferHard(uint size, uint numVertices, CVertexBuffer::TPreferredMemory vbType, CVertexBuffer *vb);
|
|
|
|
friend class CTextureDrvInfosGL;
|
|
|
|
friend class CTextureDrvInfosGL;
|
|
|
|
friend class CVertexProgamDrvInfosGL;
|
|
|
|
friend class CVertexProgamDrvInfosGL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
// Version of the driver. Not the interface version!! Increment when implementation of the driver change.
|
|
|
|
// Version of the driver. Not the interface version!! Increment when implementation of the driver change.
|
|
|
|
static const uint32 ReleaseVersion;
|
|
|
|
static const uint32 ReleaseVersion;
|
|
|
|
|
|
|
|
|
|
|
|
// Windows
|
|
|
|
// Windows
|
|
|
|
nlWindow _win;
|
|
|
|
nlWindow _win;
|
|
|
|
sint32 _WindowX;
|
|
|
|
|
|
|
|
sint32 _WindowY;
|
|
|
|
|
|
|
|
bool _WindowVisible;
|
|
|
|
bool _WindowVisible;
|
|
|
|
bool _DestroyWindow;
|
|
|
|
bool _DestroyWindow;
|
|
|
|
bool _Maximized;
|
|
|
|
bool _Maximized;
|
|
|
|
GfxMode _CurrentMode;
|
|
|
|
|
|
|
|
uint _Interval;
|
|
|
|
uint _Interval;
|
|
|
|
bool _Resizable;
|
|
|
|
bool _Resizable;
|
|
|
|
|
|
|
|
|
|
|
@ -790,11 +792,7 @@ private:
|
|
|
|
#elif defined(NL_OS_MAC)
|
|
|
|
#elif defined(NL_OS_MAC)
|
|
|
|
|
|
|
|
|
|
|
|
friend bool GlWndProc(CDriverGL*, const void*);
|
|
|
|
friend bool GlWndProc(CDriverGL*, const void*);
|
|
|
|
friend void windowDidMove(NSWindow*, CDriverGL*);
|
|
|
|
|
|
|
|
friend void viewDidResize(NSView*, CDriverGL*);
|
|
|
|
|
|
|
|
friend NSApplicationTerminateReply applicationShouldTerminate(CDriverGL*);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NLMISC::CCocoaEventEmitter _EventEmitter;
|
|
|
|
|
|
|
|
CocoaOpenGLView* _glView;
|
|
|
|
CocoaOpenGLView* _glView;
|
|
|
|
NSAutoreleasePool* _autoreleasePool;
|
|
|
|
NSAutoreleasePool* _autoreleasePool;
|
|
|
|
uint16 _backBufferHeight;
|
|
|
|
uint16 _backBufferHeight;
|
|
|
|