676050178491761716095811f27bad104423480d
[scilab.git] / scilab / modules / renderer / src / cpp / subwinDrawing / CameraJoGL.cpp
1 /*------------------------------------------------------------------------*/
2 /* file: CameraJoGL.cpp                                                   */
3 /* Copyright INRIA 2007                                                   */
4 /* Authors : Jean-Baptiste Silvy                                          */
5 /* desc : JoGL class to draw a camera                                     */
6 /*------------------------------------------------------------------------*/
7
8 #include "CameraJoGL.h"
9 #include "DrawableSubwin.h"
10 extern "C"
11 {
12 #include "JniUtils.h"
13 }
14
15
16 namespace sciGraphics
17 {
18
19 /*-----------------------------------------------------------------------------------*/
20 CameraJoGL::CameraJoGL( DrawableObject * subwin )
21   : DrawableObjectImp(subwin), CameraBridge(),
22     DrawableObjectJoGL(subwin, "org/scilab/modules/renderer/subwinDrawing/CameraJoGL")
23 {
24
25 }
26 /*-----------------------------------------------------------------------------------*/
27 void CameraJoGL::renderPosition( void )
28 {
29   initializeDrawing();
30   jniCallVoidFunctionSafe( m_oDrawableObject, m_oDrawableClass, "moveViewingArea", "");
31   endDrawing();
32 }
33 /*-----------------------------------------------------------------------------------*/
34
35 }