Please, remove stdint.h checking from the automake.
SVN-Revision: 1449
void
DrawingContext::draw_surface(const Surface* surface, const Vector& position,
- int layer, uint32_t drawing_effect)
+ int layer, Uint32 drawing_effect)
{
assert(surface != 0);
void
DrawingContext::draw_surface_part(const Surface* surface, const Vector& source,
- const Vector& size, const Vector& dest, int layer, uint32_t drawing_effect)
+ const Vector& size, const Vector& dest, int layer, Uint32 drawing_effect)
{
assert(surface != 0);
#ifndef __DRAWINGCONTEXT_H__
#define __DRAWINGCONTEXT_H__
-#include <stdint.h>
#include <vector>
#include <string>
#include "vector.h"
/** Adds a drawing request for a surface into the request list */
void draw_surface(const Surface* surface, const Vector& position, int layer,
- uint32_t drawing_effect = NONE_EFFECT);
+ Uint32 drawing_effect = NONE_EFFECT);
/** Adds a drawing request for part of a surface */
void draw_surface_part(const Surface* surface, const Vector& source,
const Vector& size, const Vector& dest, int layer,
- uint32_t drawing_effect = NONE_EFFECT);
+ Uint32 drawing_effect = NONE_EFFECT);
/** draws a text */
void draw_text(Font* font, const std::string& text, const Vector& position,
int layer);
struct DrawingRequest
{
int layer;
- uint32_t drawing_effect;
+ Uint32 drawing_effect;
RequestType type;
Vector pos;
}
int
-SurfaceOpenGL::draw(float x, float y, Uint8 alpha, uint32_t effect)
+SurfaceOpenGL::draw(float x, float y, Uint8 alpha, Uint32 effect)
{
float pw = power_of_two(w);
float ph = power_of_two(h);
}
int
-SurfaceOpenGL::draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, uint32_t effect)
+SurfaceOpenGL::draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect)
{
float pw = power_of_two(int(this->w));
float ph = power_of_two(int(this->h));
}
int
-SurfaceSDL::draw(float x, float y, Uint8 alpha, uint32_t effect)
+SurfaceSDL::draw(float x, float y, Uint8 alpha, Uint32 effect)
{
SDL_Rect dest;
}
int
-SurfaceSDL::draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, uint32_t effect)
+SurfaceSDL::draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect)
{
SDL_Rect src, dest;
#include <SDL_opengl.h>
#endif
-#include <stdint.h>
#include <list>
#include "screen.h"
#include "vector.h"
virtual ~SurfaceImpl();
/** Return 0 on success, -2 if surface needs to be reloaded */
- virtual int draw(float x, float y, Uint8 alpha, uint32_t effect = NONE_EFFECT) = 0;
- virtual int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, uint32_t effect = NONE_EFFECT) = 0;
+ virtual int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT) = 0;
+ virtual int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT) = 0;
#if 0
virtual int draw_stretched(float x, float y, int w, int h, Uint8 alpha, bool update) = 0;
#endif
SurfaceSDL(const std::string& file, int x, int y, int w, int h, int use_alpha);
virtual ~SurfaceSDL();
- int draw(float x, float y, Uint8 alpha, uint32_t effect = NONE_EFFECT);
- int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, uint32_t effect = NONE_EFFECT);
+ int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT);
+ int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT);
#if 0
int draw_stretched(float x, float y, int w, int h, Uint8 alpha);
#endif
SurfaceOpenGL(const std::string& file, int x, int y, int w, int h, int use_alpha);
virtual ~SurfaceOpenGL();
- int draw(float x, float y, Uint8 alpha, uint32_t effect = NONE_EFFECT);
- int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, uint32_t effect = NONE_EFFECT);
+ int draw(float x, float y, Uint8 alpha, Uint32 effect = NONE_EFFECT);
+ int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, Uint32 effect = NONE_EFFECT);
#if 0
int draw_stretched(float x, float y, int w, int h, Uint8 alpha);
#endif
void
Sprite::draw(DrawingContext& context, const Vector& pos, int layer,
- uint32_t drawing_effect)
+ Uint32 drawing_effect)
{
time = SDL_GetTicks();
unsigned int frame = get_current_frame();
/** Update the sprite and process to the next frame */
void update(float delta);
void draw(DrawingContext& context, const Vector& pos, int layer,
- uint32_t drawing_effect = NONE_EFFECT);
+ Uint32 drawing_effect = NONE_EFFECT);
int get_current_frame() const;
float get_fps() { return fps; } ;
#include <set>
#include <map>
#include <vector>
-#include <stdint.h>
#include "screen/texture.h"
#include "globals.h"
#include "lispreader.h"
};
/** tile attributes */
- uint32_t attributes;
+ Uint32 attributes;
/** General purpose data attached to a tile (content of a box, type of coin)*/
int data;