[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] libvob/include/vob DisablablePrimitives.hxx
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] libvob/include/vob DisablablePrimitives.hxx |
Date: |
Fri, 14 Mar 2003 10:11:17 -0500 |
CVSROOT: /cvsroot/libvob
Module name: libvob
Changes by: Tuomas J. Lukka <address@hidden> 03/03/14 10:11:07
Modified files:
include/vob : DisablablePrimitives.hxx
Log message:
Asko: the problem was simply sqsize... changed the hierarchy to use Box
as the base class, seems to be good.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/DisablablePrimitives.hxx.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
Patches:
Index: libvob/include/vob/DisablablePrimitives.hxx
diff -u libvob/include/vob/DisablablePrimitives.hxx:1.4
libvob/include/vob/DisablablePrimitives.hxx:1.5
--- libvob/include/vob/DisablablePrimitives.hxx:1.4 Fri Mar 14 10:03:43 2003
+++ libvob/include/vob/DisablablePrimitives.hxx Fri Mar 14 10:10:59 2003
@@ -34,6 +34,7 @@
#include <GL/gl.h>
#include <vob/Primitives.hxx>
+#include <vob/LinearPrimitives.hxx>
#include <vob/Debug.hxx>
namespace Vob {
@@ -43,11 +44,13 @@
/** Base class for... */
class DisablableIdentity :
- public PrimitiveTransform,
+ public Box,
public DisablablePrimitiveTransform {
public:
bool enabled;
+ DisablableIdentity() : Box(Pt(1,1)) { }
+
bool shouldBeDrawn() const {
if (dbg_cull) printf("\nCull.shouldBeDrawn() called;");
return enabled;
@@ -67,6 +70,7 @@
public:
enum { NDepends = 3 };
template<class SPtr> void setParams(SPtr depends) {
+ box = depends[0]->getSqSize();
if (cullShouldBeDrawn(depends[1], depends[2])) enabled = true;
else enabled = false;