Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628332
Background.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
962 B
Referenced Files
None
Subscribers
None
Background.h
View Options
/***************************************************************************
Background.h - description
-------------------
begin : Sun Jan 11 2004
copyright : (C) 2004 by upi
email : upi@feel
***************************************************************************/
#ifndef __BACKGROUND_H
#define __BACKGROUND_H
#include
<vector>
class
SDL_Surface
;
struct
BackgroundLayer
{
SDL_Surface
*
m_poSurface
;
int
m_iXOffset
;
int
m_iYOffset
;
double
m_dDistance
;
};
typedef
std
::
vector
<
BackgroundLayer
>
LayerVector
;
typedef
LayerVector
::
iterator
LayerIterator
;
class
Background
{
public
:
Background
();
~
Background
();
void
Clear
();
void
Load
(
int
a_iBackgroundNumber
);
bool
IsOK
();
void
Draw
(
int
a_iXPosition
,
int
a_iYPosition
);
protected
:
int
m_iNumber
;
bool
m_bOK
;
LayerVector
m_aLayers
;
};
#endif
// __BACKGROUND_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:50 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
133483
Default Alt Text
Background.h (962 B)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline