105 const bool a_duplicateTextureData =
false,
106 const bool a_duplicateMeshData =
false,
107 const bool a_buildCollisionDetector =
false);
110 void update(
const unsigned int a_bottomLeftX,
111 const unsigned int a_bottomLeftY,
112 const unsigned int a_topRightX,
113 const unsigned int a_topRightY);
143 const bool a_duplicateMaterialData,
144 const bool a_duplicateTextureData,
145 const bool a_duplicateMeshData,
146 const bool a_buildCollisionDetector);
Implements a 2D bimap widget.
Implements a 2D image data structure.
This class implements a 2D background widget.
Definition CBackground.h:80
virtual cBackground * copy(const bool a_duplicateMaterialData=false, const bool a_duplicateTextureData=false, const bool a_duplicateMeshData=false, const bool a_buildCollisionDetector=false)
This method create a copy of itself.
Definition CBackground.cpp:239
cBackground()
Constructor of cBackground.
Definition CBackground.cpp:60
virtual void render(cRenderOptions &a_options)
This method renders this object graphically (OpenGL).
Definition CBackground.cpp:87
bool m_fixedAspectRatio
If true then the aspect ratio of the background image is maintained.
Definition CBackground.h:129
virtual ~cBackground()
Destructor of cBackground.
Definition CBackground.h:91
void update(const unsigned int a_bottomLeftX, const unsigned int a_bottomLeftY, const unsigned int a_topRightX, const unsigned int a_topRightY)
This method updates the dimensions of the background in pixel coordinates.
Definition CBackground.cpp:110
bool getFixedAspectRatio()
This method returns the fixed aspect ratio status of this background image.
Definition CBackground.h:119
void setFixedAspectRatio(bool a_fixedAspectRatio)
This method enabled or disables the fixed aspect ratio property of this background image.
Definition CBackground.h:116
virtual std::string getClassName()
This method returns the name of the object class.
Definition CBackground.h:101
void copyBackgroundProperties(cBackground *a_obj, const bool a_duplicateMaterialData, const bool a_duplicateTextureData, const bool a_duplicateMeshData, const bool a_buildCollisionDetector)
This method copies properties of this object to another.
Definition CBackground.cpp:270
This class implements a 2D bitmap widget.
Definition CBitmap.h:78
Definition CAudioBuffer.cpp:57
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83