From dfda3f2a5e555d3173359134f4994bcd12d129f8 Mon Sep 17 00:00:00 2001 From: majortom6 Date: Fri, 3 Mar 2017 15:18:22 -0600 Subject: -removed the Graphics Data class -replaced with already implemented Rectangle, and put color and side variables in dna (can potentially remove the side variable if it does nothing important) --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 43ec1e4..cacd612 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,10 +48,10 @@ int main() _spriteBatch.begin(); for(std::list::iterator it = L.creatures.begin(); it != L.creatures.end(); it++) - _spriteBatch.draw(it->getGFXD()); + _spriteBatch.draw(it->getRectangle(),it->getVisuals()); for(std::list::iterator it = L.resources.begin(); it != L.resources.end(); it++) - _spriteBatch.draw(it->getGFXD()); + _spriteBatch.draw(it->getRectangle(),it->getVisuals()); _spriteBatch.end(); _spriteBatch.renderBatch(); -- cgit v1.2.3