AC_MSG_RESULT(no)
)
AM_CONDITIONAL(HAVE_PLIB_PSL, test "x$have_plib_psl" = "xyes")
+if test "x$have_plib_psl" = "xyes"; then
+ AC_DEFINE([HAVE_PLIB_PSL], 1,
+ [Define if plib version is new enough to provide "PSL"])
+fi
dnl Check for MetaKit
AC_CHECK_HEADER(mk4.h)
$Id$
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include "ssgEntityArray.hxx"
}
+#ifdef HAVE_PLIB_PSL
void ssgEntityArray::getStats ( int *num_branches, int *num_leaves, int *num_tris, int *num_verts )
{
int nb, nl, nt, nv ;
*num_tris += nt * locations->getNum() ;
*num_verts += nv * locations->getNum() ;
}
+#endif
void ssgEntityArray::cull ( sgFrustum *f, sgMat4 m, int test_needed )
#ifndef _SSG_ENTITY_ARRAY_HXX
#define _SSG_ENTITY_ARRAY_HXX
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <plib/ssg.h>
virtual void hot ( sgVec3 s, sgMat4 m, int test_needed ) ;
virtual void los ( sgVec3 s, sgMat4 m, int test_needed ) ;
virtual void print ( FILE *fd = stderr, char *indent = "", int how_much = 2 ) ;
+#ifdef HAVE_PLIB_PSL
virtual void getStats ( int *num_branches, int *num_leaves, int *num_tris, int *num_vertices ) ;
+#endif
virtual int load ( FILE *fd ) ;
virtual int save ( FILE *fd ) ;
virtual void recalcBSphere () ;