src/graphic/surface.cpp File Reference

#include "surface.h"
#include <SDL.h>
#include <SDL_endian.h>
#include <SDL_gfxPrimitives.h>
#include <SDL_image.h>
#include <SDL_rotozoom.h>
#include "../tool/debug.h"
#include "../tool/error.h"
#include "../tool/i18n.h"
#include "../include/base.h"

Include dependency graph for surface.cpp:

Go to the source code of this file.

Variables

static const double ratio_deg_to_rad = 180 / M_PI


Variable Documentation

const double ratio_deg_to_rad = 180 / M_PI [static]

Parameters:
angle in radian
zoomx 
zoomy 
smooth Warning rotozoomSurfaceXY uses degrees so the rotation of image use degrees here, but when accessing thanks to GetSurfaceForAngle the index is using radian (because we juste need an index in array, not an angle)

Definition at line 447 of file surface.cpp.


Generated on Mon Jan 1 13:13:49 2007 for Wormux by  doxygen 1.4.7