Develop and Download Open Source Software

Browse Subversion Repository

Contents of /common/SdlUtils.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 279 - (show annotations) (download) (as text)
Wed Mar 12 05:28:19 2008 UTC (16 years, 2 months ago) by satofumi
File MIME type: text/x-c++src
File size: 618 byte(s)
adjust tab index
1 /*!
2 \file
3 \brief SDL •ϐ”‚Ě‘€ě•⏕
4
5 \author Satofumi KAMIMURA
6
7 $Id$
8 */
9
10 #include "SdlUtils.h"
11
12
13 void beego::set_SdlRect(SDL_Rect* rect, int x, int y, int w, int h) {
14 rect->x = x;
15 rect->y = y;
16 rect->w = w;
17 rect->h = h;
18 }
19
20
21 void beego::add_SdlRect(std::vector<SDL_Rect>& list,
22 int x, int y, int w, int h) {
23 SDL_Rect rect;
24 set_SdlRect(&rect, x, y, w, h);
25 list.push_back(rect);
26 }
27
28
29 void beego::set_SdlColor(SDL_Color* color, Uint32 uint32_color) {
30 color->r = (uint32_color >> 24) & 0xff;
31 color->g = (uint32_color >> 16) & 0xff;
32 color->b = (uint32_color >> 8) & 0xff;
33 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26