Pre-resize fillparent
This commit is contained in:
@@ -28,10 +28,12 @@ namespace VideoEngine {
|
||||
const signed long int yarea = 0, const unsigned long int warea = 0, const unsigned long int harea = 0,
|
||||
VideoEngine::cImage** image = nullptr, VideoEngine::cCamera** camera = nullptr );
|
||||
|
||||
cSprite( const cSprite& copy );
|
||||
cSprite& operator=( const cSprite& copy );
|
||||
~cSprite();
|
||||
|
||||
///Functions
|
||||
|
||||
/// Functions
|
||||
cSprite& Copy(const cSprite& copy);
|
||||
/* Draws the sprite to the video buffer */
|
||||
void Draw();
|
||||
/* Draws the sprite to the camera */
|
||||
@@ -46,7 +48,7 @@ namespace VideoEngine {
|
||||
|
||||
void SaveImage( const cString& fileName, const cString& dir = "" );
|
||||
|
||||
///Sets
|
||||
/// Sets
|
||||
/* Sets the X position of the sprite on the surface, camera or video buffer */
|
||||
void setPosX( const signed long int x );
|
||||
/* Sets the Y position of the sprite on the surface, camera or video buffer */
|
||||
@@ -68,7 +70,7 @@ namespace VideoEngine {
|
||||
/* Sets the pointer to a pointer for the camera the sprite will be draw on */
|
||||
void setCamera( VideoEngine::cCamera** camera );
|
||||
|
||||
///Gets
|
||||
/// Gets
|
||||
/* Gets the X position of the sprite on the surface, camera or video buffer */
|
||||
const signed long int getPosX() const;
|
||||
/* Gets the Y position of the sprite on the surface, camera of video buffer */
|
||||
@@ -104,13 +106,13 @@ namespace VideoEngine {
|
||||
void setPositionEnd();
|
||||
|
||||
private:
|
||||
///Variables
|
||||
/// Variables
|
||||
SDL_Rect m_position; /// Were the Sprite will be position on the screen (Upper Left)
|
||||
|
||||
SDL_Rect m_imageArea; /// What part of the image to take
|
||||
|
||||
VideoEngine::cImage** mpp_image;// = nullptr
|
||||
VideoEngine::cCamera** mpp_camera;// = nullptr
|
||||
VideoEngine::cImage** mpp_image;/// = nullptr
|
||||
VideoEngine::cCamera** mpp_camera;/// = nullptr
|
||||
};/// END CLASS DEFINITION cSprite
|
||||
}/// END NAMESPACE DEFINITION VideoEngine
|
||||
#endif/// END IFNDEF _CSPRITE_HPP_
|
||||
|
||||
Reference in New Issue
Block a user