pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/gui graphic_context.cxx, NONE, 1.1


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/gui graphic_context.cxx, NONE, 1.1
Date: 16 Aug 2003 20:52:40 -0000

Update of /var/lib/cvs/Games/Pingus/src/gui
In directory dark:/tmp/cvs-serv16280/gui

Added Files:
        graphic_context.cxx 
Log Message:
- added level preview render code

--- NEW FILE: graphic_context.cxx ---
//  $Id: graphic_context.cxx,v 1.1 2003/08/16 20:52:38 grumbel Exp $
//
//  Pingus - A free Lemmings clone
//  Copyright (C) 2002 Ingo Ruhnke <address@hidden>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#include "../sprite.hxx"
#include "graphic_context.hxx"

void
GraphicContext::draw (Sprite& sprite, const Vector& pos)
{
  sprite.draw(*this, pos);
}

void
GraphicContext::draw (Sprite& sprite, const Vector& pos, int frame)
{
  sprite.set_frame(frame);
  sprite.draw(*this, pos);
}

void
GraphicContext::draw (CL_Surface& sur, const Vector& pos, int frame)
{
  draw(sur, int(pos.x), int(pos.y), frame);
}


void
GraphicContext::draw (CL_Surface& sur, const Vector& pos)
{
  draw(sur, int(pos.x), int(pos.y));
}

/* EOF */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]