Update of /cvsroot/simspark/simspark/spark/kerosin/sceneserver
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32166
Modified Files:
axis.cpp axis.h
Log Message:
- added static method RenderAxis()
Index: axis.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/axis.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** axis.h 15 Feb 2006 00:59:02 -0000 1.2
--- axis.h 15 Apr 2007 12:19:54 -0000 1.3
***************
*** 45,48 ****
--- 45,50 ----
virtual void ComputeBoundingBox();
+ static void RenderAxis(float size);
+
protected:
virtual void RenderInternal();
Index: axis.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/kerosin/sceneserver/axis.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** axis.cpp 15 Mar 2007 07:26:26 -0000 1.3
--- axis.cpp 15 Apr 2007 12:19:53 -0000 1.4
***************
*** 30,34 ****
}
! void Axis::RenderInternal()
{
RGBA colX(1,0,0,1);
--- 30,34 ----
}
! void Axis::RenderAxis(float size)
{
RGBA colX(1,0,0,1);
***************
*** 41,45 ****
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(mSize,0,0);
glEnd();
--- 41,45 ----
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(size,0,0);
glEnd();
***************
*** 49,53 ****
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(0,mSize,0);
glEnd();
--- 49,53 ----
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(0,size,0);
glEnd();
***************
*** 58,65 ****
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(0,0,mSize);
glEnd();
}
float Axis::GetSize()
{
--- 58,70 ----
glBegin(GL_LINE_LOOP);
glVertex3f(0,0,0);
! glVertex3f(0,0,size);
glEnd();
}
+ void Axis::RenderInternal()
+ {
+ RenderAxis(mSize);
+ }
+
float Axis::GetSize()
{
|