You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// FRAMEWORK Layerobject - displays a single bitmap
|
|
//
|
|
// CActor
|
|
// +--CLayer
|
|
// +--CLayerImage
|
|
//
|
|
// Displays a single bitmap
|
|
//
|
|
//:---------------------------------------------------------------------------
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#if !defined(_LAYER_IMAGE_H)
|
|
#define _LAYER_IMAGE_H
|
|
|
|
#include "llfrm_layer.h"
|
|
#include "../llgfx_blit.h"
|
|
|
|
class CLayerImage : public CLayer
|
|
{
|
|
public:
|
|
CLayerImage();
|
|
virtual ~CLayerImage();
|
|
|
|
virtual bool ParseMsg(const char *Type );
|
|
|
|
virtual void Draw(llgfx_id id );
|
|
virtual void Action(float delta);
|
|
virtual void GetBoundingRect(llgfx_sRECT *rect);
|
|
|
|
CLayerImage * CreateClone();
|
|
|
|
void operator=(CLayerImage *sprite );
|
|
void operator=(CLayerImage &sprite );
|
|
|
|
|
|
llgfx_id m_gfx;
|
|
|
|
bool m_ckEnable;
|
|
TxU32 m_colorkey;
|
|
float m_angle;
|
|
float m_rotationspeed;
|
|
bool m_colorkeyInit;
|
|
|
|
};
|
|
|
|
#endif // !defined(_LAYER_IMAGE_H)
|