[Top][All Lists]
[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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/gui graphic_context.cxx, NONE, 1.1,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am, 1.152, 1.153 action_button.cxx, 1.31, 1.32 globals.cxx, 1.15, 1.16 globals.hxx, 1.17, 1.18 math.hxx, 1.8, 1.9 pingus_main.cxx, 1.95, 1.96 pingus_main.hxx, 1.12, 1.13 sprite.cxx, 1.14, 1.15 sprite.hxx, 1.10, 1.11
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs surface_background.cxx, 1.10, 1.11
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src Makefile.am, 1.152, 1.153 action_button.cxx, 1.31, 1.32 globals.cxx, 1.15, 1.16 globals.hxx, 1.17, 1.18 math.hxx, 1.8, 1.9 pingus_main.cxx, 1.95, 1.96 pingus_main.hxx, 1.12, 1.13 sprite.cxx, 1.14, 1.15 sprite.hxx, 1.10, 1.11
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs surface_background.cxx, 1.10, 1.11
- Index(es):