Browse Subversion Repository
Contents of /common/SdlUtils.h
Parent Directory
| Revision Log
Revision 279 -
( show annotations)
( download)
( as text)
Wed Mar 12 05:28:19 2008 UTC
(16 years, 1 month ago)
by satofumi
File MIME type: text/x-chdr
File size: 776 byte(s)
adjust tab index
| 1 |
#ifndef SDL_UTILS_H |
| 2 |
#define SDL_UTILS_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief SDL 変数の操作補助 |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include <SDL.h> |
| 14 |
#include <vector> |
| 15 |
|
| 16 |
|
| 17 |
namespace beego { |
| 18 |
/*! |
| 19 |
\brief SDL_Rect への代入関数 |
| 20 |
|
| 21 |
\param rect [o] 代入先 |
| 22 |
\param x [i] 代入値 |
| 23 |
\param y [i] 代入値 |
| 24 |
\param w [i] 代入値 |
| 25 |
\param h [i] 代入値 |
| 26 |
*/ |
| 27 |
extern void set_SdlRect(SDL_Rect* rect, int x, int y, int w = 0, int h = 0); |
| 28 |
|
| 29 |
extern void add_SdlRect(std::vector<SDL_Rect>& list, |
| 30 |
int x, int y, int w = 0, int h = 0); |
| 31 |
|
| 32 |
/*! |
| 33 |
\brief SDL_Color への代入関数 |
| 34 |
|
| 35 |
\param color [o] 代入先 |
| 36 |
\param uint32_color [i] Uint32 表現の色。0xrrbbggaa 形式 |
| 37 |
*/ |
| 38 |
extern void set_SdlColor(SDL_Color* color, Uint32 uint32_color); |
| 39 |
}; |
| 40 |
|
| 41 |
#endif /* !SDL_UTILS_H */ |
|