Update of /cvsroot/simspark/simspark/spark/kerosin/renderserver
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15297
Modified Files:
Tag: projectx
baserenderserver.h
Log Message:
- added virtual methods to get the width, the height, and the contents of the current screen
Index: baserenderserver.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/renderserver/Attic/baserenderserver.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** baserenderserver.h 30 Mar 2007 04:04:33 -0000 1.1.2.1
--- baserenderserver.h 1 Jun 2007 13:16:01 -0000 1.1.2.2
***************
*** 53,56 ****
--- 53,63 ----
virtual void Render() = 0;
+ //! width of the render target
+ virtual int Width() const { return 0; }
+ //! height of the render target
+ virtual int Height() const { return 0; }
+ //! get a shot of the current frame
+ virtual bool CopyFrame(char* /* buffer */) const { return false; }
+
protected:
/** get the active scene node from the sceneServer */
|