From 67c63a120e6abe591a76fa39d1389789305c2040 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 10 Jun 2016 17:08:39 +0200 Subject: [PATCH] Add virtual function return values for less warnings on the pi --- src/Surfaces/BaseSurface.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Surfaces/BaseSurface.h b/src/Surfaces/BaseSurface.h index 57e56d4..4f1093b 100644 --- a/src/Surfaces/BaseSurface.h +++ b/src/Surfaces/BaseSurface.h @@ -24,14 +24,13 @@ class BaseSurface { virtual void setTexCoords(vector t){} virtual void moveBy(ofVec2f v){} - virtual int getType(){} - virtual bool hitTest(ofVec2f p){} - virtual ofPolyline getHitArea(){} - virtual ofPolyline getTextureHitArea(){} - virtual vector & getVertices(){} - virtual vector & getTexCoords(){} - - virtual BaseSurface * clone(){} + virtual int getType(){ return 0; } + virtual bool hitTest(ofVec2f p){ return false; } + virtual ofPolyline getHitArea(){ ofPolyline p; return p; } + virtual ofPolyline getTextureHitArea(){ ofPolyline p; return p; } + virtual vector & getVertices(){ return mesh.getVertices(); } + virtual vector & getTexCoords(){ return mesh.getTexCoords(); } + virtual BaseSurface * clone(){ return 0; } void drawTexture(ofVec2f position); void setSource(BaseSource * newSource);