My Project
SallyAPI::GUI::CPicture Class Reference

Picture. More...

#include <Picture.h>

List of all members.

Classes

struct  PANEL_CUSTOMVERTEX

Public Member Functions

 CPicture ()
 Default constructor.
 ~CPicture ()
 Destructor.
SallyAPI::Core::CTextureGetTexture ()
 Gets the texture.
void SetTexture (SallyAPI::Core::CTexture *texture)
 Sets a texture.
bool CreateEmptyPixelFormat (int iWidth, int iHeight, Gdiplus::PixelFormat pixelFormat)
 Creates an empty pixel format.
bool CreateEmptyD3DFormat (int iWidth, int iHeight, D3DFORMAT d3dFormat)
 Creates an empty d 3 d format.
bool CreateEmptyAsRenderTargetD3DFormat (int iWidth, int iHeight, D3DFORMAT d3dFormat)
 Creates an empty as render target d 3 d format.
bool LoadTexture (const std::string &fileName, bool createMipMaps=false)
 Loads a texture.
bool LoadTextureOverGDI (const std::string &fileName, int width=-1, int height=-1)
 Loads a texture over gdi.
void Draw (int x, int y)
 Draws.
void Draw (int x, int y, int width, int height)
 Draws.
int GetWidth ()
 Gets the width.
int GetHeight ()
 Gets the height.
void SetWidth (int width)
 Sets a width.
void SetHeight (int height)
 Sets a height.
void UpdateDimensions ()
 Updates the width and hight information.
void SetAlphaBlending (int alphaBlending)
 Sets an alpha blending.
void SetRotationAngleY (float angle)
 Sets a rotation angle y coordinate coordinate.
void SetRotationAngleX (float angle)
 Sets a rotation angle x coordinate coordinate.
void SetRotationAngleZ (float angle)
 Sets a rotation angle z coordinate coordinate.

Detailed Description

Picture.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

Default constructor.

Author:
Christian Knobloch
Date:
19.04.2010

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

bool CPicture::CreateEmptyAsRenderTargetD3DFormat ( int  iWidth,
int  iHeight,
D3DFORMAT  d3dFormat 
)

Creates an empty as render target d 3 d format.

Author:
Christian Knobloch
Date:
27.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
d3dFormatThe 3d format.
Returns:
true if it succeeds, false if it fails.
bool CPicture::CreateEmptyD3DFormat ( int  iWidth,
int  iHeight,
D3DFORMAT  d3dFormat 
)

Creates an empty d 3 d format.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
d3dFormatThe 3d format.
Returns:
true if it succeeds, false if it fails.
bool CPicture::CreateEmptyPixelFormat ( int  iWidth,
int  iHeight,
Gdiplus::PixelFormat  pixelFormat 
)

Creates an empty pixel format.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
iWidthThe width.
iHeightThe height.
pixelFormatThe pixel format.
Returns:
true if it succeeds, false if it fails.
void CPicture::Draw ( int  x,
int  y 
)

Draws.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
void CPicture::Draw ( int  x,
int  y,
int  width,
int  height 
)

Draws.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
widthThe width.
heightThe height.

Gets the height.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The height.

Gets the texture.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
null if it fails, else the texture.

Gets the width.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The width.
bool CPicture::LoadTexture ( const std::string &  fileName,
bool  createMipMaps = false 
)

Loads a texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
createMipMapstrue to create mip maps.
Returns:
true if it succeeds, false if it fails.
bool CPicture::LoadTextureOverGDI ( const std::string &  fileName,
int  maxWidth = -1,
int  maxHeight = -1 
)

Loads a texture over gdi.

Author:
Christian Knobloch
Date:
05.05.2010
Parameters:
fileNameFilename of the file.
maxWidthThe max width. If -1 than use source width.
maxHeightThe max height. If -1 than use source height.
Returns:
true if it succeeds, false if it fails.
void CPicture::SetAlphaBlending ( int  alphaBlending)

Sets an alpha blending.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
alphaBlendingThe alpha blending.
void CPicture::SetHeight ( int  height)

Sets a height.

Author:
Christian Knobloch
Date:
21.05.2010
Parameters:
heightThe height.
void CPicture::SetRotationAngleX ( float  angle)

Sets a rotation angle x coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.
void CPicture::SetRotationAngleY ( float  angle)

Sets a rotation angle y coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.
void CPicture::SetRotationAngleZ ( float  angle)

Sets a rotation angle z coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.

Sets a texture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]textureIf non-null, the texture.
void CPicture::SetWidth ( int  width)

Sets a width.

Author:
Christian Knobloch
Date:
21.05.2010
Parameters:
widthThe width.

Updates the width and hight information.

Author:
Christian Knobloch
Date:
21.05.2010

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines